Go Down

Topic: 5VDC Relay board help (Read 169 times) previous topic - next topic


I have been having this issue all day, and I've had enough. I'm pretty sure the answer is very simple, but I can't see it.

I have a relay board with 2 relays. I connect the VCC pin to the 5V pin on the arduino, and the GND pin to the GND pin on the arduino. Then I connect IN1 to a control pin (2).

Nothing happens

Whether I do digitalWrite high or low, nothing changes, relay doesn't click or light up.

I made it work a while ago, but now I can't.


Aug 17, 2020, 05:35 pm Last Edit: Aug 17, 2020, 05:37 pm by Paul__B
You did of course use pinMode(mypin , OUTPUT) ?

And you are powering the said Arduino with 5 V?


Ok, now I feel stupid.

I didnt declare the pin as an output.

I think I rushed it and wrote digitalWrite(8,OUTPUT); instead of pinMode.

Thanks for the help

Go Up