I am trying to switch on and off LED's with the help of a relay.
The relay I am using is 24VDC SPDT relay and the LED is 12VDC LED.
When I switch on the 12V supply the yellow LED should glow since the relay is in normally closed condition[please refer the schematic] and when the 24V supply is turned on the relay gets activated and becomes normally open thus allowing the flow of current to turn on the red led. Eventually, cutting of the supply to the yellow led.
When testing this circuit on a breadboard, the yellow is turning on when 12V supply is given and when I turn on the 24V supply, the relay gets activated but the red led is not glowing. When I measured the voltage near the led[supposed to be 12V], it is not getting any supply itself. I am stuck at this point and don't know if I am missing any small thing here.
The relay I am using is G5LE-1-E DC24 RELAY GEN PURPOSE SPDT 16A 24V.