Alexa Smart Home Automation system using NodeMCU ESP8266 & Relay Module | IoT Projects
Вставка
- Опубліковано 28 лип 2020
- In this IoT project, I have made the Alexa Smart Home Automation system using NodeMCU ESP8266 & Relay Module. You can control lights, fans, and other home appliances with the voice command. I have used only the Amazon Alexa app to connect the Echo Dot smart speaker with the NodeMCU.
JLCPCB Prototype for $2(Any Color): jlcpcb.com
Download PCB Garber file for this NodeMCU project
drive.google.com/uc?export=do...
Required Components for this Alexa smart home project
1. NodeMCU or ESP32 board amzn.to/3fJA4EG
2. Relay Module amzn.to/2BQ5Y3o
3. Alexa Echo Dot amzn.to/2PkTOTe
Required Components for Relay Module:
1. Relays 5v (SPDT)
2. BC547 Transistors
3. LED 5mm
4. 220-ohm Resistors
5. Connectors
Download Code for this Alexa Home Automation projects
drive.google.com/uc?export=do...
During the video, I have shared the circuit diagram for this Alexa control home automation and also explained the code for this IoT project. This is a very simple home automation project, so you can easily make this smart home device with NodeMCU and Relay module. I have also shown how to set up the Amazon Alexa app for this smart house project. You can control up to 10 home appliances with Alexa.
There is a limitation, the NodeMCU, and the echo dot smart speaker should be connected with the same wifi network.
If you face any issue please let me know in the comment section.
------------------------------------------------------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more such projects: easyelectronicsproject.com/
Find us on Facebook: / techstudycell
-------------------------------------------------------
Other smart home IoT projects:
Latest ESP32 projects playlist:
• ESP32 Projects
How to make Smart Home using Arduino Bluetooth IR & Sensors
• How to make Smart Home...
Home Automation using Google Assistant, Blynk, IFTTT, NodeMCU
• Home Automation using ...
IoT based Home Automation with sensors and NodeMCU control Relay | Real-Time Feedback
• IoT based Home Automat...
#Alexa
#SmartHome
#TechStudyCell - Наука та технологія
Thanks a lot mate. i have used several tutorials . not worked but yours . i thanks sooo much. i have subscribed at once.
Great 👍
Thank you very much, with a little code adjustment and additional wring I have mine set up with an 8-way relay and it works perfect.
I have already made an video on Alexa 8 Relays. Please refer this video ua-cam.com/video/b5yr-H6jJAc/v-deo.html
Simple but useful home automation project👍👍👍
Thanks
Great Brother. Really you are a great teacher.
beautifully explained...... thank you study cell for making this video... hope 2 see many in future.. :)
Thanks for your feedback...
Nice project, attractive way of explaining thank you, but I have a question, all the Alexa smart home videos with esp8266 focus on direct contact with relay, can you make a video that you change that to UART message to be received by another system (aurduino or microcontroller) that can control larger number of relays and maybe other systems also?
This is AWESOME, THANK YOU, saved, liked & subscribed
Thanks. You may also like our other home Automation project with Alexa. Please visit our channel.
@@TechStudyCell Already have, I am loving your channel, you really have helped me decipher this ‘black art’ programming is easy. But knowing nothing, makes learning about IoT very hard as I do not even know what to research.
Fantastic, thank you. The NodeMCU is such a great device. Next port of call will be the Nano T-Call for long range projects.
Unless you have a better suggestion? 🤔🤔🤞
Always usefull. Thanks!
Extremely helpful video
Great video man! thanks a lot!
You are welcome
A big big shout out to Tech StudyCell. Saw a lot of other videos but this is the one that worked.
Thanks
For integrating with Alexa, is it necessary to do coding in the firmware itself?
Can we control the devices manually by the wall switches along with this?
Hey buddy can we directly connect google home mini instead of Alexa to Aurdino library as you shown???I dont wanna use blynk app or ifftt etc..
Is it able to control from another network or internet (not same wifi network) through alexa?
Obviously nodeMcu will be connected to a fixed alexa device or a mobile which have alexa.
Excellent explantion 👍
Thanks
Hello this is amazing thank you very much
But I have a question
If I need the lamp turn on just for 1 second thin turn of automatically what i can do
((I need a button not switch))
Do you need echo device or you can just use alexa app also to connect? Since i dont have echo but trying your code using app it says not device found!! (in serial debug window it shows connected to my wifi). Your reply is appreciated!
Hello.
I want to do a smart home project that responds to voice commands using Amazon Alexa.
The idea is that I have to give up relays and I have to use control circuits for force.
Can you help me?
Bro can you please share a code that works with alexa and Google assistant as well. I use both devices and since ifttt is no longer free my old code doesn't work anymore.
it is working good but I have some issues
when ever power cuts and comes back all device turns on
can u tell me the code to turn them default off after every restart.
Sir.. can i connect 8 or 16 channel relay ... It can possible to control.... I want to control ten motors using relay by voice commands
Excellent.
can you describe the rest of the components you saw in the project. For example, what value are the diodes and what are the resistors that are next to the connection block. The resistors that are between the LEDs do not look like 220 because their code starts with black. Can you provide more information or a wiring diagram for this device? Regards. Adam.
Thank you for the video bro I do exactly and it work superbly when ever my nodemcu is reboot or power cut relay state is turn to normal can you do it to remember the previous relay state something like that to turn which ever device is turned on or not
Inbuit option for retaining the same state as before power failure should be used. My humble request to you to help me for this.
supply to relay is from nodemcu???? if yes explain how because it output is 3.3V...
thanks bro it worked for me
Great 👍
hey bro. why i can't use esp 8266 Controlsle for this fan
how many relay control and add device from alexa? issue only 10 device discovred
Hello greetings from Mexico.
Is it necessary to connect the components (the led or spotlight)?
Or is it enough to load it to the nodemcu without connecting the components?
Since I load the code, but without component, I look for the devices but my echo dot 3gn has not found them
Did u solve the problem of finding devices. Please let me know. ahmadnomi52@gmail.com
Can we check with google home and google assistant?
is this same think processible using google assistant
I have made this home automation system I am not able to find out the devices in alexa can you please help me for my issue
Hi can you explain why only 10 devices can be connected with Alexa using this method and how to overcome this limitation.
i m gettin no device found on alexa app. what to do. even i unplugged the alexa and plugged it again.
Can we connect multiple ESP32 devices to the same account as shown in the video?
Thank you
Welcome
Successfully executed your processes. But one drawback is , when power cut happened, during the time of come back of power, all the bulbs are stared running even you don't want them to run. Could you please suggest any solution!???
Is there a way to turn off the bulbs trought arduino?
Sir ssid new bnate hai ya hospot hota hai
Nice project.
Thanks
my relay is working but there is no light on node mcu and i am not able to connect it on alexa app
??
plzzzzzzzzzzz reply
Can it control with mobile alexa
great buddy
my amazon alexa is not detecting the module. It is showing 'No new devices found." after search completes.
How to debug ? Please help me how to fix this.
i am having trouble connecting my lights to relay board please help
Hiw you get this ok feedbacks from alexa
YOUR CORD all upload done but onther step alexa not working. what is the problem.
sir can we add manual buttons to it?
Brilliant! I tried to add another 5 output relays but I couldn't - wonder if you can help
I copied everything that include the setting and pasted and changed the values but couldnt
as soon as l add after the Serial.begin(115200); it compiles but will not run
Help would be great
Thanks in advance
Erik Hoffman
Please refer the following video ua-cam.com/video/OJ4CzWyRQr4/v-deo.html
I have added more features and shown each steps in details. Thank you.
Thank you for this Video, This is brilliant. Can you also let me/us know how to inegrate Blynk app to the same code please ?
Hi Tech StudyCell, how to change the wake word like turn on light to open light...
We can control the lights with the alexa app also right??
I using your code for my project but cannot find the device in alexa app......i am just using the app on my phone i dont have smart speaker, but my phone and mcu board is connected with the same wifi.
Please help
Thanks for explanation and the code it worked for me. Initially, the devices are not discovered after restarting and trying it again it got detected. :-) :-)
Is it working for you brother? I am going to use this code for my project
Will this code works without Alexa Smart Speaker... Actually I want the alternative of Blynk
after uploading your code esp is not connected with my wifi i have cheaked ssid password which i put correct but stile it is not connected with my wifi
I need your help please help me
My alexa is not able to find the devices but before it was able to find and again o got the same issue please help me
Is it possible to do with Mobile hotspot
how can i continues this project without ur custom pcb ?
Great job. How would you add a sensor/digital read to tell the status of an input?
i have the same question
Nice Project
Thanks
Nodemcu program not sure
USB not connected error please solution
is there any limit of number of devices with ESPALexa.h library?
All relays turn on at boot, is there any way to solve this?
Alexa not detecting node mcu8266, no compilation error
I made it but Alexa aap not add this module I tried many times but it app show no device find .
bro solve my problem please
Everything I did as per your Video.but Alexa not detecting any lights. Please help me
Hi, I tried this and it worked well. but can you give some information on electricity consumptions as Im planning to use it in my home for 24x7
Power consumption is very low. Less than 1 watt
Bhai tmam lights reverse operate kar rahi turn on bolny par band ho rahi ha or turn off bolny par chal rahi ha ...ye code ma problem ha ya connections ma kindly tell ma
Hi Iam not able to see in alexa app any lights or discoverable in the app, NodMCU & my mobile & Alexa echo Show its in the same network
Just restart the echo dot, then try again. Please refer this video ua-cam.com/video/OJ4CzWyRQr4/v-deo.html
Great video, can you tell me if I actually need a echo device to discover the nodemcu. Right now I have a fire tv cube and using the Alexa app on my iPhone and it doesn’t seem to be able to discover it
Thanks. Yes, you need an Alexa device like echo dot.
@@TechStudyCell thanks for getting back to me so quick
I m faceing some problem with alexa and node mcu, alexa is not getting connected can someone help me?
Nice
Thanks
My nodemcu is executing the code properly when I say the commands the LEDs on the relay module works fine but when I connect external bulb the relays is not getting any signal and the bulb is not turning on but the LEDs on relay module is working fine. What will the problem please help ?
Check the continuity across the NO and COM. when the relay turns on the NO and COM should be connected.
i want to interface a small led without relay do i need to change the code for that?
NO
Is it contains 2 stages
Is it necessary to have an Alexa device or just use my phone to search for it? I don't have Alexa, but I tried the Alexa app to find it, but I couldn't find the device set according to the code.
For this project you must have an Alexa device.
If you don't have any Alexa device then please refer to the following video
ua-cam.com/video/Sx9akwBwK4g/v-deo.html
Hello. Thanks for putting this video together. I actually ordered my first custom PCB using your link and the File you provided. It was a lot simpler than I thought and I received the product quickly. I feel more confident in trying my own design. I am having an issue with this project now. It worked for a few weeks now I am getting a “device not responding error” I have tried unplugging everything and plugging it back in. I have removed and reinstalled the devices. Lastly re-uploaded the code. Alexa found the devices and installed them, but right away they are not responding. Any suggestions? Thanks
I figured it out. I uploaded the code from my laptop instead of my desktop. I had the latest version of the ESP8266 installed on my laptop. Seems to be working now.
Great!! you can also checkout the following Alexa home automation ua-cam.com/video/5-ZyC3-BzLE/v-deo.html
@@TechStudyCell I will check it out. I think I would like to add buttons. I incorporated a scrolling matrix too.
ESP 8266 not reponding to Alexa when use local wifi router, its only work on mobile hotspot
i have succesfully uploaded to the esp32 but at the end it shows "
Leaving...
Hard resetting via RTS pin...
"
and somehow i am not able to turn on my light which i have connected to the relay one ...
looking forward for your help
Thank you . :)
Check in serial monitor if the ES32 is connected with WiFi. Then configure Alexa App. If the device is showing in Alexa App. Then you can control it
@@TechStudyCellwifi is connected and through alexa app i have also added all devices but somehoe idk relay doesn't saw any output
Ek bar install kiya but change karna pare ga keysa hoga
bhai plz make a project of all in one, like 4 lights & fan with speed slow n fast with push button also
hi iam getting this error when iam uploading:
Sketch uses 311196 bytes (62%) of program storage space. Maximum is 499696 bytes.
Global variables use 28080 bytes (34%) of dynamic memory, leaving 53840 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM7
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\SysCom\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/upload.py", line 25, in
esptool.main(fakeargs)
File "C:/Users/SysCom/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 2653, in main
esp.connect(args.before)
File "C:/Users/SysCom/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.5.1/tools/esptool\esptool.py", line 468, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
the selected serial port _
does not exist or your board is not connected
Thank you sir
Welcome
Sir Mujhe help chahie
Sir mera WhatsApp number
+91 9228792912
@@TechStudyCell ?
Hi i have setup all the connection and uplaod the code on the NodeMCU the last part when i faced problem when connect alexa app in the app it shows me no device found yet i dont know what is the problem please advice
This is common problem. Please check NodeMCU and echo dot conneted with same WiFi.
If you face same issue please try 2-3 times.
@@TechStudyCell hi sir it connect but when u give command to alexa to open both bedroom light it shows on the amazon alexa app on but no the lamp it doesnt trigger the relay to open light any advice in this project i only used two channel relay n two lamp i would like to buy ur PCB send me ur number so that we can talk about the PCB
If both conneted, then you should see the device name in Alexa App. Other wise restart Alexa and add the device as shown in video
your code is working fine. But I have one issue which is when power fails it will not retain last On state, It reset to Off.Kindly update this.
no echo dot , no sinric pro //// only esp and android with alexa app installed any possibilities ?????
Not possible till now
i made this project exactly like you said. It's working perfectly but sometimes the devices are not responding. Alexa showing as "Blue bulb unresponsive", "Room Light Unresponsive". Do you have any soulution for this?? or anybody here facing same problem??
I'm having a problem- When I upload the code, it says: "Done uploading. Leaving... Hard resetting via RTS pin..." This message has been there for hours. What does it mean and how do I fix it?
it means uploading is complete
Hi Tech Study Cell i am facing a small issue i have followed each and everything you have told in the video but when i am supplying 5v to nodemcu then all the devices connected to it is turning on and when i am ordering alexa to turn on light she is actually turning it off instead of turning it on and this problem is having with each and every device connected to relay pls anyone help and suggest an idea thanks
Same problem bro
Hey. I hope you can Help me. I used a Wemos D1 mini. The Wemos is connected with my Wifi. But my Alexa cant find him :(
Wemos, echo dot, Amazon Alexa App should conneted with same WiFi. If all ok then Please try 2-3 times. Sometimes it happened due to connection issues.
Hi! i saw ur video and m trying to build the same, i uploaded to code to nodemcu 8266 but my alexa is not discovering the devices. Please help!!!
my wifi credentials are corrent and it is connected to wifi but still my alexa device is not discovering the devices in nodemcu... please help sir!
Please restart the echo dot and then tap on discover devices. You can also refer this video ua-cam.com/video/OJ4CzWyRQr4/v-deo.html
Can you include Wifi manager in this code
please check the google drive link of the code. It's not working. I have mailed you for some queries related to the assembled PCB of some of your projects. I want to buy all those PCBs. But first of all please make the drive link available to us. I beg of your help
I have checked. The link is working. But still if you face problem please refer the following link. Thank you.
www.hackster.io/techstudycell/alexa-home-automation-system-using-nodemcu-relay-module-234617#code
You can also refer this video: ua-cam.com/video/OJ4CzWyRQr4/v-deo.html
Hello, The NodeMCU, amazon echo (not dot), and Amazon Alexa App are connected with same WiFi. It is connected to with ip 192.168.0.5
.But , in app it is showing "No device connected.
Please try 2-3 times. Sometimes it happened due to connection issues.
Restart echo dot then try again
👍👍 good.
Thanks
Helloo, I am trying to connect my esp32 to alexa, just like you did, however he does not find the devices. Do you know, why does this happen? Is there a blockade by region (I am Brazilian)?
Both ESP32 and Echo speaker should be connected with same WiFi. still if it fails then check in the serial monitor if the ESP32 is connected with WiFi, then try again.
@@TechStudyCell Thanks for your response. I connected ESP32 on the same wifi, but it didn't work.
I'm only using alexa's app, I don't use Echo. Do you know, if it is necessary to use an Echo for this project work?
Yes. You have to use echo speaker...
Great job ♥♥♥
Should I buy Alexa Echo Dot to do this project or does it work without it (just alexa App) ??
Thanks. Please refer this video ua-cam.com/video/Sx9akwBwK4g/v-deo.html
You don't need echo dot.