I am working with some 5V relays at the moment and for some reason, the Normally open terminal is not working for some reason. I have the positive side of the power supply connected to CO, and another wire going from NO to the positive wire of a pump I want to run. The pump runs when connected to the NC terminal, so it isn't a power issue, I just can't get the NO side to close to run the circuit.
This is my code
void setup() {
// put your setup code here, to run once:
pinMode(5, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(5,HIGH);// turn relay ON
delay(3000);// keep it ON for 3 seconds
digitalWrite(5, LOW);// turn relay OFF
delay(5000);// keep it OFF for 5 seconds
}
It doesn't matter - the relay contacts can switch 12V to the motor (high side) or the relay contacts can switch the motor to GND (low side). It also doesn't matter which connection goes to NO or COM terminal. However, what does matter is that a flyback diode is added to the motor.
Relay logic is often inverted HIGH is OFF, LOW is ON. Is the relay onboard status LED blinking? Yes? Problem is relay. No? Problem is connection to relay.