Sorry, I didn’t check the links on your post.
What I wanted to do was control 22 relays with a single esp32 chip. So I used an sn74… Extender thingy to get the extra gpios.
So the idea was 1 esp32 with six separate 4relay boards not the one you linked… (total 24 relays)
This didn’t work very well, as, perhaps due to wrong cabling, I had some weird behaviors (pins going on when they shouldn’t and everything switching on during esp boot time).
Anyway, I ended up connecting the 6 relay boards to two separate esp chips directly which works fine.
The only issue I have is that the esp’s sometimes reboot when I shut off all the relays simultaneously and I cannot figure out why so far…
But the board I ordered does have the ESP already connected to the Shift Register… But on which ports is not clear to me.
If I don’t know the GPIOs, I don’t know what to put in my ESPHome yaml, right?
So, I am asking, is someone having a brilliant idea? Or just measuring with a multimeter?
Well sorry to say but you took the problem in the wrong way !! You first identify how product you want to use works before buying it or you expose yourself at some big disappointments from time to time !
There is no miracle here ! If you can’t find the info from manufacturer/internet you’ll have to track the routing on the printed board to determine how ESP is wired
Did u try to contact seller on Ali ?
Yes I have contacted the seller, but I am not sure if I get what I want
At least he replied to check with the producer.
In the describtion an example code is mentioned as well, so I hope I get this and can see the assigned ports in Arduino code.
And if nothings helps, yeah, I have to check the routing obviously.
Crossing fingers that it works like it should.
In any case I get back here, reporting what happened with the board and if it works like intended for my roller shutters
Tanks a lot.
And Yes I agree, should not be too hard to achieve.
Hopefully there are some pull down resistors and not only the connection to the shift register:D
Hi everyone, I have also bought this PCB and I can’t get it to work either.
So far I have figured out that this continuity with a 0.00 resistance multimeter between the pins
(GPIO12 to ST_CP)
(GIPO13 to SH_CP)
(GPIO14 to DS)
but without any results I have not managed to get it to work. (Sorry for my bad English)
The good news is, it’s by the same manufacturer LC Tech who design and manufacture the very common four-channel and eight-channel ESP-12F relay boards. That’s their logo in the bottom left corner of the printed circuit board, near the two-position connector.
I have previously requested assistance, and they were very helpful. In my case it was an eight-channel ESP-12F relay board. In case it might be helpful, these were the GPIO assignments on their eight-channel relay board:
Thanks Keith for the contribution, the eight relay board works directly on the esp12f gpios and the 16 relay board works with two 74hc595 that communicate directly with the esp12f through three pins, the dilemma is to find the correct communication to be able to control The relay’s, the 74hc595 I have seen that it is usually used for the 3d led cubes that was used with arduino.
In my opinion to control 16 relay’s with an esp12f it would be more correct with an i2c communication, I have found a board on ebay that uses this communication to move 16 relay’s but it made me a expensive of money.
This is the code that I have used, in HA it recognizes it but does not move the relays
# Example configuration entry
sn74hc595:
- id: 'sn74hc595_hub'
data_pin: GPIO14
clock_pin: GPIO13
latch_pin: GPIO12
# oe_pin: D6
sr_count: 1
# Individual outputs
switch:
- platform: gpio
name: "SN74HC595 Pin #0"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 0
number: 0
inverted: false
- platform: gpio
name: "SN74HC595 Pin #1"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 1
number: 1
inverted: false
- platform: gpio
name: "SN74HC595 Pin #2"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 2
number: 2
inverted: false
- platform: gpio
name: "SN74HC595 Pin #3"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 3
number: 3
inverted: false
- platform: gpio
name: "SN74HC595 Pin #4"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 4
number: 4
inverted: false
- platform: gpio
name: "SN74HC595 Pin #5"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 5
number: 5
inverted: false
- platform: gpio
name: "SN74HC595 Pin #6"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 6
number: 6
inverted: false
- platform: gpio
name: "SN74HC595 Pin #7"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 7
number: 7
inverted: false
- platform: gpio
name: "SN74HC595 Pin #8"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 8
number: 8
inverted: false
- platform: gpio
name: "SN74HC595 Pin #9"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 9
number: 9
inverted: false
- platform: gpio
name: "SN74HC595 Pin #10"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 10
number: 10
inverted: false
- platform: gpio
name: "SN74HC595 Pin #11"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 11
number: 11
inverted: false
- platform: gpio
name: "SN74HC595 Pin #12"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 12
number: 12
inverted: false
- platform: gpio
name: "SN74HC595 Pin #13"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 13
number: 13
inverted: false
- platform: gpio
name: "SN74HC595 Pin #14"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 14
number: 14
inverted: false
- platform: gpio
name: "SN74HC595 Pin #15"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 15
number: 15
inverted: false
- platform: gpio
name: "SN74HC595 Pin #16"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 16
number: 16
inverted: false
I have been looking for more information about this plate and after much searching I have found in a Chinese blog this information that is quite similar to this plate, to see if someone can decipher and understand it. https://blog.csdn.net/weixin_43796593/article/details/84639021
(sorry for my bad English)
…send Line (220V) to the COM of relay_1, use NO of relay_1 for cover direction UP, join NC of relay_1 with NO of relay_2; use COM of relay_2 for cover direction DOWN. This makes programming straightforward as you get one relay per direction, and electrical interlock (but, again, no interlock_wait_time!)…