Connected to multiple relays but only work one at a time
Posted: Sun Jan 24, 2021 6:50 pm
I'm connecting an ESP32 to 4 of these relays:
https://www.amazon.com/Onyehn-Channel-O ... op?ie=UTF8
I'm connecting pins 18, 19, 22, and 23 to the logic inputs of the relays.
I'm connecting the relay power to the 3.3V (I've also tried the 5V connection) and ground to a ground pin of the ESP32.
I'm powering the ESP32 using the USB connection.
I've connected the other sides to 110V AC power outlets and plugged lights into the outlets in the normally open configuration.
When I activate the relays one at a time, or two at a time, everything works correctly. However if I try to activate all of the relays at once. invariably one of them doesn't work. If I activate three, mostly they all work, but sometimes only two work. When I say "work" I mean the AC side light does not come on. The relays trigger, I can hear them click, and their leds are on.
The behaviour makes me think that the ESP32 doesn't have the power to keep all the relays energized, but I see several demonstrations online that suggest it is possible. Also from what I can gather about the relays their current demands are pretty small.
Does anyone have a suggestion for me as to what I may be doing wrong, or what I may be missing? Thanks, let me know if I can provide additional information,
Matt
https://www.amazon.com/Onyehn-Channel-O ... op?ie=UTF8
I'm connecting pins 18, 19, 22, and 23 to the logic inputs of the relays.
I'm connecting the relay power to the 3.3V (I've also tried the 5V connection) and ground to a ground pin of the ESP32.
I'm powering the ESP32 using the USB connection.
I've connected the other sides to 110V AC power outlets and plugged lights into the outlets in the normally open configuration.
When I activate the relays one at a time, or two at a time, everything works correctly. However if I try to activate all of the relays at once. invariably one of them doesn't work. If I activate three, mostly they all work, but sometimes only two work. When I say "work" I mean the AC side light does not come on. The relays trigger, I can hear them click, and their leds are on.
The behaviour makes me think that the ESP32 doesn't have the power to keep all the relays energized, but I see several demonstrations online that suggest it is possible. Also from what I can gather about the relays their current demands are pretty small.
Does anyone have a suggestion for me as to what I may be doing wrong, or what I may be missing? Thanks, let me know if I can provide additional information,
Matt