NodeMCU ESP8266 Alexa App Voice Control Home Automation System | IoT Projects 2021
HTML-код
- Опубликовано: 9 фев 2025
- In this IoT projects, I have shown how to make the NodeMCU ESP8266 Alexa App voice control home automation system to control 4 home appliances without using any amazon Alexa echo dot devices. If no internet, still you can control the relays from manual switches with this Smart Home system.
$2 for 1-4 Layer PCBs, sign up to get $18 new user coupons: jlcpcb.com/RHS
Discount Coupon Code:- JLCPCBcom
Download PCB Gerber file for this NodeMCU IoT based home automation project
drive.google.c...
**Sinric will expire soon. For Sinric Pro please refer to the following updated tutorial video
• Smart Home with Google...
During the tutorial video, I have covered the following topics:
00:25 How to control 4 relays using NodeMCU from Alexa App and switches.
02:56 Circuit diagram of this ESP8266 IoT based Smart Home project.
03:49 How to create an account and add devices in Sinric.com.
04:51 Programming the ESP8266 NodeMCU with Arduino IDE
06:25 How to connect IoT devices & ESP8266 with Amazon Alexa App.
07:36 Connect home appliances with the smart relay module.
08:02 Controlling 4 appliances with Alexa using the NodeMCU control relays.
Required Components for this Alexa home automation system
1. NodeMCU
2. 4-channel 5V SPDT Relay Module
3. Switches
4. Amazon Alexa Echo Dot (optional)
Amazon India Affiliate links:
NodeMCU : amzn.to/3fJA4EG
4-channel 5V Relay Module : amzn.to/2BQ5Y3o
Alexa Echo Dot (4th Gen) : amzn.to/3srCiPA
Amazon United States Affiliate links:
NodeMCU : amzn.to/2WoR2A2
4-channel 5V Relay Module : amzn.to/3r2HuJ4
Alexa Echo Dot (4th Gen) : amzn.to/37sSd84
Required Components for the NodeMCU control Relay Module PCB:
1. Relays 5v (SPDT) (4 no)
2. BC547 Transistors (4 no)
3. PC817 Optocuplors (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 (5 no) (D1 -- D5)
8. Push Buttons (4 no)
9. Terminal Connectors
10. 5V DC supply
**Sinric will expire soon. Please refer to the following updated tutorial video with Sinric Pro
• Smart Home with Google...
Download Code for this NodeMCU smart house automation project from the following article
iotcircuithub....
If you use Push Buttons instead of switches then download the following code.
drive.google.c...
Sinric.com Link: sinric.com/login
**During the start or Boot process, the Switch1 (Pin SD3) should be OFF. Because if the SD3 pin connected with the GND pin the boot will fail. If you use push buttons then ignore this.
During the internet of things tutorial video, I have explained all the steps to make this amazon home automation system to control 4 home appliances with and without internet. You can use both Alexa Echo Dot and the Alexa mobile app to control the relay module from anywhere in the world. And you can also monitor the real-time feedback in the Amazon Alexa IoT applications. So with this smart house project, you can convert any appliance to Alexa compatible devices and control them with voice commands.
#internetofthings #esp8266 #Alexa
-------------------------------------------------------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more such projects: iotcircuithub....
Facebook: / techstudycell
Instagram: / techstudycell
Telegram: t.me/techstudy...
-------------------------------------------------------
Other useful IoT projects:
Latest ESP32 projects playlist:
• ESP32 Projects
NodeMCU Alexa Home Automation with Amazon Echo Dot
• Alexa Home Automation ...
ESP32 Smart Home System with Amazon Alexa app & Manual Switches
• ESP32 Smart Home Syste...
WiFi Door Lock using ESP32 CAM & Blynk
• WiFi Door Lock using E...
**Sinric will expire soon. Please refer to the following updated tutorial video with Sinric Pro.
ruclips.net/video/gpB4600keWA/видео.html
We have long resisted getting an Echo. Never really saw a need. ruclips.net/user/postUgkxhB5YOMNj04GuoAosExygP4cH-dKeb4aB When we recently completed some remodeling in our home, we realized we had failed to add a switch to turn on a certain lamp across the room. We couldn't run new wiring (which would have been expensive if we could), so we got our first Echo which completely solved our problem for about $40 (Echo Dot and smart plug). We just ask Alexa to turn on/off that light. Heartily recommend it to solve this kind of conundrum!
Register option is not available on sinric
Superb Bro I had tried it and its working superb
👌👍👍
Great 👍
am getting an error on json can you find it
"json was not declared in this scope" is the error at line number 145 for " String deviceId = json ["deviceId"];"
....
@@sairambattu4019 me too
Bro can u add a sensor to the A0 and get feedback in the Alexa app and one more thing can you add multiple wifi ssid, this would be useful when one network is down!
set the same wifi name in your mobile hotspot, that u use on daily basis, trust me this will work for sure, i do the same, whnevr my wifi gets down
@@manmeetsinghKJ when I need to go out with the phone? then I won't be able to control it via internet
i done it my home thanks a lot for a video....
What kind of switch did you use? Single pole single throw or single pole double throw?
Hey can you please suggest me how can I use Google assistance without ifttt because it's only letting 3 applets
Should we connect same wifi
This is the thing I need
I watched your and i done the project ghank you soo much. Next 8 ch relay project please upload the video thank you.
Super 👍
Thanks
Dada.. Sinric is Ending up on 31 Aug, Is there any other from which we can control like same after this time
no it is not
can we control from multiple phones?
Yes you can
How many devices can a single module access?
hi i have one question can we use 8 channnel relay this unit
How to do that with 8 and 16 relay switches please help me for my final year project
Superb👍
Bro this project details I want build one like this
Thanks
@@TechStudyCell sir when manual switch is in on condition then if light goes and came again the nodemcu is not booting or starting please solve this problem
@@TechStudyCell sir please help me when the switch is in on condition nodemcu board is not starting if you not understanding me do by yourself but please sir help me... After power cut of nodemcu if switch is in on condition then if power came then nodemcu is not starting please help me sir
The switch1 (SD3) should be off during start or boot processe. Because if SD3 grounded, the boot will fail.
Appreciated this video but just want to ask if it possible to make at least 8 relay to control 8 circuits?
Sir i am not able to upload a simple blink code also to my nodemcu it shows fatal error. Is there problem with board or any other thing please could you say.
In coding upload time long press boot button in nodemcu
Had same problem... Solved now
Sir, is it possible to make same thing without using sinric or other 3rd party service?
yes. but you need an Alexa Device. pleas refer to following video. ruclips.net/video/OJ4CzWyRQr4/видео.html
Sir,can I use 4 channel 24v relay
Nice project bro. Please make a project with Alexa and NodeMcu with soft credential. After changing the network it is required to provide SSID and Password in the program which is time taking.
Can we add Arduino iot cloud instead of sinric in this project
I want to create account in sinric so its not possible. any other ways to connect esp8266 nodemcu to google assistant or alexa without sinric or iffttt
I have already programmed blynk and its working but i want to connect to voice commands what to do ?
You can refer the following video. I have not used any third party plugins.
ruclips.net/video/OJ4CzWyRQr4/видео.html
Would be it possible that using alexa app instead of speaker sir?
Bro ihave purchased all the products today
Is this video...enough to do this project
I am doing this for my acadameic project...please help me to do this bro
It was very important to me bro
@@tejaunnamatla8876 Did you made this project?
Can you please add a 5v power supply to the pcb so that it becomes a sand alone system? Also, if you could build a version with fan regulator it would be great.
Hi Sir. Thanks for this amazing tutorial!
I have a doubt.
What do we have to do with "VIN" and "GND"?
I am a beginner so I am not familiar with these terms.
Do we have to ground anything to the GND?
Battery input
I hade a problem during a plodding code witch 'jason' was not declared in this scope where should I declare it
Nice and helpful video sir ,
Esp32 module is dual core wifi+Bluetooth so how can we make a full functional use of this board,
I mean , try to make video of same in which any how Bluetooth also be included if possible,
and can be controlled with Google and Alexa as well,
Once again thanks for Making such a easy and wonderful video.
This is possible. Will make video on this soon.
Good video. Nicely done.
Thanks for the feedback
Same project google home googe ki babe use korbo
Do you have the readymade PCB for sale?
Yes Please send email to connect.techstudycell@gmail.com
@@TechStudyCell sent
you are my hero.... but i want you to add fan speed control also in same project...
plz plz....
plz...
manmeet
Nice project... Bro can you make a tutorial on AC fan regulator( AC Dimmer)?
Very nice bro
Will do it one for my home
But i have a doubt, if there is no wifi when node mcu boots
Will it can still be controlled manually
Yes. But make sure when you boot NodeMCU, all switches should be off.
@@TechStudyCell but switch doesn't work for me when booting
During boot will not work
@@TechStudyCell i mean when there is no wifi available during boot
It works only when it gets wifi
@@TechStudyCell I mean wifi is on every thing good but when the manual switch is in on condition then nodemcu is not starting no response . Please help sir
It is very good video. It like me. 👍
Thank you very much
@@TechStudyCell you are always welcome
Serial monitor repeats this as seen below. What is the problem?
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v000672b0
~ld
You are great 👍👍👍👍👍👍👍👍👍🙏🙏🙏🙏🙏🙏🙏🙏
You can make IR and tuch/manual switch control home automation circuit....
Please....
Ok
Can you make a video for wiring the manual switches
Okay
sir plz eeprom wala coding bnaiea iska.. Mere paas ek code hai eeprom wala lekin wo sahi se kaam nai kr rha kya ap uss code ko edit kr sakte hai agar mai apko dun to????
Can I get a circuit diagram of how to connect switches too with it??
And will it allow me to use in different phones.
You have to connect the switches across esp32 gpio and GND pin. Please refer the circuit shared during video.
I am not getting this amazon alexa app on google play store can you send the link of this app
pls help, error message during uploading "sinricpro.h: no such file or directory"
Great video, thanks.
Welcome
Hi will there be a code change if i use Sinric pro.com instead of sinric.com?
Thanks for sharing. Where is the wiring diagram?
how much load(Amp.) can we put on it.
Can you make a video on how to connect the wires with the relay module and nodeMcu with the manual switches. Really need some help
I will share complete circuit in next video
Thank you soo much. Means a lot
How did you create the PCB software file? Which application did you use?
Diptrace
@@TechStudyCell Any quick tutorial you recommend, a weblink or video series? Just want to shorten the learning curve, thanks much!
Bro in remote areas many times power cutoff hapeens, and thus it cause network drop as well. I tried this project but when power cutoff and network cutoff happens this nodemcu doesn't connect automatically to alexa......is there any code i can try where nodemcu will keep connecting or check connection every one or two minutes and connects again....i dont want to use use sinric or other paid platforms....thanks
Here I have not used any paid platform. I have used free version of Sinric. It will take some time to reconnect.
If you don't want to use any 3rd party plugin then please refer to the following video.
ruclips.net/video/OJ4CzWyRQr4/видео.html
Bro thanks for ur video it was helpful....I was also facing some other issue...if u can guide it will be helpful....I hv added two node mcu (living room and kitchen) and alexa is detecting 8 devices but whenever I try to create group in Alexa app either it will take first device from first nodemcu or from other nodemcu but not both at a time
Sir how we have to add push buttons directly ground and digital pins or using a resistor
Just connect push button instead of switches. I have used input_pullup function in code. So resistor is not required.
Hello TechStudycell, My app Alexa and Sinric is ok but all my devices on sinric is offline, so I'm can't send comands from Alexa...What can it be?
Are you using Sinric Pro
@@TechStudyCell Yes, I am only 2 devices. Will it be because I'm not using Api Key Secret?
Hey bro can we connect 8 ch to node mcu esp 8266 lolin board with 8 mannual switch if yes plese share code
Sir please do a video of using sinric pro instead of sinric version 1 i have no account in sinric version 1
I try to avoid using any paid platform if free alternative available.
Sir sinric is no allowing new accounts. Is it same procedure for sinric pro? If yes how to get api key
Yes. They made this change. You can refer to this video ruclips.net/video/b5yr-H6jJAc/видео.html
Is there anyway add this project to home assistant?
I have to check that.
Where you buy switches like that????
any electrical shop
hi! i watched your video and i too want to build the same for me.
but i have a doubt, can u please resolve my query?
my queation is:
if i turn ON the bulb from switch and as u said we can see its status in alexa app. then can we turn it off from alexa app. (meanwhile the manual switch was ON).
is it possible??
plz reply.
thanx
Yes, you can can turn off from Alexa app. The manual switch will remain in ON position. Again to turn on the lamp from manual switch, first have to turn off, then turn on the switch.
@@TechStudyCell : thanx bro, i too was asuming the same.
but there is one issue. if the relay burned up (or failed to work) then the light will not ON until we replace the burned relay with new one. am i right??
awesome project,is the Alexa Amazon APP not for free because i am not able creating account on the APP in order to open it.
It is completely free. Please Google if any restrictions in your country
What app you used for circuit board
The official Amazon Alexa App. Please refer the article shared in description.
thank you man
Welcome
@@TechStudyCell really I want to kiss you for this perfect code ❤❤❤
Muito obrigado por compartilhar seu conhecimento amigo. Me ajudou muito. Parabéns
Bro how to change this code for 8 channel relay synric?
BRO. CAN YOU MAKE THIS PROJECT WITHOUT (SINRIC) ONLY ALEXA AND MENUAL SWITCH (NOT PUSH BUTTON SWITCH)
Tnq bro..🔥❤️
can I control 8 channel relay
I Need EEPROM.h code in same project for state power please provide
can i use 2 app key from 2 different account ?
No
hey buddy! this project is awesome. can i do the same using 8 channel relay module and control 8 devices?
Yes you can! you have to use ESP32. Please refer the following video: ruclips.net/video/b5yr-H6jJAc/видео.html
@@TechStudyCell oh, ESP8266 is not possible?
Why do you do a project that one nodemcu controls 2-3other nodemcu by pressing on main nodemcu?
Ok
Sir please help, Error: no match for 'operator[]' (operand types are 'ArduinoJson::DynamicJsonDocument' and 'const char [9]')
Maximum number of relay with ESP32?
MAY I ADD MORE THAN 8 RELAY?
Yes
@@TechStudyCell I kindly request you to please make a video with maximum use of relay with ESP32 and share on your website as well.
And please use stock pcb which is available in indian market. Most of us cannot print pcb from jlcpcb.
Sir, sinric free ver is expired, so I tried with sinric pro, the error comes at 89%, while uploading. Please suggest.
Will make video on it soon. Thank you
Bhai Please tell me... What will we do because sinric is expiring on 31 Aug....
Also can you provide code for sinric pro, it provide only 3 free devices
I will publish the video on Sinric Pro by this weekend
@@TechStudyCell Thanks alot... I also found 1 more app SMARTNEST it is also giving 5 free devices
Sir provide push button code please
Already shared the link for Push button. Please check description.
Sir please add one amazing thing that it can remember the last state of switch in push button whether it is on or off when power cut
Please sir make possible please and provide code in discription
sir from where should I get the library
link shared in the code. please refer to this tutorial ruclips.net/video/f6ovK57qPRg/видео.html
sir ple send code 8channel with manual push buttons sinric operating for tuch switches
Shared
please give code for 8 channel relay module
sir how to use this type switch with esp32. plz make a vdo on this
Already done. Please check our previous video
@@TechStudyCell but previous vdo you joint a push bottan
Я хоть и не знаю вашего языка, но я все понял! Спасибо!
14th noobs! Good video!
Thanks
Can't we make project using Google assistant in android .plss make a video on it
I have started working on this. Thanks.
Thanks for sharing such an Awesome project. I compiled the code with all the required libraries selecting NodeMCU 1.0
(ESP-12E MODULE) but it gives error on compiling at line ButtonCofig config4;
'ButtonConfig' does not name a type.
Can you please guide why I m getting this error. I m using Arduino IDE 1.8.3
Awaiting your earliest response.
Thanks.
Download the latest version of AceButton library from the given link. And install it
@@TechStudyCell Hi dear, I installed Ace button latest library 1.8.1 but I m still getting "Error compiling Nodemcu 12e".
Can you please share which versions for all the libraries are you using in this code.
So I use same versions . Secondly In board manager what versions for avr & esp8266 are you using. Please guide.
Thanks once again.
@@yawarsaeed6499 I have same problem for node MCU compiling. If the problem is solve from your side please tell me what you do ?
Sir is project mai eephrom add kare power on-off hone par load states on rahe
Bro how to power 12v 8 channel relay module please guide me
Give separate 12v supply to relay module, and 5v supply to NodeMCU. Connection of control pins will be same.
@@TechStudyCell ok bro
Very nice but Pusu buttons wat is the use not showing sir
I will share the code for push button tomorrow in the description.
Wow great Thenku ❤ sir
@@TechStudyCell sir ple send code
@@TechStudyCell sir please provide the code for push button please sir
Shared. Please check description.
Bro i need help 😭
I can't setup library 😭
Can you give me liberty setup tutorial 🙏
In Alexa app you are not notificated if your device is on or off. Need somme changes in program. If mi device is offline, in the app it is online everitime, not good.
error: variable or field 'button1Handler' declared void please help me
HOW initialize when using normal switch instead of push button
pls tell sir how to initialize when using normal switch
pls
For switches, I have used AceButton library.
Bro i don't know how to download the library
Sir please upload the code with push button
Link shared in the description. Please check.
You have mentioned components twice, once with 4 elements and another with 10 elements (diodes, optocouplers, transistors, etc). If I don't use any PCB is it okay to try the project with only node mcu, relay, and switches?
I mean without any diodes, transistors, etc you have mentioned later.
Diode, transistor required to make relay module circuit. If you use relay module then you don't need them
@@TechStudyCell thank you very much for the reply.
And one little question, so if I use a relay module then I only need to buy a node mcu, no extra resistors/capacitors/diodes/transistors will be required?
Yes. But currently you can't register in Sinric. You have to go for Sinric Pro
@@TechStudyCell Thank you for your support, really appreciate it.
@@TechStudyCell Amazon Alexa app is not available in our country. Can I use any other app like sinric pro for the project? or can you suggest any other app?
2.10 why the switch automatically turns on?
Why a reset is required frequently? Showing this arrangement is not stable.
Reset is not required. Just upload the code and use it. During starting the NodeMCU switch 1 should be off.
I got an error...variable or field 'button1handler' declared void...pls give me solution
Please install the Acebutton library.
@@TechStudyCell thanks bro please give me your mail id or whatsapp i have been following you...u done a good job
@@TechStudyCell bro i already installed it..but still i got an error..can u send me Acebutton library and code pls
please I want to submit my project
whenever I connect my switch with ESP8266, everything freezes and stops working. made every possible move ut couldn't come out of the loop. Please help
During starting (booting) the NodeMCU switch 1 should be turn off. After that the boot you can control as you want.