I have completed the unit for multiple digital outputs using Node-red MQTT and ESP32. I then decided to let it trigger a relay for the AC bulb. The relay module VCC is connected to 5v, and the digital signal input is connected to the digital output of ESP 32 PIN 26. when the switch is ON, the relay LED turns ON, meaning it receives the signal but the relay isn’t triggered. I have used both digital HIGH and LOW to activate the relay without success. Meanwhile, these relays worked well with the same ESP 32 on a standalone project with ESP32. Wondering, what is going on. Any help will be appreciated.
what is the part number of the relay you are using? Does the relay need VCC, a signal, and a ground?
Yes, the relay has VCC, GND and Signal. However, I have resolved it. The 5V from the computer was unable to power the relays. Once I wired with an external 5v, the relays operated.
I have another practical question but let open another thread. Thanks for your support