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. Наука
This my good man, this made the whole difference for the last pieces of hair on my head! Thank you so much!!
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.
Much appreciated!
nice, very well explained and for someone who just got into IoT this is perfect
Nice video, with excellent detailed information !
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
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
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. :)
Considering that the Sonoff switch actually costs even less, but includes everything, this switch is only something for hobbyists.
I'm searching for a nice webUI for this exact board. I have only a simple text html site with small on/off link.
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.
Requiero informacion para programar este modulo que tengo, No tengo conocimiento de Programacion de Arduino. Porfavor
I had issue with relay. The startup trigger flickering of relay. How did u solve that ?
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.
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!
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?
Check connections for that module. The scheme or diagram to be sure you are wiring as it should be.
..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
Yeah, I don't why they are producing it with that specific resistor.
Eskoi app konsi h naam kya h app ka
Nice explanation
muy bueno amigo, harás algo así pero usando node-red
I haven't try node-red yet. I will look for that in future maybe.
thanks for sharing. i am looking for programming using arduino ide for this esp8266
lots of patchwork to get this working....
Yes, that's why I had a "fun" with it. :)
Whatsap kar do app ka naam Singal rile ka program
Los chinos siempre te mandan acertijos en las tarjetas.
You should try with micropython. Much more easy. 😉
Thanks. I've heard about it but still didn't try it.
not so plug and play aymore ay?
It never was. :D
Is this work without INTERNET
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.
I say if I have not any routers can I use only mobile for on off it
si se puede hacerlo funcionar con una O alambrada con o sin internet, encendiendo el apagador manualmente.
very nice
but please stop music in your video
Thanks. Noted.