ESP8266EX Fun With Relay Module, Home Assistant & MQTT

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • I found cheap ESP8266 with relay and ordered it without thinking. I was gonna write simple program, upload it to ESP8266, plug ESP8266 to relay and thing is gonna work. But was it like that? NO!
    ❗⚡ Please be careful if working with AC!
    ⌚️ Timestamps:
    00:00 - Introduction
    01:00 - ESP8266EX specs and components
    03:08 - USB to TTL driver installation
    04:22 - Writing program in Atom and PlatformIO
    07:50 - Building and uploading program to ESP8266EX
    09:33 - Passing from flash mode to normal mode
    09:58 - Testing over serial monitor
    11:17 - Searching ESP8266EX IP with Angry IP Scanner
    11:36 - Home Assistant installation (link to video bellow)
    12:05 - Editing configuration.yaml
    12:59 - Edit Home Assistant UI manually
    13:35 - Something is not working with troubleshoot
    14:09 - Relay problem and solution
    15:00 - Soldering relay pins and resistors
    15:26 - Testing - will it work?
    16:12 - Light bulb test
    16:34 - Final words
    🎬 Video Related Links:
    ESP8266EX With Relay Module on eBay: ebay.us/mFbru0
    USB to TTL CP2102 Module on eBay: ebay.us/7YNyW9
    Breadboard on eBay: ebay.us/ENbENS
    Wires on eBay: ebay.us/6TGiUf
    ESP8266EX Overview: www.espressif.com/en/products...
    ESP8266EX Datasheet: www.espressif.com/sites/defau...
    Flashing (Uploading) to ESP8266 Instructions and Scheme: esp8266internetofthings.blogsp...
    Silabs Direct Driver For USB to TTL: www.silabs.com/products/devel...
    PlatformIO IDE and Atom: docs.platformio.org/en/latest...
    C++ main.cpp code: github.com/1BarConnection/esp...
    Hercules Serial Monitor: www.hw-group.com/software/her...
    Angry IP Scanner: angryip.org/download/
    Home Assistant configuration.yaml: github.com/1BarConnection/esp...
    Home Assistant Raw configuration: github.com/1BarConnection/esp...
    Fix Video for ESP8266 Relay Module: • How to fix cheap ebay ... - Big THANKS! :)
    Home Automation With NodeMCU, HomeAssistant & MQTT Video: • Home Automation With N... - Home Assistant Installation
    Starting With NodeMCU ESP8266 Blinking LED Using PlatformIO Video: • Starting With NodeMCU ...
    NodeMCU ESP8266 Specs Video: • Awesome NodeMCU ESP826...
    🌍 My Links:
    Patreon: / 1barconnection
    Twitter: / 1barconnection
    GitHub: github.com/1BarConnection
    🎬 Recommended Videos:
    Home Automation: • Home Automation - ESP8266
    Telecommunications: • Telecommunications
    💻 My Equipment:
    Earphones: tinyurl.com/air-pro-2 (USE -30% PROMO CODE: EARFUN30)
    Keyboard: amzn.to/41OJvK4
    Mouse: amzn.to/3orPgzA
    Desk Chair: amzn.to/3Wk608H
    Tripod: amzn.to/3Dy2Rcw
    Networking Tools: amzn.to/3Wo3C0r
    Shelly Duo LED Bulb: amzn.to/42UU2Vl
    Raspberry Pi 3B+: amzn.to/3pZSLxT
    3D Printer: amzn.to/3pX81LN
    Wi-Fi Adapter: amzn.to/3OpyhZl
    🎵 Music:
    Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
    Source: incompetech.com/music/royalty-...
    Artist: incompetech.com/
    *Some of the links in this description are affiliate links from which I receive a small fee, so thank you for using them.
  • НаукаНаука

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

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

    This my good man, this made the whole difference for the last pieces of hair on my head! Thank you so much!!

  • @birthdaydog1244
    @birthdaydog1244 Год назад +2

    Nice work mate. Very easy to understand first time around. I appreciate that a lot you’ve got a knack for teaching this I’ve watched many on this topic you did a wonderful job.

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

    nice, very well explained and for someone who just got into IoT this is perfect

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

    Nice video, with excellent detailed information !

  • @ghaimanalkohali482
    @ghaimanalkohali482 3 года назад +3

    This exactly what i was looking for ,, thank you very much man ,,, i will try it and let you know if it worked for me.
    Thanks

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

      Hi there,I have applied all steps and configured Home Assistant but, I'm having a problem connecting my esp8266 to Home Assistant, it connects to the wifi network but shows the error below:
      Serial port COM8 opened
      ....
      Connected, IP address: 192.168.1.115
      Light - MQTT - ERROR
      i will appreciate it if you can help me fix it

  • @VictorGuerrero18
    @VictorGuerrero18 3 года назад +2

    I found cheap ESP8266 with relay and ordered it without thinking. --- i did exactly the same thing!
    now searching youtube on how to use it. :)

  • @n.r.2258
    @n.r.2258 3 года назад +6

    Considering that the Sonoff switch actually costs even less, but includes everything, this switch is only something for hobbyists.

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

    I'm searching for a nice webUI for this exact board. I have only a simple text html site with small on/off link.

  • @LoneWolf-qy9uw
    @LoneWolf-qy9uw 11 месяцев назад

    Hi I want to make a switch using microcontroller for high power device like refrigerator or water pump which relay would work for this purpose.

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

    Requiero informacion para programar este modulo que tengo, No tengo conocimiento de Programacion de Arduino. Porfavor

  • @BilalInamdar
    @BilalInamdar Год назад

    I had issue with relay. The startup trigger flickering of relay. How did u solve that ?

  • @darknessblades
    @darknessblades Год назад

    How would this hold up in the current day?
    or would you suggest a better different ESP8266 relay?
    was planning on getting one of these cheap ones to use with some led-strips.

    • @1BarConnection
      @1BarConnection  Год назад

      If you put some effort and time in it, it will do. Today you also have a "plug and play" solutions like Shelly and Sonoff switches with their apps. In the upcoming months I'll release new content for Shelly devices so check it out once uploaded. My latest video is explaining Shelly humidity and temperature sensor so you can see how the Shelly app looks like and find some info there. In any case have fun!

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

    I got a slightly different module, and can't get it to turn the relay on. Tried all GPIOs available. The module get enough juice. Any ideas?

    • @1BarConnection
      @1BarConnection  2 года назад

      Check connections for that module. The scheme or diagram to be sure you are wiring as it should be.

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

    ..this module has bug on its relay board..remove the smd R2 202 resistor in the relay board to be able to work after programming via the switched USB programmer for the esp-01s

    • @1BarConnection
      @1BarConnection  2 года назад

      Yeah, I don't why they are producing it with that specific resistor.

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

    Eskoi app konsi h naam kya h app ka

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

    Nice explanation

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

    muy bueno amigo, harás algo así pero usando node-red

    • @1BarConnection
      @1BarConnection  3 года назад

      I haven't try node-red yet. I will look for that in future maybe.

  • @LightTubes
    @LightTubes 3 года назад +2

    thanks for sharing. i am looking for programming using arduino ide for this esp8266

  • @malinyamato2291
    @malinyamato2291 3 года назад +3

    lots of patchwork to get this working....

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

      Yes, that's why I had a "fun" with it. :)

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

    Whatsap kar do app ka naam Singal rile ka program

  • @gxbs2318
    @gxbs2318 Год назад

    Los chinos siempre te mandan acertijos en las tarjetas.

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

    You should try with micropython. Much more easy. 😉

    • @1BarConnection
      @1BarConnection  2 года назад

      Thanks. I've heard about it but still didn't try it.

  • @shaladddin5687
    @shaladddin5687 Год назад

    not so plug and play aymore ay?

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

    Is this work without INTERNET

    • @1BarConnection
      @1BarConnection  2 года назад +1

      Not sure if I understand your question exactly. You do not need the ISP internet access for this module to work. You can connect it to your router/modem WLAN with the Wi-Fi or program module to work as AP over Wi-Fi.

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

      I say if I have not any routers can I use only mobile for on off it

    • @gxbs2318
      @gxbs2318 Год назад

      si se puede hacerlo funcionar con una O alambrada con o sin internet, encendiendo el apagador manualmente.

  • @saberibrahim8263
    @saberibrahim8263 Год назад

    very nice
    but please stop music in your video