ESP8266/32 (Home Assistant Switch) connected to PCF8574 controlling 8 AC relays

  Переглядів 119,719

debsahu

debsahu

5 років тому

Home Assistant Switch for 8 Relays: PCF8574 can be used to extend the GPIO of ESP8266/32 and here we use 8 ports of PCF8574 to control 8 Relay module
Code/Parts/Schematic: github.com/debsahu/PCF8574_8R...

КОМЕНТАРІ: 46
@davebeckham5429
@davebeckham5429 5 років тому
Excellent Debashish. Will try this and update. Thanks for the wonderful project. Keep up the good work.
@DDBerlin
@DDBerlin 4 роки тому
Nice Video Debashish, however You could most likely ommit the level shifter. Most of these relay boards do have a jumper "JD-VCC - VCC". If You open it, You can apply 5V to the "JD-VCC" pin which powers the secondary side of the optocouplers as well as the solenoids of the relays. And You can attach 3.3V to the other VCC pin (either one as they are connected to each other) for the logic part.
@alandarmasaputra5466
@alandarmasaputra5466 4 роки тому
does it mean external 5V is unnecesarry? and it enough to power the system only from usb port only?
@DesignitBuilditRepairit
@DesignitBuilditRepairit 5 років тому
Thanks for another great video
@kadalkadalan3618
@kadalkadalan3618 4 роки тому
whether I can control this relay from another world. I appreciate your work.thank's for share..
@guatagel2454
@guatagel2454 5 років тому
Thank you!
@pushkardey
@pushkardey 3 роки тому
Wow thanks ... I was looking for something like this... I m making the project in Python..😀
@althuelectronics5158
@althuelectronics5158 2 роки тому
Am watching cod. Very big one amazing your work
@CharudattUplap
@CharudattUplap 4 роки тому
can you add the WiFi + MQTT manager to your code , so that its easy to configure it without entering the credentials during compile and upload
@mRendyIrawan
@mRendyIrawan 3 роки тому
In a reply to a comment here, you mentioned that the code has been converted to ESPHome. So does that mean I could follow the wiring in this video and it would run with the PCF8574 component on ESPHome?
@mRendyIrawan
@mRendyIrawan 3 роки тому
@@debsahu7801 Excellent! I look forward to you posting the codes! I also looked online to try to order one of these chips, and what I found online mostly was a PCF8574 built to a board with dupont pins and it has a jumper for A0, A1, and A2 (to configure the address). Maybe you've seen one of those boards or maybe even used them. Is the ESPHome PCF8574 component compatible with those boards?
@cferrarini
@cferrarini 3 роки тому
I think you do not need PCF8547 and voltage level shifter, since ESP has enough pins and you just have to remove JD-VCC jumper, connect 3.3 from esp to vcc and 5v to JD it will be optically isolated. From datasheet: It is sometimes possible to use this relay boards with 3.3V signals, if the JD-VCC (Relay Power) is provided from a +5V supply and the VCC to JD-VCC jumper is removed. That 5V relay supply could be totally isolated from the 3.3V device, or have a common ground if opto-isolation is not needed. If used with isolated 3.3V signals, VCC (To the input of the opto-isolator, next to the IN pins) should be connected to the 3.3V device's +3.3V supply.
@townjava6845
@townjava6845 5 років тому
Good
@patle8229
@patle8229 3 роки тому
Hi, how to connect 16 relay ?
@josech5743
@josech5743 5 років тому
Why do we need a 3.3V to 5V level shifter? I was reviewing the datasheet of the PCF and it says 2.5V to 6V
@DDBerlin
@DDBerlin 4 роки тому
@@debsahu7801, You can simply open the JD-VCC - VCC jumper and connect 5V directly to the JD-VCC pin. See my more detailed reply
@CharudattUplap
@CharudattUplap 4 роки тому
Can you spin up a simple project for 4 relays directly operated on the ESP8266 portpins and if possible with a local switch for controlling these relays , if WiFi fails.
@CharudattUplap
@CharudattUplap 4 роки тому
@@debsahu7801 yes but for 4 Relay + 4 Switches you can juggle the pins according to their Boot State level and make one. I already have made one with TASMOTA firmware and it works well. But I want it with your code on it. If you could make/share
@TradieTrev
@TradieTrev 4 роки тому
"This entity does not have a unique ID, therefore its settings cannot be managed from the UI." I get this error on home assistant. I fixed it by adding the text below in the configuration.yaml file and the device appeared. Hope this helps someone and thanks for your efforts in the project. homeassistant: customize: !include customize.yaml
@pratappawar4860
@pratappawar4860 4 роки тому
why are you using level shifter , is it necessary
@iocircuits
@iocircuits 4 роки тому
Hello, where is the yaml file for home assistant ?
@WtF-ki9vp
@WtF-ki9vp 4 роки тому
Solenoid relay's power build-up and release (thousands of watt) will be causing it to restart your esp8266.
@WtF-ki9vp
@WtF-ki9vp 4 роки тому
@@debsahu7801 Have you tried using it in the real world? Unless you use snubber on the AC side, your mcu will reboot. You just don't know it!
@phyowailwin8124
@phyowailwin8124 2 роки тому
Is there a way to add physical momentary bush button to toggle each relay using gpio or via i2c?
@phyowailwin8124
@phyowailwin8124 2 роки тому
@@debsahu7801 thanks tried and it works. Do you encounter any relay is on during boot up coz i'm facing this issue even with i2c chip. I'm using esp32
@roystervi
@roystervi 2 роки тому
Hi do you have or thinking of making the same setup for a raspberry zero. nice video
@roystervi
@roystervi 2 роки тому
@@debsahu7801 A raspberry zero only cost $5. (esp32 cost more that a pi-zero) I have about 10 of them. I love to do a project like this on a Raspberry pi because of the Ethernet connection on the pi vs running too many project WIFI. if you don't know most router (well mines can only handle 32 2.4g and 32 5g devices) can only have 20 to 32 2.4g devices connected at once. (Am trying to get off wifi, I have $5 to buy raspberry zero) So making so many wifi devices will use up your router where you will have to get an AP to handle the WIFI load.
@anokhautomation4453
@anokhautomation4453 3 роки тому
Hello sir. Very nice tutorial. Can you please do the same project tutorial with micropython program??
@einarpoisot9507
@einarpoisot9507 3 роки тому
why didn't you enter an example code?
@charslambert4904
@charslambert4904 3 роки тому
Sir, i wanna ask..... your schematic can used at Blynk ??
@charslambert4904
@charslambert4904 3 роки тому
Debashish Sahu : yess sir, can i used with Blynk app?
@estevaoariel
@estevaoariel 10 місяців тому
Hello, I'm from Brazil, I would like to know how to customize the html that is encoded.
@adrianbonilla5537
@adrianbonilla5537 4 роки тому
Amigo. Me podrias hacer el favor de colaborarme con la integracion del esp8266 en home asistant. Instale el adons mqtt y la configuracion yaml y el programa en el esp. En el ide sale mqtt conectado pero no logro hacer
@adrianbonilla5537
@adrianbonilla5537 4 роки тому
@@debsahu7801 gracias
@AMoktar
@AMoktar 3 роки тому
Thanks for this great video , can you please fix links for components in github readme file
@AMoktar
@AMoktar 3 роки тому
@@debsahu7801 thank you 😊
@1yyymmmddd
@1yyymmmddd 3 роки тому
Do you really need PCF8574 to control 8 relays? Doesn't ESP8266 have enough pins that are not used during boot-up process to be connected directly to relay module?
@panjiibrahim7409
@panjiibrahim7409 4 роки тому
Bro, if any other DIY with 16 relay channel + PCF8575, please share bro .. respect
@patle8229
@patle8229 3 роки тому
@@debsahu7801 how to do it ? do you have schematic ?
@uvaishwarsii
@uvaishwarsii 2 роки тому
please make a “PROGRAMMING" video on “ARDUINO UNO with ESP8266 $ 8 CHANNEL RELAYS" and control by Android phone....🙏🙏🙏
@uvaishwarsii
@uvaishwarsii 2 роки тому
please Make a project on "ARDUINO UNO with ESP8266 & 8 CHANNEL RELAYS" and program it..... 🙏🙏🙏🙏🙏
@edgar_thiz5104
@edgar_thiz5104 3 роки тому
Ah se fossem esses os preços no Brasil...
@ifyouwantpeaceprepareforwa4329
@ifyouwantpeaceprepareforwa4329 5 місяців тому
Any new for esp32 to 74HC595D 16 channel relay with rainmaker code?
Introduction to ESPHome in Home Assistant
7:22
Smart Home Addict
Переглядів 60 тис.
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Переглядів 203 тис.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Переглядів 20 млн
How many relays can I connect to one Arduino?
9:38
AnotherMaker
Переглядів 47 тис.
ESP8266 WiFi relay control
10:45
learnelectronics
Переглядів 140 тис.
How to Use 5 Volt Relay Modules with Arduino and ESP8266
23:03
Gadget Reboot
Переглядів 39 тис.
DIY Smart Switch - Part 1 how to use a relay
8:02
byte sized engineering
Переглядів 634 тис.
DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
10:58
My Smart Home is Stupid - HVAC Update
17:44
Linus Tech Tips
Переглядів 3 млн
【home automation training -3】Make a smart power distribution box
24:12
Top 5 Beginner PCB Design Mistakes (and how to fix them)
12:52
Altium Academy
Переглядів 189 тис.
''Бесплатные умные'' домофоны для глупых людей. За чей счет банкет?
12:48
Вадим Шегалов.Оккультные игры элиты
Переглядів 32 тис.
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Переглядів 7 млн
I shouldn’t have kept the $1,000,000 computer
28:05
Linus Tech Tips
Переглядів 524 тис.