ESP8266EX Fun With Relay Module, Home Assistant & MQTT

Ғылым және технология

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
    @AleksanderOttesen2 жыл бұрын

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

  • @birthdaydog1244
    @birthdaydog1244 Жыл бұрын

    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.

  • @1BarConnection

    @1BarConnection

    Жыл бұрын

    Much appreciated!

  • @sirrealistically
    @sirrealistically3 жыл бұрын

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

  • @PhG1961
    @PhG19613 жыл бұрын

    Nice video, with excellent detailed information !

  • @VictorGuerrero18
    @VictorGuerrero183 жыл бұрын

    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. :)

  • @ghaimanalkohali482
    @ghaimanalkohali4823 жыл бұрын

    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

  • @n.r.2258
    @n.r.22583 жыл бұрын

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

  • @ProfWereW
    @ProfWereW3 жыл бұрын

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

  • @sergioacosta9499
    @sergioacosta94992 жыл бұрын

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

  • @LoneWolf-qy9uw
    @LoneWolf-qy9uw11 ай бұрын

    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.

  • @BilalInamdar
    @BilalInamdar Жыл бұрын

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

  • @ilusrk007
    @ilusrk0073 жыл бұрын

    Nice explanation

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

  • @surenbono6063
    @surenbono60632 жыл бұрын

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

  • @tinkerer67
    @tinkerer672 жыл бұрын

    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.

  • @rajkumar9678
    @rajkumar96783 жыл бұрын

    Eskoi app konsi h naam kya h app ka

  • @ariel18012
    @ariel180123 жыл бұрын

    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
    @LightTubes3 жыл бұрын

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

  • @malinyamato2291
    @malinyamato22913 жыл бұрын

    lots of patchwork to get this working....

  • @1BarConnection

    @1BarConnection

    3 жыл бұрын

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

  • @alejandrobez
    @alejandrobez2 жыл бұрын

    You should try with micropython. Much more easy. 😉

  • @1BarConnection

    @1BarConnection

    2 жыл бұрын

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

  • @gxbs2318
    @gxbs2318 Жыл бұрын

    Los chinos siempre te mandan acertijos en las tarjetas.

  • @shaladddin5687
    @shaladddin5687 Жыл бұрын

    not so plug and play aymore ay?

  • @1BarConnection

    @1BarConnection

    Жыл бұрын

    It never was. :D

  • @GurinderSingh
    @GurinderSingh3 жыл бұрын

    Is this work without INTERNET

  • @1BarConnection

    @1BarConnection

    2 жыл бұрын

    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.

  • @rajkumar9678
    @rajkumar96783 жыл бұрын

    Whatsap kar do app ka naam Singal rile ka program

  • @saberibrahim8263
    @saberibrahim8263 Жыл бұрын

    very nice but please stop music in your video

  • @1BarConnection

    @1BarConnection

    Жыл бұрын

    Thanks. Noted.

Келесі