DIY Home Automation Using ESP8266

by uElectroPro. in Circuits > Electronics

2995 Views, 5 Favorites, 0 Comments

DIY Home Automation Using ESP8266

maxresdefault.jpg

In this project I will show you how to make Home Automation System using ESP8266 WiFi module. This system is based on Esp8266 relay board that you can use to control your home appliances over WiFi using Blynk app.

This project is sponsored by JLCPCB.
JLCPCB is a largest PCB manufacturing Company in China with over 10 years of PCB manufacturing experience. Try it yourself and order high quality 10 PCBs for only $2 (Any Color).

Let's get started!

Watch the Video!

ESP8266 Home Automation || ESP8266 WiFi Relay Board || IoT Project || uElectroPro

This video gives you all the information you need to make your own home automation system. Next steps will provide you some useful information. If you want to know how to use ESP8266 WiFi module with Arduino, watch the video here.

Order the PCBs and Components

bandicam 2019-02-27 11-33-18-043.jpg
IMG_20190301_104527.jpg
IMG_20190301_103323.jpg
IMG_20190225_115201.jpg
IMG_20190301_104640.jpg
IMG_20190301_104716.jpg

Order the PCBs from JLCPCB. They offer high quality PCBs for extremely low prices (10 PCBs for $2 any color). Just grab the PCB Gerber file from below and upload it on JLCPCB website. You will receive the PCBs within a week.

You can order components from LCSC website. Download the components file from below. Upload the file on LCSC website and select the required components quantity.

Components (minimum quantity):

Atmega328p x1

28 pin IC Socket x1

47µF Electrolytic Capacitor x2

2.2µF Electrolytic Capacitor x1

Green LED 0603 x2

Blue LED 0603 x4

20pF Ceramic Capacitor 0603 x2

10k Resistor 0603 x1

1k Resistor 0603 x7

2.2k Resistor 0603 x1

510 Resistor 0603 x4

16MHz Crystal Oscillator x1

78M05 5V Voltage Regulator x1

HT7233 3.3V Voltage Regulator x1

1N4007 Diode THT x4

M7D Schottky Diode x1

Header male and female

12V DC Jack x1

PC817C Optocouplers x4

BC547 Transistor (NPN) x4

Terminal Blocks x4

5V Relays x4

ESP8266 01 Module (not included in lcsc file) x1

Soldering the Components

Schematic_WiFi-Project_Sheet-1_20190125200654.png
IMG_20190225_110804.jpg
IMG_20190225_101302.jpg
IMG_20190225_101317.jpg
IMG_20190225_101427.jpg
IMG_20190225_101506.jpg

Solder the components according to schematic. First solder the small components or SMD components on pcb then solder the through hole (THT) components.

Upload the Code

bandicam 2019-02-26 18-02-55-371.jpg
IMG_20190301_143649.jpg

There are many ways to upload code upload code. First one is, simply upload the code on Arduino Uno then take out the atmega328p chip and insert it in the PCB. OR

If you are using new ATmega328p, you will need to Burn the Bootloader onto it, learn how to Burn Bootloader.

Upload the code on atmega328p, for that you can use Arduino Uno without atmega328p chip or use USB to TTL converter.

Download the code from below or click ESP8266 WiFi Relay

And You're Done!

IMG_20190225_104611.jpg
IMG_20190225_104619.jpg

Your Home Automation System is complete. You can control your board with Blynk App. Now you can control home appliances like lights, fan, TV, AC etc using blynk app over wifi.

Automatic Lights System: If you want to make lights automatically turn ON or OFF in the dark, connect a light sensor (LDR) to analog pin and control automatic light system using Blynk app.

Thanks to JLCPCB for sponsoring this project.

For more interesting projects:

Subscribe to my YouTube Channel

And Follow me on Facebook