Tasmota NodeMCU Alexa Smart Home System 2021 Without Coding

by techstudycell in Circuits > Microcontrollers

3342 Views, 12 Favorites, 0 Comments

Tasmota NodeMCU Alexa Smart Home System 2021 Without Coding

vlcsnap-2021-07-20-07h06m10s091.png
vlcsnap-2021-07-20-07h06m58s842.png
vlcsnap-2021-07-20-07h09m17s940.png
vlcsnap-2021-01-17-19h59m11s931.png
thumb _website.jpg
Tasmota ESP8266 NodeMCU Alexa voice control home automation system without coding | IoT Project 2021

In this IoT project, I have shown how to make IoT-based Smart Home Automation Using Tasmota Amazon Alexa & ESP8266 NodeMCU to control 4 home appliances from the manual switch & Amazon Alexa App. 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. You don't need any coding skills to make this project, so anyone can make it.

This Tasmota ESP8266 smart home system has the following features:

  1. Control home appliances with voice command using Alexa.
  2. Control home appliances with manual switches.
  3. Monitor real-time feedback in the Alexa App.
  4. Control home appliances manually without internet.

So, you can easily make this home automation project at home just by using a NodeMCU and relay module. Or you can also use a custom-designed PCB for this project.

Supplies

You can make this project just by using NodeMCU and 4-channel relay module. But if you use PCB then you need the following components.

  • 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)
  • Terminal Connectors
  • 5V DC supply

Circuit Diagram of the No Project

vlcsnap-2021-06-06-19h21m04s477.png

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 are connected with push buttons 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.

You can also connect switches (latched) instead of push buttons.

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

Control Relays With Amazon Alexa

vlcsnap-2021-07-20-07h06m01s382.png
vlcsnap-2021-07-20-07h03m54s903.png

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

You can control, monitor the real-time status of the relays in the Alexa App from anywhere in the world.

You need an Amazon ECHO device for this home automation project.

Control Relays Manually With Switches

vlcsnap-2021-07-20-07h03m42s807.png
vlcsnap-2021-07-20-07h07m29s094.png

You can also control the relays from the switches or pushbuttons.

You can monitor the real-time feedback in the Tasmota dashboard or Alexa App.

Please refer to the circuit diagram to connect the pushbuttons or switches.

Design the PCB for This Smart Home System

vlcsnap-2021-01-17-19h58m26s121.png
vlcsnap-2021-01-17-19h58m40s950.png
vlcsnap-2021-01-17-19h58m50s543.png

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.

You can download the PCB Gerber file of this home automation project from the following link:

https://drive.google.com/uc?export=download&id=1Jx...

Order the PCB

JLC 1.jpg
JLC 2.jpg

After downloading the Garber file you can easily order the PCB

1. Visit https://jlcpcb.com/ and Sign in / Sign up

2. Click on the QUOTE NOW button.

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

Uploading the Gerber File and Set the Parameters

JLC3.png
JLC 4.jpg

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

5. After selecting all the Parameters for PCB click on SAVE TO CART button.

Select Shipping Address and Payment Mode

JLC5.jpg
JLC6.jpg

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 JLCPCB.com.

My PCBs took 2 days to get manufactured 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

vlcsnap-2021-01-17-19h59m20s552.png
vlcsnap-2021-01-17-19h59m26s786.png
vlcsnap-2021-01-17-19h59m32s188.png

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

Then connect the NodeMCU board with the PCB.

Download the Tasmota Firmware to Flash ESP8266

vlcsnap-2021-07-22-15h40m33s854.png
vlcsnap-2021-07-22-15h40m45s758.png

You need to download only two files to flash the ESP8266 NodeMCU

Download the tasmota firmware tasmota.bin from https://ota.tasmota.com/tasmota/release/

Download the flashing tool Tasmotizer.exe from https://github.com/tasmota/tasmotizer/releases/

Flash ESP8266 With Tasmota Firmware

vlcsnap-2021-07-20-07h13m05s109.png

Steps to flash the ESP8266 with tasmota.bin firmware

  1. Connect the NodeMCU with the laptop
  2. Open the Tasmotizer.exe
  3. Select the proper port.
  4. Select the BIN file, browse and open the tasmota.bin file
  5. Check the Self-resetting and Erase before flashing.
  6. Click on Tasmotize.

After the flashing completes, you will get a successful message.

Update the WiFi Credentials

vlcsnap-2021-07-20-07h13m56s626.png

To update the WiFi credentials,

  1. Click on "Send Config"
  2. Enter the WiFi Name and WiFi password.
  3. Click on Save.

After that, you have to wait for 5-10 seconds.

Get the IP to Access the Tasmota Dashboard

vlcsnap-2021-07-20-07h14m14s518.png

Now, click on the Get IP.

Copy the IP address.

Go to any browser and enter the IP to access the Tasmota dashboard.

** The WiFi network should be same.

Configure the ESP8266 Module (GPIO)

vlcsnap-2021-07-20-07h20m23s852.png
vlcsnap-2021-07-20-07h20m51s944.png
vlcsnap-2021-07-20-07h21m31s969.png
vlcsnap-2021-07-20-07h22m29s936.png
vlcsnap-2021-07-20-07h22m58s154.png

Steps to configure the ESP8266 in Tasmota

  1. Click on Configuration.
  2. Click on Configure Module.
  3. select the module type "Generic (0)"
  4. Click on Save and go to Main Menu.
  5. Now, again click on Configuration and then click on Configure Module.
  6. Then map all the GPIO pins connected with Relays and Switches. (Refer to the picture)
  7. Then click on the Save and go to "Main Menu".
  8. Now, you can control the relays from the Tasmota dashboard.

I have selected "Relay_i" as I have used the active LOW relay module, otherwise, you can select Only "Relay".

If you use pushbutton/momentary switch select "Button", otherwise select "Switch".

Configure Alexa for Tasmota Devices

vlcsnap-2021-07-20-07h23m32s064.png
vlcsnap-2021-07-20-07h23m40s986.png
vlcsnap-2021-07-20-07h23m59s848.png

Steps to configure the Amazon Alexa for Tasmota devices

  1. Click on Configuration.
  2. Click on Configure Module.
  3. Enter a Friendly Name for each device.
  4. Select Hue Bridge Emulation.
  5. Click on Save and go to "Main Menu"

Alexa will identify the device with the Friendly Name of that device.

Configure the Alexa App to Connect Tasmota Devices

alexa nodemcu.jpg

Open Amazon Alexa App and follow the steps:

1. Tap on Devices. Then Tap on the "+" icon.

2. Tap on "Light", then select "Others".

3. Goto Alexa and tap on "DISCOVER DEVICES". It will take a minute to add devices. During this time the ESP8266, Echo Dot should be connected with the same WiFi.

4. Tap on "Devices", and tap on "Lights" to see all the devices.

Turn ON the Supply

vlcsnap-2021-07-20-07h31m19s729.png

Turn on the 110V/230V supply and 5V DC supply.

Finally!! the Tasmota Alexa Home Automation System Is Ready

vlcsnap-2021-07-14-22h04m03s097.png
vlcsnap-2021-07-20-07h32m12s453.png
vlcsnap-2021-07-20-07h31m31s036.png

Without writing a single line code, our Tasmota Alexa Home automation system is ready.

Now you can control the appliances from anywhere in the world from the Amazon Alexa app.

You can also control the appliances from switches and monitor the real-time feedback.

I hope you have liked this Alexa home automation project. I have shared all the required information for this project. I will really appreciate it if you share your valuable feedback.

Also if you have any query please write in the comment section.

Thank you & Happy Learning.