Post Top Ad

Sunday, June 4, 2023

on video Smart Home with Google Assistant and Alexa using NodeMCU ESP8266


 Smart Home with Google Assistant and Alexa using NodeMCU ESP8266

In this IoT projects, I have shown you how to make the smart home with Google Assistant & Alexa using NodeMCU ESP8266 to control relays with voice commands and manual switches. I have used all the free tools for this IoT-based home automation system.

Required Components for each room for this NodeMCU home automation

1. NodeMCU

2. 4-channel 5V SPDT Relay Module

3. Switches or Push Buttons

Required Components for the NodeMCU control Relay Module PCB:

1.Relays 5v (SPDT) (4 no)

2. BC547 Transistors (4 no.)

3. PC817 Optocouplers (4 no.)

4. 510-ohm 0.25-watt Resistor (4 no) (R1 -- R4)

5. 1k 0.25-watt resistors (5 no) (R5 -- R9)

6.LED 5-mm (5 no.)

7. 1N4007 Diodes (4 no) (D1 -- D4)

8. Push Buttons (4 no)

9. Terminal Connectors

10.5V DC supply


**Here I can control all 4 relays manually with switches. But as I have used the free Sinric Pro account, so I can control 3 devices with Google Assistant and Alexa. To control the fourth device, you have to purchase 1 device in Sinric Pro.


If you use Switch, then the Switch-2 must be turned off during the booting process of NodeMCU. But for push-button, there is no such limitation.

Smart Home With Google Assistant & Alexa Using NodeMCU ESP8266 - IoT Project 2021

In this IoT project, I have shown how to make an IoT-based Smart Home with Google Assistant & Alexa using NodeMCU ESP8266 to control 3 home appliances with voice commands. 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.


This complete Home Automation system has the following features:


Control appliances with Google Assistant

Control appliances with Alexa

Control appliances manually with switches

Monitor real-time feedback in the Google Home and Amazon Alexa App.

Control home appliances manually without internet.

All resources used for this project are FREE

So, you can easily make this home automation project at home.

NodeMCU

Relays 5v (SPDT) (4 no)

BC547 Transistors (4 no.)

PC817 Optocuplors (4 no.)

510-ohm 0.25-watt Resistor (4 no) (R1 - R4)

1k 0.25-watt Resistors (5 no) (R5 - R9)

LED 5-mm (5 no.)

1N4007 Diodes (5 no) (D1 - D5)

Push Buttons (4 no) or Switches

Terminal Connectors

5V DC supply

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, D2, D5 & D6 to control the 4 relays.


And the GPIO pins SD3, D3, D7 & RX connected with switches 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.


Here, the D3 pin should not be connected with GND during the booting process of NodeMCU.

If the NodeMCU is connected with the WiFi, then you can control the home appliances from Google Home App and also from the manual switches.


You can also ask Google Assistant to turn on and off the appliances.


You can control, monitor the real-time status of the relays in the Google Home App from anywhere in the world. You don't need any Google Home Nest device for this home automation project.

You can also control the home appliances from Amazon Alexa App if the NodeMCU is connected with the WiFi.

You can also ask Alexa to turn on and off the appliances.

You can also control the appliances from the manual switches and monitor the real-time feedback of the relays in the Amazon Alexa App from anywhere in the world.

You don't need any Echo DOT device for this home automation project.

If the WiFi is not available, you can control the relays from the manual switches.

The NodeMCU will check for the WiFi after every 5 seconds. When the WiFi is available, the NodeMCU will automatically connect with the WiFi.

Please refer to the circuit diagram to connect the manual switches.

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


 Smart Home with Google Assistant and Alexa using NodeMCU ESP8266

In this IoT projects, I have shown you how to make the smart home with Google Assistant & Alexa using NodeMCU ESP8266 to control relays with voice commands and manual switches. I have used all the free tools for this IoT-based home automation system.

Required Components for each room for this NodeMCU home automation

1. NodeMCU

2. 4-channel 5V SPDT Relay Module

3. Switches or Push Buttons

Required Components for the NodeMCU control Relay Module PCB:

1.Relays 5v (SPDT) (4 no)

2. BC547 Transistors (4 no.)

3. PC817 Optocouplers (4 no.)

4. 510-ohm 0.25-watt Resistor (4 no) (R1 -- R4)

5. 1k 0.25-watt resistors (5 no) (R5 -- R9)

6.LED 5-mm (5 no.)

7. 1N4007 Diodes (4 no) (D1 -- D4)

8. Push Buttons (4 no)

9. Terminal Connectors

10.5V DC supply


**Here I can control all 4 relays manually with switches. But as I have used the free Sinric Pro account, so I can control 3 devices with Google Assistant and Alexa. To control the fourth device, you have to purchase 1 device in Sinric Pro.


If you use Switch, then the Switch-2 must be turned off during the booting process of NodeMCU. But for push-button, there is no such limitation.

Smart Home With Google Assistant & Alexa Using NodeMCU ESP8266 - IoT Project 2021

In this IoT project, I have shown how to make an IoT-based Smart Home with Google Assistant & Alexa using NodeMCU ESP8266 to control 3 home appliances with voice commands. 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.


This complete Home Automation system has the following features:


Control appliances with Google Assistant

Control appliances with Alexa

Control appliances manually with switches

Monitor real-time feedback in the Google Home and Amazon Alexa App.

Control home appliances manually without internet.

All resources used for this project are FREE

So, you can easily make this home automation project at home.

NodeMCU

Relays 5v (SPDT) (4 no)

BC547 Transistors (4 no.)

PC817 Optocuplors (4 no.)

510-ohm 0.25-watt Resistor (4 no) (R1 - R4)

1k 0.25-watt Resistors (5 no) (R5 - R9)

LED 5-mm (5 no.)

1N4007 Diodes (5 no) (D1 - D5)

Push Buttons (4 no) or Switches

Terminal Connectors

5V DC supply

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, D2, D5 & D6 to control the 4 relays.


And the GPIO pins SD3, D3, D7 & RX connected with switches 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.


Here, the D3 pin should not be connected with GND during the booting process of NodeMCU.

If the NodeMCU is connected with the WiFi, then you can control the home appliances from Google Home App and also from the manual switches.


You can also ask Google Assistant to turn on and off the appliances.


You can control, monitor the real-time status of the relays in the Google Home App from anywhere in the world. You don't need any Google Home Nest device for this home automation project.

You can also control the home appliances from Amazon Alexa App if the NodeMCU is connected with the WiFi.

You can also ask Alexa to turn on and off the appliances.

You can also control the appliances from the manual switches and monitor the real-time feedback of the relays in the Amazon Alexa App from anywhere in the world.

You don't need any Echo DOT device for this home automation project.

If the WiFi is not available, you can control the relays from the manual switches.

The NodeMCU will check for the WiFi after every 5 seconds. When the WiFi is available, the NodeMCU will automatically connect with the WiFi.

Please refer to the circuit diagram to connect the manual switches.

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

No comments:

Post a Comment

Post Top Ad

Pages