Skip to content

Gaurravvvv/ESP8266_LED_Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

ESP8266 LED Control

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.


πŸ“ Project Structure

  • ESP8266_LED_Control_apr07a.ino – Main Arduino sketch for LED control
  • arduino_secrets.h – Stores your Wi-Fi credentials securely
  • thingProperties.h – IoT property definitions
  • sketch.json, ReadMe.adoc – Project metadata

πŸ”§ Requirements

βœ… ESP8266 board (e.g., NodeMCU)
βœ… Arduino IDE (latest version)
βœ… Wi-Fi network SSID and password
βœ… LED + Resistor + Jumper wires


πŸš€ Setup Instructions

  1. 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.
  2. Configure Code

    • Open arduino_secrets.h
    • Replace placeholders with your Wi-Fi SSID and Password.
  3. 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.
  4. Upload Code

    • Select your ESP8266 board and COM port in Tools.
    • Click Upload.
  5. Test

    • Open Serial Monitor to view IP address and status logs.
    • Control the LED via the configured web interface or commands (as implemented).

πŸ’‘ What You Learn

  • Configuring ESP8266 with Arduino IDE
  • Connecting to Wi-Fi networks programmatically
  • Controlling hardware (LED) via network commands

🀝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change or improve.


πŸ“œ License

This project is licensed under the MIT License – feel free to use and modify.


✨ Author

Gaurav Vibhandik
Third Year AI & Data Science Student


⭐ If you find this helpful, give the repository a star!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors