#2 ESP01 + Alexa = Smart Switch !!

แชร์
ฝัง
  • เผยแพร่เมื่อ 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

ความคิดเห็น • 49

  • @vikaspatil1234
    @vikaspatil1234 2 ปีที่แล้ว +5

    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.

  • @mamvcivm
    @mamvcivm 2 ปีที่แล้ว +1

    And at 47 seconds my lights went off!
    Fantastic tutorial!

  • @manukush0791
    @manukush0791 3 ปีที่แล้ว +2

    Great work man and explained really nicely...keep it up 👍🏻

  • @omkarbansode6305
    @omkarbansode6305 ปีที่แล้ว +1

    Thanks man you helped me alot in building my college Project based n ESP8266 module

  • @ankitchauhan4180
    @ankitchauhan4180 3 ปีที่แล้ว

    Cool start... All the best 👍

  • @manujayarajkm190
    @manujayarajkm190 3 ปีที่แล้ว

    Good work bro. All the best👍👍

  • @muhammedharis1928
    @muhammedharis1928 3 ปีที่แล้ว

    Good presentation bro👍👍

  • @anokhautomation4453
    @anokhautomation4453 ปีที่แล้ว

    Nice project 👍

  • @pallavrajjain7236
    @pallavrajjain7236 ปีที่แล้ว +1

    I unable to switch relays but from multimeter I checked the pins of esp01 working perfectly

  • @sanasyed9941
    @sanasyed9941 3 ปีที่แล้ว

    Awesome!!!👍

  • @shantanusingh3306
    @shantanusingh3306 3 ปีที่แล้ว

    Its cool man!! 👏

  • @mukundankveettil1959
    @mukundankveettil1959 3 ปีที่แล้ว +1

    Good. It's usefull.

  • @EtechHelpAndInfo
    @EtechHelpAndInfo 2 ปีที่แล้ว

    Greattt wrk maza agya

  • @EtechHelpAndInfo
    @EtechHelpAndInfo 2 ปีที่แล้ว

    How to prog wifi module with android mob

  • @neethuchandran8556
    @neethuchandran8556 3 ปีที่แล้ว

    👏👏👏👏

  • @youcubersaaraswata8865
    @youcubersaaraswata8865 ปีที่แล้ว

    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

    • @mijazmukundan7262
      @mijazmukundan7262 ปีที่แล้ว +1

      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.

  • @brrrahamelizalde5723
    @brrrahamelizalde5723 ปีที่แล้ว

    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?

    • @AIbeginsDotNet
      @AIbeginsDotNet  ปีที่แล้ว +1

      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!

    • @brrrahamelizalde5723
      @brrrahamelizalde5723 ปีที่แล้ว

      @@AIbeginsDotNet Thank you so much

  • @youcubersaaraswata8865
    @youcubersaaraswata8865 ปีที่แล้ว

    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

    • @AIbeginsDotNet
      @AIbeginsDotNet  ปีที่แล้ว

      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.

    • @youcubersaaraswata8865
      @youcubersaaraswata8865 ปีที่แล้ว

      @@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.

  • @garymccrohan7247
    @garymccrohan7247 9 หลายเดือนก่อน

    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?

    • @AIbeginsDotNet
      @AIbeginsDotNet  9 หลายเดือนก่อน

      Hi @garymccrohan7247 , I have not tried using it with the tab, does it work like a hub ?

  • @monkgaming2309
    @monkgaming2309 7 หลายเดือนก่อน

    Can i use nodemcu esp8266 ?

    • @AIbeginsDotNet
      @AIbeginsDotNet  7 หลายเดือนก่อน

      Yes you can, just be careful with the pinout.

  • @mekabotcorpo6702
    @mekabotcorpo6702 2 ปีที่แล้ว

    HELLO! I could to charge the program but alexa can't discover the device, Do you know why?

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      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!

  • @techguyz5916
    @techguyz5916 2 ปีที่แล้ว

    Why you have connected the capacitor to the relay

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      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.

    • @techguyz5916
      @techguyz5916 2 ปีที่แล้ว

      @@AIbeginsDotNet thanks man, I was facing the same issue I had made automation using node mcu singel Chanel. Thx man thankyou very much 😍

  • @dipaksonone2917
    @dipaksonone2917 2 ปีที่แล้ว

    Sir how to program the wifi module

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      You can watch my previou video at th-cam.com/video/cTfjqNFAkZ8/w-d-xo.html to learn how. Good luck with your project!

  • @nanunane1
    @nanunane1 11 หลายเดือนก่อน

    How to write cop code to esp01 from ide.. ??

    • @AIbeginsDotNet
      @AIbeginsDotNet  11 หลายเดือนก่อน

      You can refer to my earlier video which show you how to program an esp01. Here is the link: th-cam.com/video/cTfjqNFAkZ8/w-d-xo.html

  • @grahamheath3799
    @grahamheath3799 ปีที่แล้ว

    Cannot get this to work; ESP connects to WIFI. but ALEXA doesn't find the device any ideas?

    • @AIbeginsDotNet
      @AIbeginsDotNet  11 หลายเดือนก่อน

      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!

  • @markuspatten6486
    @markuspatten6486 2 ปีที่แล้ว

    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.

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      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.

    • @markuspatten6486
      @markuspatten6486 2 ปีที่แล้ว

      @@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

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      @@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!

  • @manieswar3734
    @manieswar3734 2 ปีที่แล้ว

    Bro error for credentials.h :no such file or directory how to fixed bro

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว +1

      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!

    • @manieswar3734
      @manieswar3734 2 ปีที่แล้ว

      @@AIbeginsDotNet bro credentials.h problem solved but not show in discovery device s do have any suggestions bro

    • @AIbeginsDotNet
      @AIbeginsDotNet  2 ปีที่แล้ว

      @@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.

  • @ashutoshranjan3363
    @ashutoshranjan3363 3 หลายเดือนก่อน

    Alexa is not discovering any device. Alexa and esp01 is on same network.

  • @zuckerli
    @zuckerli ปีที่แล้ว

    stopped after 5 minutes because of the hurrible background music. don't understand, why content creator really believe, this is helpful.

    • @AIbeginsDotNet
      @AIbeginsDotNet  ปีที่แล้ว

      Ah yes, sorry about that, I’ll have them sorted in the future videos