Тёмный

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

debsahu
Подписаться 3,1 тыс.
Просмотров 121 тыс.
50% 1

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

Наука

Опубликовано:

 

23 фев 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@davebeckham5429
@davebeckham5429 5 лет назад
Excellent Debashish. Will try this and update. Thanks for the wonderful project. Keep up the good work.
@DesignitBuilditRepairit
@DesignitBuilditRepairit 5 лет назад
Thanks for another great video
@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?
@althuelectronics5158
@althuelectronics5158 2 года назад
Am watching cod. Very big one amazing your work
@guatagel2454
@guatagel2454 5 лет назад
Thank you!
@pushkardey
@pushkardey 3 года назад
Wow thanks ... I was looking for something like this... I m making the project in Python..😀
@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
@kadalkadalan3618
@kadalkadalan3618 4 года назад
whether I can control this relay from another world. I appreciate your work.thank's for share..
@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?
@GenZAILab
@GenZAILab 4 года назад
why are you using level shifter , is it necessary
@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
@iocircuits
@iocircuits 4 года назад
Hello, where is the yaml file for home assistant ?
@townjava6845
@townjava6845 5 лет назад
Good
@patle8229
@patle8229 3 года назад
Hi, how to connect 16 relay ?
@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?
@estevaoariel
@estevaoariel Год назад
Hello, I'm from Brazil, I would like to know how to customize the html that is encoded.
@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.
@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
@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
@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
@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?
@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!
@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.
@edgar_thiz5104
@edgar_thiz5104 4 года назад
Ah se fossem esses os preços no Brasil...
@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 😊
@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 3 года назад
please make a “PROGRAMMING" video on “ARDUINO UNO with ESP8266 $ 8 CHANNEL RELAYS" and control by Android phone....🙏🙏🙏
@uvaishwarsii
@uvaishwarsii 3 года назад
please Make a project on "ARDUINO UNO with ESP8266 & 8 CHANNEL RELAYS" and program it..... 🙏🙏🙏🙏🙏
@ifyouwantpeaceprepareforwa4329
@ifyouwantpeaceprepareforwa4329 7 месяцев назад
Any new for esp32 to 74HC595D 16 channel relay with rainmaker code?
Далее
How many relays can I connect to one Arduino?
9:38
Просмотров 49 тыс.
Connecting a Relay Module to a Microcontroller
11:41
Просмотров 217 тыс.
Guess The Drawing! ✍️✨🧐 #shortsart
00:14
Просмотров 2,9 млн
아이스크림으로 체감되는 요즘 물가
00:16
PCF8574 GPIO Extender - With Arduino and NodeMCU
11:30
15 Home Assistant Tips You MUST Do
14:28
Просмотров 341 тыс.
ESP32 controller EspHome для Home Assistant
27:44
Open Source Smart Home HUB 2.0 for Home Assistant
20:36
My Smart Home is Stupid - HVAC Update
17:44
Просмотров 3,1 млн
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Просмотров 39 тыс.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
Просмотров 167 тыс.