. IoT Smart Home – Control Light Using Mobile ~ SmartElectronicsDIY

IoT Smart Home – Control Light Using Mobile

 

๐Ÿ“Œ Introduction

In this IoT project, we will build a Smart Home Light Control System using ESP8266 WiFi module, Arduino, and Blynk IoT platform.
You can turn ON/OFF a light from your mobile phone from anywhere in the world using the Internet.


๐Ÿง  Working Principle

  • Mobile app sends command via Internet

  • ESP8266 receives data through WiFi

  • Arduino processes the command

  • Relay switches the light ON or OFF

This is a real-world IoT application used in smart homes and offices.


๐Ÿงฐ Components Required

ComponentQuantity
Arduino UNO1
ESP8266 (ESP-01)1
Relay Module (5V)1
Bulb / Load1
Breadboard1
3.3V Regulator (AMS1117)1
10kฮฉ Resistor2
Jumper WiresAs required
Smartphone1

๐Ÿ–ผ️ Project Images (Upload in Blog)

๐Ÿ”น Image 1: Components Used




๐Ÿ”น Image 2: Circuit Diagram



๐Ÿ”น Image 3: Mobile App Interface



๐Ÿ”น Image 4: Final Working Model





๐Ÿ”Œ Circuit Connections

๐Ÿ“ ESP8266 to Arduino

ESP8266 PinArduino Pin
VCC3.3V
GNDGND
CH_PD3.3V
TXD2
RXD3 (via 10k/20k divider)

⚠️ ESP8266 works only on 3.3V – do NOT connect to 5V


๐Ÿ“ Relay Connections

Relay PinArduino
IND8
VCC5V
GNDGND

๐Ÿงพ Arduino + ESP8266 Code (Blynk IoT)

#define BLYNK_PRINT Serial #include <ESP8266_Lib.h> #include <BlynkSimpleShieldEsp8266.h> char auth[] = "Your_Blynk_Auth_Token"; char ssid[] = "Your_WiFi_Name"; char pass[] = "Your_WiFi_Password"; ESP8266 wifi(&Serial); void setup() { Serial.begin(9600); Blynk.begin(auth, wifi, ssid, pass); pinMode(8, OUTPUT); } BLYNK_WRITE(V1) { int value = param.asInt(); digitalWrite(8, value); } void loop() { Blynk.run(); }

๐Ÿ“ฑ Mobile App Setup (Blynk IoT)

  1. Install Blynk App

  2. Create new project → Select Arduino UNO

  3. Add Button Widget

  4. Set Virtual Pin V1

  5. Mode → Switch

  6. Copy Auth Token to code


⚙️ Applications

  • Smart home automation

  • Remote light control

  • IoT learning project

  • Home security systems

  • College IoT projects


✅ Advantages

✔ Control from anywhere
✔ Low cost
✔ Easy to expand
✔ Real-time control
✔ Beginner friendly IoT project


⚠️ Safety Note

Do not touch AC wires directly. Use proper insulation while connecting relay and bulb.


๐Ÿ“Œ Conclusion

This IoT Smart Home Project demonstrates how Internet and electronics work together.
It is perfect for students, beginners, and final-year projects.



0 comments:

Post a Comment