8 buttons and 8 relays in esp with hc595

elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

piotrekk wrote: Fri Nov 15, 2019 6:43 am dalej nie rozłącza AP. Możesz udostępnić mi twoje biblioteki ?
Of course.
I attach the latest version of 8x8_595_ntc and the libraries.
supla_595_reset_to_Config8x8_10K-ntc.rar
arduino & libraries
(1.63 MiB) Downloaded 445 times
Michal81
Posts: 153
Joined: Sun Feb 02, 2020 9:03 pm

Jakie zastanawiałeś rezystory w układzie x8 ?
piotrekk
Posts: 133
Joined: Thu Sep 19, 2019 7:12 am

podciągające na przyciski? od 4,7k do 10k
Remi
Posts: 129
Joined: Tue May 22, 2018 4:03 pm

Hi elmaya
I make work this software and got following behaviour: when power on D1 mini - relay is getting high signal. Is this as designed? Is there option to make a bin file with default low signal send to relay after powering on?
PS I did not install buttons as i dont need them but I suppose this should not have any influence.
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

you have to use high-level trigger relays.
What kind of relay do you have?
Remi
Posts: 129
Joined: Tue May 22, 2018 4:03 pm

I use these ones:

Image

I performed more tests and it looks old position of relay is remembered but... anyway relay is supplied for approx 2 seconds after powering up and then it goes to previous state.
Also there is inversion when comparing app and phisical relay - is there option that i connected incorrectly hc595?
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

that type of relay does not work well when controlled with 3.3v and is active at low level

you will have to use something else.
Remi
Posts: 129
Joined: Tue May 22, 2018 4:03 pm

The easiest and fastest way will be to use other relays. Wemos relay shield works well base on my performed tests so far. Thx for help ;)
piotrekk
Posts: 133
Joined: Thu Sep 19, 2019 7:12 am

what would I have to change for the bistable input to work in the code?
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

piotrekk wrote: Tue Aug 31, 2021 11:00 am what would I have to change for the bistable input to work in the code?
you should not use this as it is obsolete.
consider using MCP23017 with the current Supla library.
with "GUI Generic" it will be easy.
Post Reply

Return to “Ideas and concepts”