IOT | DIY Home Automation with Alexa | Tutorial # 2

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 236

  • @grimster76
    @grimster76 4 года назад +1

    It's about time I find a video that is detailed and it worked the first time doing this......YAY I am happy

    • @grimster76
      @grimster76 4 года назад

      How do you add more pins now?

  • @itisonlyadream
    @itisonlyadream 7 лет назад +6

    Sir: Your video is complete and detailed. Your voice is clear and easy to understand. The images are clear and your presentation is well planned. In short, your video is professionally done. I watched a video by a well known "Lady", who will remain nameless, and the firmware configuration looked so complicated and confusing that I decided not to buy a ESP8266. Then, I watched your video, and now I see that the only changes I need to make to the code will be to enter the router's SSID and password, and then give the device a name. What a difference a good video makes! Now I can buy the ESP8266 with the confidence that I'll be able to use it. Thank you for this excellent video.

    • @netmedias7657
      @netmedias7657  7 лет назад

      itisonlyadream I appreciate your feedback and good luck with your project.

  • @handedtoyou2477
    @handedtoyou2477 7 лет назад

    These tutorials are superior to most out there. You have good explanation of the parts and what they do most importantly, You shoe exactly how to wire it, why to wire it, and how to flash and program. Please do not stop making these tutorials!!

    • @netmedias7657
      @netmedias7657  7 лет назад

      +Larry Adams thank you for your valuable feedback. I appreciate your comments greatly since they motivate me to keep making more tutorials.

  • @DonGoddardAllAboutPaint
    @DonGoddardAllAboutPaint 6 лет назад

    I am fairly new to hobby electronics and I quickly grew tired of the standard "beginner's tutorials". But I ran across one of your videos and you've stunned me with your clear and precise instructions on each tut you've done! Seriously spectacular work on these. I'm so excited to get moving on several projects that you have explained so far. Thank you!

    • @DonGoddardAllAboutPaint
      @DonGoddardAllAboutPaint 6 лет назад

      P.S. The FT232RL FTDI USB to TTL Serial Adapter that you link to in this video has been discontinued. I searched Amazon and found a few for about 5 times the price, but the comments were warning of "fake" FTDI chips. Is there another Serial Adapter that you could link to that wouldn't have the fake chips?

    • @netmedias7657
      @netmedias7657  6 лет назад +1

      www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=FT232RL+3.3V+5.5V+FTDI+USB+To+Serial

  • @tomscott7991
    @tomscott7991 6 лет назад +1

    Just discovered your channel. Great work your doing. I have become disabled recently and have tons of extra time, your videos have inspired me to keep my mind active building along with you. Many thanks for the inspiration and the clear and detailed instructions and production quality of your videos

    • @netmedias7657
      @netmedias7657  6 лет назад

      Tom Scott I am glad you are enjoying these projects.Your valuable feedback is very import to improve this channel. Good luck with your projects and I hope you will share your progress with us. Thank you

  • @nearmitech
    @nearmitech 4 года назад

    Very good presentation. Good camera work, clear audio and at a slow understandable pace. Great work indeed !!

    • @netmedias7657
      @netmedias7657  4 года назад

      Thank you for your feedback.

    • @nearmitech
      @nearmitech 4 года назад

      @@netmedias7657 Hi just one quick question. Is there a way where in i can ask Alexa to report back the state of a switch?

    • @netmedias7657
      @netmedias7657  4 года назад

      @@nearmitech I demonstrate this in this video.

    • @nearmitech
      @nearmitech 4 года назад

      @@netmedias7657 Sorry what I meant was is there any way I could ask Alexa is (say) bedroom light on (when I am sitting in another room) and Alexa would report back the state of the switch eg. Bedroom light is off or on as the case may be. I didnt see that in this video.
      Thanks once again.

  • @setsailmars
    @setsailmars 4 года назад +2

    Great job!!! I did get it to work but when i tell Alexa to turn on or off it says it's not responding etc, but it still turn light on and off. Echo dot 3rd gen.

  • @CarterHurd
    @CarterHurd 7 лет назад +3

    You've done a very nice job with these tutorials- Thanks!

  • @ingram010
    @ingram010 3 года назад

    Great job with the real time tutorial, I will be using these videos to teach my children as it will give them plenty of time to follow along. Thank you and well done

  • @aaaaxial
    @aaaaxial 7 лет назад

    Hi Nasser, this is great! Thank you for this series of videos, very instructive and detailed.

  • @wrcoyle2024
    @wrcoyle2024 6 лет назад

    the only thing to add to "itisonlyadream" and "AltaPowerDog" comment is the code works flawless.. Thank you. Well done

  • @dracoinvictus
    @dracoinvictus 7 лет назад

    I was able to use this on my Sonoff devices. Thanks for sharing this info.

  • @sattarsattar4206
    @sattarsattar4206 7 лет назад

    dude, this is awesome. thanks for the videos! keep them coming.

  • @wizz1325
    @wizz1325 6 лет назад

    Very good video series and thanks to you, easily understood...I hope to control most of my home with these types of devices as I am disabled and getting worse by the day. It would make things so much easier :) TY

    • @netmedias7657
      @netmedias7657  6 лет назад

      wizz thank you for your valuable feedback. Good luck with your projects.

  • @Al-bd8hm
    @Al-bd8hm 6 лет назад

    Everything works like a charm.
    Well done video.

    • @netmedias7657
      @netmedias7657  6 лет назад

      ALBERTO MENENDEZ Thank you for your valuable feedback.

  • @fabricemotard4312
    @fabricemotard4312 4 года назад

    Wonderful ! 👏👏 I'll try it soon. Thanks !!

  • @timidj3934
    @timidj3934 5 лет назад +1

    HI THANKS or your project, its works prefect, my question is how can i add more relay in one board thanks

  • @luizcarlosmessias4185
    @luizcarlosmessias4185 6 лет назад +1

    Good morning, great video, I would like to know if it is possible to add another ESP-826681, and if you could tell me how, thank you.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Just flash the same sketch to multiple ESP's just make sure change the device name in sketch and they are unique. Good luck.

  • @imribarr6177
    @imribarr6177 5 лет назад

    Awesome videos!
    I'm quite a beginner and I feel like this stuff is way too advanced for me. I wish you could explain more about the connections between the devices. For instance, what GROUND means, or what TX/RX mean, and more stuff like that.
    Thanks a lot!

    • @netmedias7657
      @netmedias7657  5 лет назад

      Imri Barr I will try to cover basics as much as possible in my future tutorials. Thanks

    • @imribarr6177
      @imribarr6177 5 лет назад

      Thanks you very much!
      Do you know of a place I can learn the basics from so I could understand your videos?
      Thanks again!

  • @louishache3672
    @louishache3672 5 лет назад

    Thank you very much for sharing your experience..

  • @philkramer52
    @philkramer52 7 лет назад

    Hi thanks for the tutorial. I've had a problem working with the ESP8266 for weeks. I can get it to flash (IDE indicates it uploads and the blue light on the ESP flashes) but I never get it to blink.
    My FDTI is identical to yours. My IDE is 1.8.3
    My wiring is
    FDTI ESP only while flashing
    GND -> 2 6
    VCC -> 7,3
    TX -> 8
    RX -> 1
    4&5 are floating
    I power up with pin 6 grounded to flash. After flashing I let pin 6 float.
    I then pull out the FDTI and plug it back in. No blink
    void setup() {
    pinMode(LED_BUILTIN, OUTPUT);
    }
    void loop() {
    digitalWrite(LED_BUILTIN, HIGH);
    delay(1000);
    digitalWrite(LED_BUILTIN, LOW);
    delay(1000);
    digitalWrite(LED_BUILTIN, HIGH);
    delay(500);
    digitalWrite(LED_BUILTIN, LOW);
    delay(500);
    }
    I must be doing something stupid but i can't figure out what. Help please.

    • @netmedias7657
      @netmedias7657  7 лет назад

      Phillip Kramer I had a similar issue with ESP-12E. I was able to flash the program successfully every time but ESP was not running my sketch.I also could not see anything in the Arduino IDE serial output. I download "ESPlorer" from esp8266.ru/esplorer/" URL and ran the "ESPlorer.bat" file. Once the program is launched select the baud rate and click connect and you should be able to see if it is getting reset.
      In the serial output I saw, it was getting reset over and over again. I resolved the issue by replacing the better power source after flashing board with FDTI programmer. I did not have this issue when I used it with ESP-01. I hope this helps. Good luck

    • @philkramer52
      @philkramer52 7 лет назад

      i'll try that. thanks

  • @PatnaikUC
    @PatnaikUC 7 лет назад

    Thanks for your wonderful video. I am not new to ESP as I have done quite a few working projects on this and ESP8266-12 .Thus your project that I tried through Alexa responds perfectly. The built in blue LED works perfectly for ESP8266 on and off on voice commands as desired but a typical problem! While the output at GPIO2 is taken with a pullup resistor and feeding an opto isolated triac (the very arrangement does work with other programs) this output at GPIO2 fails to go low and high, though the blue builtin LED works exactly as desired. Removing the pullup (1K) from GPIO2 Alexa does not discover the device. Then how to use the output to drive a relay? Please note GPIO0,Rx,Tx all are kept open circuited. Shall be grateful if you could provide a solution.

    • @PatnaikUC
      @PatnaikUC 7 лет назад

      I think I have to correct the program (const int relayPin = BUILTIN_LED;) to (const int relayPin = pinMode 2;) please confirm

    • @netmedias7657
      @netmedias7657  7 лет назад

      Patnaik UC, What type (brand and part number) of optocoupler you are using? How are you hooking it up? Does the relay work without the optocoupler? What is the relay minimum operating voltage? Are you using a separate power source for relay?

  • @sriharshakankatala7014
    @sriharshakankatala7014 3 года назад

    Your tutorials are really nice . I am trying to do the same using nodemcu . Will the same code and set up work?

    • @netmedias7657
      @netmedias7657  3 года назад +1

      Yes, just select the correct board option in Arduino ide. Good luck

    • @sriharshakankatala7014
      @sriharshakankatala7014 3 года назад

      @@netmedias7657 thank you so much for the reply . I ll try and get back to you 🙂

  • @nhatminh1209
    @nhatminh1209 6 лет назад

    Thank you very much for your videos. However I don't know how the code work. Could you please have some explaination for the code?
    Or how can I create a webserver button to press?
    Thank you.

  • @2appletwo
    @2appletwo 7 лет назад +1

    Is this not very costly, please add some prices attached to this nice work

    • @netmedias7657
      @netmedias7657  7 лет назад

      Total cost of the components is under $5 dollars (not including the Echo Dot). Thank you for your suggestion. I will include the prices from now on.

  • @MdKhairulAlamTaifur
    @MdKhairulAlamTaifur 7 лет назад

    Hello, nice tutorial. Is it required to enable any smart home skill on Alexa app to discover the devices?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Md Khairul Alam Taifur No you don't need anything else.

  • @luizcarlosmessias4185
    @luizcarlosmessias4185 6 лет назад

    Ok, thank you very much.

  • @mikeponte8103
    @mikeponte8103 6 лет назад

    Great concise video. Is it normal for it to show in the Alexa app that "the device is unresponsive"?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Mike Ponte You don't need an app for this solution.

  • @iceman997799
    @iceman997799 4 года назад

    I got it to flash and Alexa to find the device but tell me demoswitch not responding.

  • @kaleemulashwaqmohammed1995
    @kaleemulashwaqmohammed1995 4 года назад

    does it work with 3rd gen amazon dot

  • @tubeDude48
    @tubeDude48 4 года назад +1

    At 12:43 you said ground. You should have said *GPIO0* Also, you never used the *White* wire. What gives!?

  • @jolave72
    @jolave72 5 лет назад

    Great script. instead of a relay contact closure command i am trying to send a pulse that will quickly turn led on then off instead of constant on. Can you help with this?

    • @netmedias7657
      @netmedias7657  5 лет назад

      Checkout this video. I am doing this to open and close grage door.
      ruclips.net/video/sFJE_PsUlm8/видео.html

  • @SunilDatta
    @SunilDatta 6 лет назад

    I am a bit confused with the following:
    12:06-13:14 - TO FLASH YOU ASKED TO CONNECT GPIO0 TO GND. but at 16:28 - you re plugged the board without disconnecting GPIO0 wire and the blue led was blinking after flashing the blink code on to esp8266.
    At 18:43 - 19:40 - you uploaded the code without connecting the GPIO0 pin.
    I was able to flash the code, but after reconnecting the power cable with gpio0 wire removed, the led is not blinking for "blink" code example. Do you have any idea what I have missed?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Sunil Datta you only need to connect gpio0 to put the esp in flash mode it can be removed once you power on the board.
      It should work once you successfully flash it with your sketch and and should not reconnect the gpio0 unless you want to flash it again. Good luck.

  • @AnimationPatrick
    @AnimationPatrick 6 лет назад

    Is it possible to add multiple states to one device? For example, instead of just having a light bulb to turn on and off, it will instead have states that declare it to be on, on for 5 seconds, on for 10 seconds, off, etc.

    • @netmedias7657
      @netmedias7657  6 лет назад

      patrick Yes, but you will need to create a custom Alexa skill to handle it. You can use this sketch. You can watch my tutorial on how to create Alexa skill without any coding.
      ruclips.net/video/OrhkuJiahDs/видео.html
      Good luck with your project.

  • @byn1975
    @byn1975 6 лет назад

    Thanks for the video!
    Quick question, seems like ESP8266 board has two GPIO pins, so can those pins be used to control a relay? Could you make a video for that? Thanks!

    • @netmedias7657
      @netmedias7657  6 лет назад

      byn1975 I already have tutorials on that. Watch my others videos.

  • @erickrajan7401
    @erickrajan7401 6 лет назад

    Hi nassir loved the video, i am a beginner i was wondering if you could make a video on how to attach this circuit to pre-exsisting home switches we have so we can control those switches with alexa.

  • @ecuatoriano63
    @ecuatoriano63 6 лет назад

    Thanks for your tutorial, it is very informative, I see that the devices that your
    sketch creates are registered by ALEXA as WeMo Belkin device, but when I
    try to activate the Skill Belkin asks me for a MAC ADDRESS from a
    "real" device of BELKIN and not I have it, the question is, should it work, should the sketch have the BELKIN device simulation?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Virgilio Aray Arteaga You do not need and app for this solution. Just flash the sketch and give a discovery command and enjoy.

  • @jjt2369
    @jjt2369 6 лет назад

    Nassir, my ESP8266 01 is connected to my Wi-Fi, I can see it on my router, but why Alexa won't discover it.Thank you so much for your tutorials.

    • @netmedias7657
      @netmedias7657  6 лет назад

      JJT23 Please look at this solution.
      github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/commit/a683a62c940d99dc743ee7cdde40552da87d8f2e

  • @sawadetachatpuaktes3056
    @sawadetachatpuaktes3056 7 лет назад

    how about if I need to connect it with apple homekit instead of Alexa is that the same way to code it.

    • @netmedias7657
      @netmedias7657  7 лет назад

      +sawadetachat puaktes Same sketch will not work for homekit. You need a different program for it. Take a look at this project.
      github.com/HomeACcessoryKid/ESP8266-HomeKit

  • @CreaminItClean
    @CreaminItClean 6 лет назад +1

    I need some help. When ever I upload the info this error message happens
    Arduino: 1.8.5 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    Build options changed, rebuilding all
    Archiving built core (caching) in: C:\Users\Owner\AppData\Local\Temp\arduino_cache_324118\core\core_esp8266_esp8266_generic_CpuFrequency_80,VTable_flash,ResetMethod_ck,CrystalFreq_26,FlashFreq_40,FlashMode_qio,FlashSize_512K0,led_2,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_054d06a9f42a9d9d7019ac7b0eee15c4.a
    Sketch uses 247940 bytes (49%) of program storage space. Maximum is 499696 bytes.
    Global variables use 28028 bytes (34%) of dynamic memory, leaving 53892 bytes for local variables. Maximum is 81920 bytes.
    Uploading 252080 bytes from C:\Users\Owner\AppData\Local\Temp\arduino_build_924689/Blink.ino.bin to flash at 0x00000000
    .................error: failed reading byte
    warning: espcomm_send_command: can't receive command response header
    warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
    warning: espcomm_send_command: didn't receive command response
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    • @netmedias7657
      @netmedias7657  6 лет назад

      You need to put esp in flash mode on boot up.

  • @kaspey337
    @kaspey337 5 лет назад +1

    Could i use only A Arduino uno a ESP8266 and all drivers

    • @netmedias7657
      @netmedias7657  5 лет назад +1

      Yes you can. You will need to modify the code slightly.

    • @kaspey337
      @kaspey337 5 лет назад +1

      @@netmedias7657 How it would be Pls Help

  • @cmhftn
    @cmhftn 7 лет назад

    I am not hearing a very loud audio for this video. I played tutorial 1 and 3 and they were ok volume. Maybe need to re-post video.
    However, videos are excellent; thank you.

  • @SteveJones172pilot
    @SteveJones172pilot 6 лет назад

    Do you know of any way to do something similar, but to convey either arbitrary words to my sketch, or at least a number? For example, at a minimum, to be able to simulate a dimmer, and have levels 1-100 or 1-255 would be useful for more than just dimming lights - An Arduino sketch could use that information to set a volume control, a timer, the channel on a TV, etc.. Even some way to use Alexa as a generic speech to text, and just send the text string to the ESP would be awesome so I could decode the syntax and do custom actions in the sketch would be perfect, but all I've found so far are demo on/off sketches.. Any ideas?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Steve Jones You need to create a Alexa skill and can use a IFTTT template for Google Home. You can watch my following videos to get an idea. I am passing temperature and humidify data and remote comands. Good Luck.
      Alexa:
      ruclips.net/video/DYBOoJf8IVs/видео.html
      Google Home:
      ruclips.net/video/1X6FeuUiMUY/видео.html

  • @waltundres9630
    @waltundres9630 6 лет назад

    Nice video! Do I have to changethe code (beside device name) to run multiple esp8266 on the same network?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Lennart Krueger You can watch my tutorial on how to control multiple devices.
      ruclips.net/video/OC6QSXzkQU8/видео.html

    • @waltundres9630
      @waltundres9630 6 лет назад

      Thank you

  • @electricvish
    @electricvish 6 лет назад

    is there any other smart switch we can spoof?

  • @nishiter
    @nishiter 7 лет назад

    Awesome..can we flash same firmware to Sonoff also?

  • @tonyvmu
    @tonyvmu 6 лет назад

    Hi Friend!! Great tutorial, I also like all the other videos on your channel. I tried this sketch on my ESP-01S, and once I changed the GPIO pin output on it to "2", it worked fine; but im having a problem. The board seems to "disconnect" from de network afeter about 5 seconds after a command is sent, and it seems to reebot. Por example: I turn power the board, it inmediatly started in "On" state (I was able to check that on the Alexa App, and I can see the led on), then I command it to turn off, and it turns off, but 4 o 5 seconds later, the board changes state again to "on" (Since I can see the led on again), and I get a message on the alexa app that states that "the device is not responding". Do you happen to know whats going on? Is the any diferrence in a sketch for the ESP-01 and the ESP-01S? Regards!

    • @netmedias7657
      @netmedias7657  6 лет назад

      Tony Vega Use a better power source. May be you esp is rebooting. I had a similar issue. Good luck.

    • @billgaytes6845
      @billgaytes6845 2 года назад

      I have exactly the same problem. Was there a solution to this problem ?

    • @tonyvmu
      @tonyvmu 2 года назад

      @@billgaytes6845 Just buy a SONOFF, LOL, its simply more reliable and not that expensive

  • @Victoratguitar
    @Victoratguitar 6 лет назад

    Wich skill do I have to enable in order to make this work?... I can't find any new device

    • @netmedias7657
      @netmedias7657  6 лет назад

      You do not need a skill for this setup.

  • @jannix861
    @jannix861 5 лет назад

    After replugging the controller, the Wifi always failed to connect. Before replugging, the LED went on and after maybe 2 seconds directly off again. Any suggestions?

  • @PatnaikUC
    @PatnaikUC 7 лет назад

    But if I have to drive from GPIO2 and not the BUILTIN_LED, I have to modify your program one line only from (const int relayPin = BUILTIN_LED;) to (const int relayPin = 2;).Please confirm this much

    • @netmedias7657
      @netmedias7657  7 лет назад

      Patnaik UC I had similar issues with ESP12 while using 3.3v power source. I can see on/off commands executing properly, but due to low power, mechanical relay does not turn on. I had to use better power sources to get relay working. Try to use two different power sources. Use 3.3v for ESP and 5v for relay.
      Watch my tutorial #4 where I am doing this and controlling two (solid sate and manual) relays.

    • @PatnaikUC
      @PatnaikUC 7 лет назад

      The problem is solved.As I said before I do not use relays but triac and opto instead. Now it works perfect with output from GPIO2

    • @netmedias7657
      @netmedias7657  7 лет назад

      Patnaik UC I am glad it is working for you. Thank you for sharing the solution for everyone else's benefits.

    • @PatnaikUC
      @PatnaikUC 7 лет назад

      Once again thanks a lot. I just changed the program output pin and reversed the on /off logic ,everything works fine

  • @meocongnghe
    @meocongnghe 6 лет назад

    alexa discovery not see demo switch on network?? how to bind that, i use openhab system

    • @netmedias7657
      @netmedias7657  6 лет назад

      Maksure you ssid and password a correct. It should connect automatically.

    • @zascorpio
      @zascorpio 5 лет назад

      @@netmedias7657 hey... Alexa isn't discovering the ESP, in the video after u flash the ESP the blue led is on, in my case it's off, it blink for couple of times after the device is on, but then off. is this normal?
      i was sure about the SSID and pass, but yet can't find it on my network via Fing

  • @AgasLopamudra
    @AgasLopamudra 6 лет назад

    nice job i understand your tutorial very easy, and i would like to know that i like to operate 4 relay switch. if is possible

    • @netmedias7657
      @netmedias7657  6 лет назад

      Agasthii Bala murali Watch this tutorial for multiple relay. ruclips.net/video/OC6QSXzkQU8/видео.html

  • @rwbot
    @rwbot 6 лет назад +1

    All wires were properly connected, but i got the following error. And after 10 seconds, the chip on the ESP8266 started smoking, sparked and blew itself completely off the pcb. Any ideas? Hahaha
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed

    • @netmedias7657
      @netmedias7657  6 лет назад

      Christopher Rowe You must have bought your ESP from Ethan Hunt (MI). They're known to be self-destructive. :-)
      All jokes aside. I am sorry for your loss. -:)
      Best way to avoid this kind of mishap in the future: If you're not sure about the hookup, put your index finger on top of the ESP before you power it on. If it gets too hot to touch, then something is wrong. This simple method will save you from frying any more chips. I hope this helps.

  • @julianwharton7100
    @julianwharton7100 7 лет назад

    Thanks for a great video! I got the same kit and plugged it all in and it flashed ok. It has been discovered but the off and on does not happen. The light does not change after giving the command :-( i looked at the code and wondered if the "const int relayPin = 16" part was correct?
    Cheers!

    • @netmedias7657
      @netmedias7657  7 лет назад

      Julian Wharton You need to use the GPIO2 on ESP8266 ESP-01.
      "const int relayPin = 2;"

    • @julianwharton7100
      @julianwharton7100 7 лет назад

      Aha! perfect. Working now. Looks like the on an off is reversed. Used Looks like Patnaik also had the same issues but i reversed the HIGH and LOW and now its all good. Thanks your your help! :-)

    • @jjt2369
      @jjt2369 7 лет назад

      How did you reverse the HIGH and LOW? This is how I did it and it works for me.
      if(request.indexOf("1") > 0) {
      Serial.println("Got Turn on request");
      //turnOnRelay();
      digitalWrite(relayPin, LOW);
      }
      if(request.indexOf("0") > 0) {
      Serial.println("Got Turn off request");
      //turnOffRelay();
      digitalWrite(relayPin, HIGH);
      }

  • @chiranjitkarmakar838
    @chiranjitkarmakar838 6 лет назад

    This project
    R only use alexa or nodmcu
    Internet use
    Yes or no
    Pls tall me

    • @netmedias7657
      @netmedias7657  6 лет назад

      chiranjit karmakar You can build this project with NodeMcu and ESP8266. You need Alexa echo or dot to control the relay.
      Internet access is required for this project. Thanks

  • @Sieunhanthoitamquoc
    @Sieunhanthoitamquoc 7 лет назад

    Hi Bro! Thats really awesome Project, but i can get that clearly. So can you make Description link of that?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Thanks, I will post the text tutorial link soon.

  • @alaealami561
    @alaealami561 5 лет назад

    Can Alexa control Linear Actuator?

  • @stevehubler56
    @stevehubler56 6 лет назад

    Hello - i known that this is an old Tutorial, but i have some of these ESP8266-01 Boards here and Wanted Goodreads use them for switching one Relay with each over Alexa. For this usage, Second Sketch, with Changing the Pin from LED to GPIO looks nice, but when i boot this and Alexa discovered and switched it, it goes all the Time back go On-State. When i switch on - no Change visible, when i switch off the LED goes off and back on.
    Can you help me get this running ? Thanks

    • @netmedias7657
      @netmedias7657  6 лет назад

      Steve Hübler Is the GPIO going in to high state? Try to flash following sketch and control it from your browser let me know if you have the same issue.Using your browser enter following URL to turn on and off and share your result.
      To turn on: YOUR_IP/switch?state=1
      To turn off: YOUR_IP/switch?state=0
      github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/blob/master/ESP8266_Alexa_Automation_with_URL.ino

    • @stevehubler56
      @stevehubler56 6 лет назад

      Netmedias thanks for your answer, until january 2nd i am not at Home, but then i will try this and keep you informed - happy new year for you

    • @stevehubler56
      @stevehubler56 6 лет назад

      Hello - now, with the same Hardware like last week, it is not possible to flash the ESP - all the time i get this answer: Uploading 254416 bytes from C:\Users\Steve\AppData\Local\Temp\arduino_build_363834/AdvancedWebServer.ino.bin to flash at 0x00000000
      .....................................warning: espcomm_send_command: didn't receive command response
      warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
      warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
      error: espcomm_upload_mem failed

  • @AnimationPatrick
    @AnimationPatrick 6 лет назад

    is there any way to customize the library or arduino code so that I can replace the "on" and "off" functions with "open" and "close". For example, instead of "Alexa, turn on door." its "Alexa, open door."

    • @netmedias7657
      @netmedias7657  6 лет назад

      patrick No need to modify the code. You can create a custom routine in Alexa mobile app and map you device to it. It is very easy to do. Good luck

    • @AnimationPatrick
      @AnimationPatrick 6 лет назад

      Oh my goodness, I spend hours taking apart the library trying to find the solution and turns out it was so simple! Thank you so much, you easily earned a new subscriber.

    • @netmedias7657
      @netmedias7657  6 лет назад

      patrick Thank you.

  • @SajjadHussain-th8ds
    @SajjadHussain-th8ds 5 лет назад

    Its really a great work and dedicated effort to teach the people like us. Please send me framework code for ESP8266 as i didn't see the link. Thanks

    • @netmedias7657
      @netmedias7657  5 лет назад

      It is on GitHub. github.com/nassir-malik/IOT-ESP8266-Alexa_Automation

    • @SajjadHussain-th8ds
      @SajjadHussain-th8ds 5 лет назад

      @@netmedias7657 Thanks a lot, Now my ESP8266 01 is connected to my Wi-Fi, I can see it on my router, but why Alexa won't discover it. i can see MAC address and IP address of ESP8266 01. Please reply . Thank you so much for your tutorials.

  • @simonkitch
    @simonkitch 6 лет назад

    After flashing the esp8266 I can see it on the network but alexa does not discover any devices?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Simon Kitchener Try this colution.
      github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/commit/a683a62c940d99dc743ee7cdde40552da87d8f2e

  • @aaaaxial
    @aaaaxial 7 лет назад

    Hi Nasser, I have an issue with flashing sketches onto the ESP, this message keeps coming up, except once, which I am not sure what happened, that it worked, but never again...
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed

    • @netmedias7657
      @netmedias7657  7 лет назад

      I get this error when ESP is not in flash mode. Make sure you ground your GPIO0 before powering up you ESP board.

  • @tusharkulkarni3048
    @tusharkulkarni3048 6 лет назад

    Arduino IDE was working fine 3 month back, after updating board and library IDE stop working. Please help how to compile code for ESP 8166 with updated IDE.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Uninstall and then reinstall the lib. If still does not work try reinstalling ide.

  • @k6tf
    @k6tf 7 лет назад

    The audio volume level is too LOW in this video.
    VERY GOOD VIDEO AND INFORMATION

    • @netmedias7657
      @netmedias7657  7 лет назад

      Can you please tell me time on the video where you have the audio issue. I skip through it and can't find the place.

    • @k6tf
      @k6tf 7 лет назад

      All of the audio is low. I have to turn my computer volume full up to be able to hear the audio.
      Rick

    • @netmedias7657
      @netmedias7657  7 лет назад

      Is this better? ruclips.net/video/0N4k02yn19s/видео.html

  • @Juanchilojr
    @Juanchilojr 6 лет назад

    Im doing something wrong, cant seem to have alexa find any devices, i cant find the board connected to my router list either.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Juan Rodriguez Please make sure your are commenting to a 2.4 Ghz wifi router and your ssid and password are correct. If everything looks good and still having issue try to power cycle verything. Good luck.

    • @Juanchilojr
      @Juanchilojr 6 лет назад

      Netmedias i was able to get connected to my network, alexa was able to discover the device, when i give alexa command to turn device on, the board’s blue led blinks but does not stay on solid.

  • @cranitomex7861
    @cranitomex7861 6 лет назад

    Hello Nassir, Thats a great tutorial but the l for ESP8266 libraries doen't work for me, Arduino gives a error: download error on Board Manager in IDE. i search around found some stable json url doest work, Then how to add libraries ?

    • @netmedias7657
      @netmedias7657  6 лет назад

      John Smith you can manually download it and copy it the the Arduino libraries folder.

    • @cranitomex7861
      @cranitomex7861 6 лет назад

      Hi Nassir, Thanks for the quick reply, great channel, great videos, and best tutorials.
      Will try to search and download libraries manually...... if you can help with that like links to download and tutorial how and where to copy the library files will be more helpful.....Thanks for your help....!

  • @fidelenglish6914
    @fidelenglish6914 7 лет назад

    You may have to do another video with better audio, this one is incredibly low. This is where the detailed information is, we don't want to miss it because of missing audio.

    • @netmedias7657
      @netmedias7657  7 лет назад

      Can you please tell me time on the video where you have the audio issue. I skip through it and can't find the place.

    • @fidelenglish6914
      @fidelenglish6914 7 лет назад

      I was just stating that in this video, it's so much lower than the first...I had to turn everything up just to hear it, even then it was still low.

    • @netmedias7657
      @netmedias7657  7 лет назад +1

      Is this better? ruclips.net/video/0N4k02yn19s/видео.html

    • @DrexProjects
      @DrexProjects 7 лет назад

      Way better. Thanks.

    • @fidelenglish6914
      @fidelenglish6914 7 лет назад

      Yes, much better!

  • @jjt2369
    @jjt2369 7 лет назад

    Newbie here. I have the same kit with the ESP8266 ESP-01, same FT232RL, jumper wires the same color as you and plugged in the same way you did, I used the same GitHub code, Alexa discovers the device but after I command Alexa to turn DemoSwitch On or Off and Alexa answers "OK" nothing happens, the blue LED doesn't change to On. I don't know what I'm doing wrong. Can you please help me?

    • @netmedias7657
      @netmedias7657  7 лет назад +1

      JJT23 TRD Change the following line and flash your ESP again.
      Change following line
      const int relayPin = 16;
      To following line
      const int relayPin = LED_BUILTIN; //GPIO1

    • @jjt2369
      @jjt2369 7 лет назад

      Thank you, it's working now.I really love your tutorials. Keep up the great work!

    • @aaaaxial
      @aaaaxial 7 лет назад

      Hi Nasser, I had the same problem, but now it is working in reverse. It's on by default, and when I say to Alexa to turn on, it turns it off. Where did I get the logic mixed up?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Ali Tamaddon look for "digitalWrite (relayPin, HIGH)" and digitalWrite (relayPin, LOW)" and swap them.

  • @prasadrs100
    @prasadrs100 6 лет назад

    which cloud services it is using, and what is the flow between Alexa an esp8266, thanks.

    • @netmedias7657
      @netmedias7657  6 лет назад

      Prasad r.s It is a spoofed Wemo firmware. You don't need to do anything else other that connect it to you home wifi router. It need Alexa Echo or Dot on the same network for it to work. Good luck.

    • @prasadrs100
      @prasadrs100 6 лет назад

      Netmedias thanks, did this same procedure applicable for Google home devices..?

    • @netmedias7657
      @netmedias7657  6 лет назад

      No. You need to create an agent for that. Watch my following tutorials.
      ruclips.net/video/c4CC1dMFg78/видео.html
      ruclips.net/video/Uvg0ruRkKgY/видео.html

    • @prasadrs100
      @prasadrs100 6 лет назад

      Netmedias thanks..

  • @prasadrs100
    @prasadrs100 6 лет назад

    Hi, which closed server, did esp8266 used to monitor..?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Prasad r.s I am not sure what is your question?

    • @prasadrs100
      @prasadrs100 6 лет назад

      Sorry, I mean that which cloud services it is using, and what is the flow between Alexa an esp8266, thanks.

  • @javiaronak
    @javiaronak 7 лет назад

    this system works without the internet?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Ronak Javia It will not work without the internet. If you want to make it work without the internet you will need to develope your own solution for language processing which is much more complex. There are few open source language toolkits available.

  • @nathangood4636
    @nathangood4636 7 лет назад

    Are you planning to do one with Raspberry pi and relays?

    • @netmedias7657
      @netmedias7657  7 лет назад +1

      Nathan, yes i will be publishing pi 3 and Alexa automation project slimier to this one, I am working on it. Thanks

    • @nathangood4636
      @nathangood4636 7 лет назад

      Netmedias thank you

    • @netmedias7657
      @netmedias7657  7 лет назад

      Yes, I will try to post the video in next few days. Thanks

    • @netmedias7657
      @netmedias7657  7 лет назад

      You are welcome

  • @RafaelCeballo
    @RafaelCeballo 5 лет назад

    Will it work with Smart life+ app??

    • @netmedias7657
      @netmedias7657  5 лет назад

      No, but you can control it from Alexa app.

  • @alikajani9346
    @alikajani9346 7 лет назад

    I am having some trouble with this. My arduino IDE doesnt seem to acknowledge the com port when i plug in the usb to TTL adapter. what should i do to fix this?

    • @netmedias7657
      @netmedias7657  7 лет назад

      Ali Kajani You need to install appropriate driver for your adapter.

    • @alikajani9346
      @alikajani9346 7 лет назад

      i did, i installed the silicon labs vcp driver

    • @alikajani9346
      @alikajani9346 7 лет назад

      My adapter looks like this
      www.google.com.pk/search?q=usb+to+ttl+adapter&rlz=1C5CHFA_enPK752PK753&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjh9uHIxqvVAhWD0FQKHTGmBxoQ_AUICigB&biw=1258&bih=631#imgrc=ht8Ut8fFibrdFM:

    • @netmedias7657
      @netmedias7657  7 лет назад

      Make sure that that "Ports->USB Serial Port" is listed under device manager. It if is not listed, that means driver is not installed properly. After installing the driver you need to reboot the PC.

    • @alikajani9346
      @alikajani9346 7 лет назад

      Okay i finally got my laptop to recognise the usb serial, however i am still unable to upload my code. i get the following error:
      warning: espcomm_sync failed
      error: espcomm_open failed
      error: espcomm_upload_mem failed
      error: espcomm_upload_mem failed

  • @m2fsr
    @m2fsr 3 года назад

    Was working, now I get Device unresponsive from Alexa.

  • @sujithnarayanannair
    @sujithnarayanannair 6 лет назад

    Did any one created Alexa skill for the same, I don;t have any wemo device. If i understand correctly this will work only if you have enabled wemo skill.

    • @netmedias7657
      @netmedias7657  6 лет назад

      sujithnarayanannair You don't need to enable any skills. You need to enter your ssid and password and flash the sketch and have Alexa echo or dot discover the device on your network.

    • @sujithnarayanannair
      @sujithnarayanannair 6 лет назад

      Netmedias thanks for the swift response.
      I have tried the same but Alexa can’t discover the same, I can see IP for ESP, and can ping also. As I’m the starter in this don’t know the debugging. Any clue will really appreciated

  • @nathanmendez3878
    @nathanmendez3878 6 лет назад

    Will the code also work for Google home mini?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Nathan Mendez No, watch my following tutorials they works with Google Home and mini. Good luck.
      ruclips.net/video/Uvg0ruRkKgY/видео.html
      ruclips.net/video/c4CC1dMFg78/видео.html

  • @guruaswathgurunathan1218
    @guruaswathgurunathan1218 6 лет назад

    Hello can i use echo dot 2 for this project

    • @netmedias7657
      @netmedias7657  6 лет назад

      Guru Aswath Gurunathan Yes.

    • @guruaswathgurunathan1218
      @guruaswathgurunathan1218 6 лет назад

      You told that rasbian jessie with pixel os but now they have updated to new os called raspbian stretch with desktop so how can I change the ssh file and config file as you said in your video

  • @AmirAli-yk4xb
    @AmirAli-yk4xb 7 лет назад

    It is very nice video I had already setup openhan, mqtt. But I just stuck how to how integrate openhab with esp2866. If you can help on this. Much appreciated.AA

  • @mudaserawan1457
    @mudaserawan1457 6 лет назад

    good video, very low volume.

  • @123AMEEN
    @123AMEEN 7 лет назад

    Nasir, Great tut, after uploading the program and restarting the board the board when I ask alexa to discover devices, it says no smart home devices found. When I look into my router page to see the number of devices connected. I do see the esp-01 connected to my network. But alexa is not able to discover the devices. Would you know what the issue could be ?

    • @netmedias7657
      @netmedias7657  7 лет назад

      What do you see in Arduino serial output when you give discover command?

    • @123AMEEN
      @123AMEEN 7 лет назад

      I don't see anything in my serial monitor. I tried to restart the esp-01 still don't see anything in the serial monitor, but in my router admin page I see esp-01 is connected to my network

    • @netmedias7657
      @netmedias7657  7 лет назад

      You need to make sure you are connecting it to the same router as your echo or dot is connected. Also ESP only works with 2.4 Ghz router.

    • @123AMEEN
      @123AMEEN 7 лет назад

      Yes, esp-01 is connected to the same router as my echo dot. And I use the TL-WR740N Wireless Router. And I believe it is a 2.4 GHz router. I have been trying look around the internet for a solution too. But unable to find anything. Could there be anything else Thanks again.

    • @netmedias7657
      @netmedias7657  7 лет назад

      Ok, try this.
      1). flash your ESP with following sketch.
      github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/blob/master/ESP8266_Alexa_Automation_with_URL.ino
      2).Using your browser enter following URL to turn on and off and share your result.
      To turn on: YOUR_IP/switch?state=1
      To turn off: YOUR_IP/switch?state=0

  • @kansaschappy
    @kansaschappy 6 лет назад

    At 2:04, what URL did you type in?

    • @kansaschappy
      @kansaschappy 6 лет назад

      I answered my own question. In your description, it looks like you pasted it. However, RUclips made it a link to where we are on able to copy or read the URL.

    • @kansaschappy
      @kansaschappy 6 лет назад

      arduino.esp8266.com/stable/package_esp8266com_index.json

    • @netmedias7657
      @netmedias7657  6 лет назад

      Yes. arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json

  • @ibraumo
    @ibraumo 6 лет назад

    Would this work with a nodemcu?

    • @netmedias7657
      @netmedias7657  6 лет назад

      Jorge Ramirez yes it will.

    • @ibraumo
      @ibraumo 6 лет назад

      thanks for the reply, i tried it and it works, i just got bad relays from amazon so im sending them back :(

  • @lettkt7ss
    @lettkt7ss 7 лет назад

    Can any one tell me how to remove old sketch from esp

    • @dracoinvictus
      @dracoinvictus 7 лет назад

      New sketch will overwrite the old one.

  • @StephenMannUSA
    @StephenMannUSA 7 лет назад

    Volume all the way up and I still can't barely hear you.

    • @netmedias7657
      @netmedias7657  7 лет назад

      Better Audion -->ruclips.net/video/0N4k02yn19s/видео.html

  • @gustavolyra9122
    @gustavolyra9122 6 лет назад

    when i ask alexa to find devices, the arduino output show some packet like:
    Received packet of size 101
    From 192.168.100.4, port 50000
    Request:
    M-SEARCH * HTTP/1.1
    Host: 239.255.255.250:1900
    Man: "ssdp:discover"
    MX: 3
    ST: upnp:rootdevice
    Received packet of size 125
    From 192.168.100.3, port 52928
    Request:
    M-SEARCH * HTTP/1.1
    HOST: 239.255.255.250:1900
    MAN: "ssdp:discover"
    MX: 1
    ST: urn:dial-multiscreen-org:service:dial:1
    But the alexa can't find any new device

    • @netmedias7657
      @netmedias7657  6 лет назад

      Find and change this line
      if(request.indexOf('M-SEARCH') > 0) {
      To this
      if(request.indexOf('M-SEARCH') >= 0) {

    • @gustavolyra9122
      @gustavolyra9122 6 лет назад

      i changed this line, but i get the same output from arduino.
      the condicion from the line "if(request.indexOf('M-SEARCH') >= 0) {" is accomplish
      but the second condicion "if(request.indexOf("urn:Belkin:device:**") > 0) {" isn't accomplish
      My modem UPnP is enable.
      That's all arduino receive from alexa
      Received packet of size 94
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: ssdp:all
      Received packet of size 101
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: upnp:rootdevice
      Received packet of size 94
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: ssdp:all
      Received packet of size 101
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: upnp:rootdevice
      Received packet of size 94
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: ssdp:all
      Received packet of size 101
      From 192.168.100.4, port 50000
      Request:
      M-SEARCH * HTTP/1.1
      Host: 239.255.255.250:1900
      Man: "ssdp:discover"
      MX: 3
      ST: upnp:rootdevice

  • @yt440volts
    @yt440volts 7 лет назад

    ok
    Now I get this" fatal error: queue.h: No such file or directory
    #include "

    • @netmedias7657
      @netmedias7657  7 лет назад

      laf hunting, Are you using the code from GitHub? Ignore the mediafire source.

    • @yt440volts
      @yt440volts 7 лет назад

      yes
      So do I use this one? "github.com/nassir-malik/IOT-ESP8266-Alexa_Automation/commit/63458441b9c62678dcf872938c41b52ef5f5ed67#diff-9dd24b61692decd104d8978374897565"

  • @Mommotexx
    @Mommotexx 7 лет назад

    Nice try hiding SSID and Password. SSID: Suddenlink.net-****

    • @netmedias7657
      @netmedias7657  7 лет назад

      You are proof of it that I did a bad job hiding it :-)

  • @travismicolichek8438
    @travismicolichek8438 7 лет назад

    Does this work with an amazon fire tv?

    • @netmedias7657
      @netmedias7657  7 лет назад

      +Travis Micolichek Yes, it works with fire tv as long as you have at least one Amazon Dot or Echo on the same network. I tested it and it works without any issues. IT stops working if I unplug the Amazon Dot. It does not work by itself. I hope this helps.

    • @travismicolichek8438
      @travismicolichek8438 7 лет назад

      IT does thank you! Is there a way that i can code echo to respond to the word "OPEN" and "CLOSE" instead of "on" and "off"

    • @travismicolichek8438
      @travismicolichek8438 7 лет назад

      Well thank you very much. I have 10 devices that are running with my echo. one of them is my garage door. There is one problem and that is that I cant figure out how to get the echo to respond to "Open,Close" commands. I can say "Garage door on" and "Garage door off" works fine. If you could help me that would be great. Thanks Travis

    • @travismicolichek8438
      @travismicolichek8438 7 лет назад

      Well thank you very much. I have 10 devices that are running with my echo. one of them is my garage door. There is one problem and that is that I cant figure out how to get the echo to respond to "Open,Close" commands. I can say "Garage door on" and "Garage door off" works fine. If you could help me that would be great.