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 hour321,832
Programming ESP8266 ESP-01 with Arduino

Things used in this project

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

12 projects • 175 followers
Electronics Enthusiast, Micro controller fan and love Open Source.

Comments