This project allows you to control an LED connected to an ESP8266 microcontroller over Wi-Fi. It is a beginner-friendly IoT project demonstrating how to interface hardware with network commands.
ESP8266_LED_Control_apr07a.inoβ Main Arduino sketch for LED controlarduino_secrets.hβ Stores your Wi-Fi credentials securelythingProperties.hβ IoT property definitionssketch.json,ReadMe.adocβ Project metadata
β
ESP8266 board (e.g., NodeMCU)
β
Arduino IDE (latest version)
β
Wi-Fi network SSID and password
β
LED + Resistor + Jumper wires
-
Install ESP8266 Board in Arduino IDE
- Go to File > Preferences
- Add this URL in βAdditional Board Manager URLsβ:
http://arduino.esp8266.com/stable/package_esp8266com_index.json - Open Tools > Board > Boards Manager β Install esp8266.
-
Configure Code
- Open
arduino_secrets.h - Replace placeholders with your Wi-Fi SSID and Password.
- Open
-
Connect LED
- Connect LED positive (anode) to GPIO pin defined in your code (e.g., D1 / GPIO5).
- Connect LED negative (cathode) to GND via a 220Ξ© resistor.
-
Upload Code
- Select your ESP8266 board and COM port in Tools.
- Click Upload.
-
Test
- Open Serial Monitor to view IP address and status logs.
- Control the LED via the configured web interface or commands (as implemented).
- Configuring ESP8266 with Arduino IDE
- Connecting to Wi-Fi networks programmatically
- Controlling hardware (LED) via network commands
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change or improve.
This project is licensed under the MIT License β feel free to use and modify.
Gaurav Vibhandik
Third Year AI & Data Science Student