In this IoT project, I have shown how to make IoT-based Smart Home Automation using NodeMCU Cadio to control 4 home appliances from the Google Home, Amazon Alexa App, and Cadio.

If the internet is not available, then you can control the home appliances from manual switches. During the article, I have shown all the steps to make this smart home system.

Tutorial Video on IoT Project using ESP8266 NodeMCU

This ESP8266 NodeMCU home automation system has the following features:

Required Components (Without PCB):

Required Components (With PCB):

Circuit Diagram of the ESP8266 IoT Project

This is the complete circuit diagram for this home automation project. I have explained the circuit in the tutorial video.

The circuit is very simple, I have used the GPIO pins D1 (GPIO-5), D2 (GPIO-4), D5 (GPIO-14), and D6 (GPIO-12) to control the 4 relays.

And the GPIO pins SD3 (GPIO-10), D3 (GPIO-0), D7 (GPIO-13), and RX (GPIO-3) are connected with pushbuttons to control the 4 relays manually.

I have used the INPUT_PULLUP function in Arduino IDE instead of using the pull-up resistors.

I have used a 5V mobile charger to supply the smart relay module.

Install CADIO Firmware on ESP8266

To make this project, first, you must install the Cadio Firmware on ESP8266.

Now reset the ESP8266 NodeMCU and wait for 30 seconds. The inbuilt LEDs will start blinking which indicates it is in config mode.

Configure the NodeMCU Using Cadio App

Enter GPIO for Relays and WiFi Details

Now we have to connect the ESP8266 NodeMCU to the circuit. Although you can make the circuit without using any PCB, to make the circuit compact I have designed a PCB.

Design the PCB for This ESP8266 Project

To make the circuit compact and give it a professional look, I designed the PCB after testing all the features of the smart relay module.

You can download the PCB Gerber file of this home automation project from the following link and order it from JLCPCB.

Download PCB Gerber: GitHub Link

You can also use their SMT Service for your PCB order.

Why you should use JLC SMT Service?

On JLCPCB's one-stop online platform, customers enjoy low-cost & high-quality & fast SMT service at an $8.00 setup fee($0.0017 per joint).

$27 New User coupon & $24 SMT coupons every month.

Visit https://jlcpcb.com

JLCPCB SMT Parts Library 200k+ in-stock components (689 Basic components and 200k+ Extended components)

Parts Pre-Order service https://support.jlcpcb.com/article/164-what-is-jlcpcb-parts-pre-order-service

Build a Personal library Inventory, save parts for now or the future

Assembly will support 10M+ parts from Digikey, mouser.

Steps to Order the PCB Assembly from JLCPCB

1. Visit https://jlcpcb.comand Sign in / Sign up.

2. Click on the QUOTE NOW button.

3. Click on the "Add your Gerber file" button. Then browse and select the Gerber file you have downloaded.

4. Set the required parameter like Quantity, PCB masking colour, etc.

5. Select the Assemble side and SMT Quantity.

6. Now upload the BOM and PickAndPlace files.

7. Now confirm all the components which you want to be soldered by SMT services.

8. Click on the SAVE TO CART button.

Select Shipping Address and Payment Mode

6. Type the Shipping Address.

7. Select the Shipping Method suitable for you.

8. Submit the order and proceed with the payment.

You can also track your order from the JLCPCB

My PCBs took 3 days to manufacture and arrived within a week using the DHL delivery option.

PCBs were well-packed and the quality was really good at this affordable price.

Solder All the Components on PCB

After that, I soldered all the components as per the circuit diagram.

Then connect the NodeMCU board with the PCB.

Now turn on the 5V DC supply. If the NodeMCU is connected to WiFi, the in-built blue LED will turn ON.

Change the Device Name in CADIO App

Control Relays With Cadio App

If the NodeMCU ESP8266 is connected to WiFi, you can control the home appliances from Cadio App.

You can also monitor the real-time feedback from anywhere in the world.

Connect CADIO With Google Home

Now you can also control the appliances with voice commands using Google Assistant.

Connect CADIO With Amazon Alexa

Linking CADIO account with Amazon Alexa

Connect the Appliances With the PCB

Now connect the appliances with PCB as per the circuit diagram. Please take proper safety precautions while working with high voltage.

Connect the 5-volt DC supply with the PCB. (I have used my old mobile charger)

Now your ESP8266 home automation system is ready.

I hope you have liked this Cadio home automation project. I have shared all the required information for this project.

I would really appreciate it if you share your valuable feedback. Also if you have any queries please write in the comment section.

Thank you & Happy Learning.