I'm a newbie trying to control something through a relay. I've try two relay with two different setup.
Setup 1
External 12v dc input to the relay (SRD-12VDC-SL-C) and signal pin from arduino to the IN pin, gnd of ext. power supply to gnd of arduino, NO and COM to the load object (ie: led).
Setup 2
Similar to setup 1, but using SRD-05VDC-SL-C, 5v from arduino (vin from arduino also tested).
Test program
Modified version of the 'blink' example.
Symptom
- The load object has been verified to be working before the testing.
- Both setup can be verify the input is working, the power led and switch led of the two relay module are lighted as expected, and I can hear the click sound while switching.
- No any output can be obtain, both from load object and using multimeter.
Update
Sorry, I suppose to upload a Fritzing schematic, but I can't find a proper relay as I'm using.
- The DC+ (red) of the relay is connected to the external ATX 12v.
- The DC- (black) of the relay is connected to the external ATX ground.
- The IN (blue) of the relay is connected to the Arduino pin 8.
- The external ATX ground (white) is connected to the Arduino ground.
- The NO (red) of the relay is connected to the load object Vcc.
- The COM (black) of the relay is connected to the load object ground.
Question
I have no idea on why there's no votage can be obtain between NO and COM while the switch is on, what's wrong with my setup?