DIY Projects Lab
Published © CC BY-NC-SA

ESP8266 : Make an LED blink from the Arduino IDE

Hii friends welcome in “DiY Projects Lab” In this post i”ll show you how to easily we can program our ESP8266 NodeMCU with Arduino IDE

BeginnerFull instructions provided1 hour5,287
ESP8266 : Make an LED blink from the Arduino IDE

Things used in this project

Hardware components

ESP8266 ESP-01
Espressif ESP8266 ESP-01
×1
NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

Code

Code

Arduino
int LED = 5; // Assign LED pin i.e: D1 on NodeMCU
void setup() {
// initialize GPIO 5 as an output
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off
delay(1000); // wait for a second
}

Credits

DIY Projects Lab

DIY Projects Lab

41 projects • 156 followers
I am a DIY hobbyist by passion and an Electronics Engineer by profession. Sponsor (PCB Manufacturer) - www.nextpcb.com

Comments