- Wed Feb 14, 2018 11:39 pm
#73990
From the link to the board I see two resistors, one transistor and a diode and an LED.
One of the resistors is for the LED.
The other resistor would be to limit current into the transistor base. The question now is if the transistor is an NPN or a PNP transistor. How you would activate the relay depends on this.
You can know if the relay is activating or deactivating by listening for a click.
Personally, I would test the relay board first. Connect its VCC to 5V on your power supply, then its ground to your power supply ground. As for the trigger, I don't know if it could operate on 3.3V or 5V. If the transistor (as above) is an NPN it wouldn't matter but if its a PNP it does.
I would suggest making the above connection then with your 3.3V supply connect its ground to your 5V power supply ground. Turn on your 5V power supply then wait one second. Then touch the 3.3V source to the relay trigger pin. You should hear it click.
If not, then try without the 3.3V altogether and just connect the 5V from your power supply to your trigger after one second. Meaning turn the relay on with 5V, wait one second, then connect another line from that 5V to your relay trigger. You should hear it click.
If that doesn't work either, connect the ground from your 5V supply to the trigger pin. You should hear it click.
This test is without using the ESP. Just your two power supplies and the relay board.
If you have documentation with your relay board then this tests aren't necessary.
Once you hear the relay clicking, attach a multimeter to your NO and COM and set it to buzzer mode. By writing down the voltage necessary at the relay trigger and your NO/NC - COM connections you can figure out what you need to write in your code to activate the relay.
Let me know if this helps.