I'm new to IoT. I'm trying to connect more than one device to relay and control via ESP board(tested with esp8266 and esp32), I'm using mqtt connecton for signaling.
So here's whats happening
If I connect just 1 relay pin to the esp8266 board, it works fine and I ested for 3-4 days already.
If I connect other pins(2+ channel relay) of the relay to the esp8266 board, I can see it working for 4-5 minutes and after that, it starts fluctuating(relay led gets dim and you hear click sound) and MQTT responses are not received.
This is only happening when I'm connecting to external power source of 5V. When I connect via USB from my laptop, it works fine.
Note :- I tested it on esp32 board as well, with a different relay, it's showing the same behaviour.
So, I'm wondering if it is because of some power fault, do I need to power relay and board with individual 5v?