#2 ESP01 + Alexa = Smart Switch !!
HTML-код
- Опубликовано: 20 сен 2020
- Build your own smart switch and take control of your home! An easy to do and handy project if you are into the Alexa ecosystem.
Need a step by step guide? Check out my website at :
aibegins.net/2020/09/21/alexa...
Component List
(Consider buying from these links if it doesn't cost you any extra):
1. ESP01: amzn.to/2ZTqusE
2. 4 channel relay module: amzn.to/35WcemW
3. 5V ac to dc converter: amzn.to/2Hl2Uig
4. 5V to 3.3v step down power supply: amzn.to/35TFnPz
5. Proto board: amzn.to/33PsNOy
6. 10k resistor x 2
7. Female header strip: amzn.to/3cfIPFw
8. 1000uF capacitor: amzn.to/3cky0Sl
9. Metal Oxide Varistor 400V (Optional)
10. Jumper wires: amzn.to/32OCmhB
11. Twisted 18AWG wires for AC
12. A box to hold em all
Download the code from Github:
github.com/mijazm/ESP01WifiSw...
Background music:
E.R.F from www.bensound.com
Very well explained. This video explains the use of full potential of ESP-01. From you I came to know that ESP-01 has 4 GPIOs.
Great work man and explained really nicely...keep it up 👍🏻
And at 47 seconds my lights went off!
Fantastic tutorial!
Cool start... All the best 👍
Thanks man you helped me alot in building my college Project based n ESP8266 module
Good work bro. All the best👍👍
Awesome work 😍
I unable to switch relays but from multimeter I checked the pins of esp01 working perfectly
Nice project 👍
Good presentation bro👍👍
Awesome!!!👍
Its cool man!! 👏
Good. It's usefull.
Greattt wrk maza agya
How to prog wifi module with android mob
👏👏👏👏
I want to ask one thing. If i put MOV on both sides of Relay, will it be an issue? As I will use both the NO and NC of the relays. Please reply . And yes Thanks for your video it will be really helpful
There is one issue I could think of, when you turn on one device connected to NC it might for a very brief instant cause a connection to the device connected to NO port if there is an MOV connected to both sides. You will understand once you draw the resulting circuit. But depending on your use case you probably can do it, but do a test run first using an individual relay.
Cannot get this to work; ESP connects to WIFI. but ALEXA doesn't find the device any ideas?
Here are the things you can try
1. Check you echo version, I have tested it on echo 3rd gen. I am not sure if it works for newer versions.
2. Check that your esp and echo are on same wifi network. I know it sounds trivial but I have made this exact mistake before.
3. You can try turning on the debug flag in the code and check the outputs on serial monitor.
Sometimes restarting the echo and esp also helps.
Good luck with your project!
Tried to get this to work on a fire tab, but alexa doesn't discover any new devices. Do I need to download and link the Philips Hue app to the alexa app?
Hi @garymccrohan7247 , I have not tried using it with the tab, does it work like a hub ?
Hi, thanks for the tutorial but I'm having the same issue about alexa couldn't find my board. Do you have another guide to try the debug solution?
Oh it seems to be a common problem , I will check it out and update the instructions on the github page if I find a solution. Thanks for pointing it out!
@@AIbeginsDotNet Thank you so much
HELLO! I could to charge the program but alexa can't discover the device, Do you know why?
Hi! You might need to try the discovery process a few times. Also I have tested this only on the third gen echo dot, so I am not sure if it will work on the newer ones. You can also use the debug flag in the code and view the output of ESP01 on the serial monitor, that should help you find the problem. Good Luck with your project!
I have one more question, idk if mov is the issue but when I connect esp01to relay with live wires connected to relay,it just stops working. Even when trying to control 9w led bulb
Hm is it getting stuck when you operate the relay, or just in general? LED bulbs don’t generate a lot of switching transients so that might not be the issue. also just in case try it with a different relay. It may be that the relay is drawing too much current from ESP01 if you are not using a relay module without optoisolator or if the relay is faulty.
@@AIbeginsDotNet I'm using blynk edgent for the coding part. So when I attach the esp01 it powers on, and the relays clicks and then goes to nc position. But the system would not come on-line or emit wifi for connecting and initial setup. Sometimes when touching the esp it would restart but i can't set it up because of the bootloops. In a short note i know for sure that it's bootlooping. Also i used a 4 channel relay with the same esp01 ( no load tested) it was just working fine. I guess I'll have to check the 4 channel one.
How to write cop code to esp01 from ide.. ??
You can refer to my earlier video which show you how to program an esp01. Here is the link: ruclips.net/video/cTfjqNFAkZ8/видео.html
Sir how to program the wifi module
You can watch my previou video at ruclips.net/video/cTfjqNFAkZ8/видео.html to learn how. Good luck with your project!
Can i use nodemcu esp8266 ?
Yes you can, just be careful with the pinout.
Why you have connected the capacitor to the relay
Do you mean the MOV(the round blue component)? It is used to absorb the switching transients i.e the high voltages that appear when you turn appliances like a fan,motor or cfl on or off. These high voltage transients might cause the microcontroller to reset which we would want to prevent! MOV stands for metal oxide varistor.
@@AIbeginsDotNet thanks man, I was facing the same issue I had made automation using node mcu singel Chanel. Thx man thankyou very much 😍
Bro error for credentials.h :no such file or directory how to fixed bro
Hi, check if the “credentials.h” exists in the main directory, if you have downloaded the code from Github make sure to extract everything to a folder and rename it to be the same as that of the ino file. If you don’t rename it Arduino IDE will create a directory by itself and copy just the ino file into it, in this case you can manually copy everything else to the same folder.
Good luck with your project!
@@AIbeginsDotNet bro credentials.h problem solved but not show in discovery device s do have any suggestions bro
@@manieswar3734 you can turn on the debug part of the code and try to see the output of ESP01 on a serial monitor when you perform device discovery (might take a few tries). Also I have tested it on 3rd Gen Echo Dot only so I am not really sure if the protocol is valid for newer versions.
it looks fine but at me it doesn't work... the module isn't visible in the WLAN and Alexa isn't able to find it... what's going wrong? Please help.
Its a bit frustrating I know, have you tried turning on the debugging part in the code and looking at the serial monitor, it might be able to help you zero in on the problem.
@@AIbeginsDotNet I'm a newbie and it's all a little bit tricky for me. I want to build a lamp and to bring it into Alexa for voicecommands. The lamp will have a Power supply with 24v and the esp8266-01s with the relay might be the best solution ... if it would work
@@markuspatten6486 it is most certainly possible! A lot of things go wrong with these kind of projects, I remember spending hours on solving various issues even though I have some experience. So don’t give up, Good luck!
Alexa is not discovering any device. Alexa and esp01 is on same network.
stopped after 5 minutes because of the hurrible background music. don't understand, why content creator really believe, this is helpful.
Ah yes, sorry about that, I’ll have them sorted in the future videos