Robin Kanattu Thomas
Published © GPL3+

Programming ESP8266 ESP-01 with Arduino

ESP8266 is an impressive, low cost WiFi module suitable for adding WiFi functionality project.

BeginnerProtip1 hour291,581
Programming ESP8266 ESP-01 with Arduino

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Linear Regulator with Adjustable Output
Linear Regulator with Adjustable Output
×1
Resistor 475 ohm
Resistor 475 ohm
×1
LED (generic)
LED (generic)
×1
ESP8266 ESP-01
Espressif ESP8266 ESP-01
×1

Story

Read more

Schematics

ESP8266_starter.fzz

esp8266at.fzz

Code

Blink Sketch For ESP8266-ESP01

C/C++
Use normal blink sketch from arduino examples and change the pin no to 2 from 13 since Esp8266 has got only two gpio pins(gpio0 and gpio2) .
void setup() {
  // initialize digital esp8266 gpio 2 as an output.
  pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Credits

Robin Kanattu Thomas

Robin Kanattu Thomas

10 projects • 146 followers
Electronics Enthusiast, Micro controller fan and love Open Source. www.robinkthomas.com

Comments