New to Arduino and cruised through the beginner projects included with the starter kit I bought...even managed to make a bunch of nifty improvements/mods while learning. Zero issues, until now.
I am making this project, and followed it to the letter. I did this several times - same result each time. I can hear the relay switching...but the load doesn't transfer from one output to the other.
If it is wired up as in the drawing the LEDs are burned out. There might have been a short bright blink the first time the relay changed. You need something like a 1K to 10K resistor in series with the LED(s).
Are you sure the load is connected correctly? If you connect 5V to NO and the load to NC, it will never work. 5V OR the load must be connected to the C pin, and the other to NO or NC, depending on if you want to switch it on or switch it off.
Is the led orientated the correct way (Anode to positive, cathode to negative (ground)? Do you have a current limiting resistor in series with the led? If not, 5v will blow the led and make it junk.
sdturner:
If it is wired up as in the drawing the LEDs are burned out. There might have been a short bright blink the first time the relay changed. You need something like a 1K to 10K resistor in series with the LED(s).
tinman13kup:
Are you sure the load is connected correctly? If you connect 5V to NO and the load to NC, it will never work. 5V OR the load must be connected to the C pin, and the other to NO or NC, depending on if you want to switch it on or switch it off.
Is the led orientated the correct way (Anode to positive, cathode to negative (ground)? Do you have a current limiting resistor in series with the led? If not, 5v will blow the led and make it junk.
No, I'm not sure it's hooked up correctly! Can you see the picture (linked above) well enough to see how I've got it rigged?
LEDs are oriented correct way, and I've got resistors in there. I tested it with a separate 5V input: they both light up no problem.
According to the diagram I'm seeing, breadboard rows 9 on both sides are the NC and NO pins. Row 10 on both sides would be the coil (seem kind of close), and finally row 14 is the C pin.
NO, NC, and C are the switching part of the relay. It's the reason you used the relay. C= Common pin, which is the 'common' pin regardless of the relay being on or off. With the relay off, the common pin connects to the NC (normally closed) pin. If you had 5v on the C pin, and the led attached to the NC pin, the led would stay lit until the relay is energized, which then connects the C pin to the NO (normally open) pin. If you had a different led on the NO pin, it would remain lit as long as the relay was energized.
The relay is energized with the coil. Placing 5V on one pin, and ground on the other causes the relay coil to become energized, and magnetic forces physically move contacts between the NO and NC pins.