Page 1 of 1
Having issues wiring lights to decoder
Posted: Sun Mar 03, 2024 2:03 pm
by lardenr
Re: Having issues wiring lights to decoder
Posted: Sun Mar 03, 2024 3:56 pm
by Tricky Dicky
If as you say the LEDs emit light when connected to a power supply then that eliminates the possibility that one of them is wired in the wrong polarity. Have you tried the obvious of swapping the two leads (blue & white). One of the confusing descriptions on decoders is what are called outputs. On most decoders there is one output which may be called Common which is in fact a 12V output all accessories such as lights should have their anodes (+) wired to it and all their cathodes (-) wired to their respective outputs which actually sink current rather than source it. When you activate a function internally all the decoder does is connect the respective cathode to the zero volt rail to complete the circuit. This method allows the decoder to sink far greater current then it could source.
Richard
Re: Having issues wiring lights to decoder
Posted: Sun Mar 03, 2024 4:08 pm
by Tricky Dicky
Addendum:
On most decoders that have a wiring harness it is the blue wire that is the +12V certainly on all the ones I have had experience with. It is difficult to see which wire on your LEDs is wired to the anode and the cathode but I suggest a simple swap it does not matter which side the resistor is wired to.
Richard
Re: Having issues wiring lights to decoder
Posted: Sun Mar 03, 2024 6:26 pm
by cadman
Don't forget the white wire output is for forward running, have you tried reversing direction to see if lights work then?
Re: Having issues wiring lights to decoder
Posted: Mon Mar 04, 2024 11:44 am
by jed10
I may have completely misunderstood what is in the photo but it looks like you have soldered the two longer (anode) wires of the leds together and then connected both blue and white to the shorter cathode wires. I that's the case then that would explain why it doesn't work but neither would it work on a direct 12v dc power supply.
You need the leds wired in series with the short, cathode, wire at one end connecting to the white wire and the longer, anode, wire connecting to the blue wire. It doesn't matter which side the resistor is on. However, I think I'd have used a 470 ohm resistor to be safe but you may be ok with the 390 ohm one and you can always change it if the leds are too bright.
Re: Having issues wiring lights to decoder
Posted: Mon Mar 04, 2024 11:56 am
by lardenr
Thanks for all the replies, and yes the one thing I hadnt done was to swap the cables (white and blue) so done that, and it came to life. School boy error. I was worried about blowing the bulbs.Was confused as I thought the Common return they called it was negative so had it on the wrong anode. So to answer another question, on the first LED I had soldered the shorter Anode to the longer anode of the 2nd LED, I did do all the research before i started, but all seems well now, and comes on in the right direction as well. Only small issue I have though, is one side, even though swtiched to the other direction, the bulb looks still on a bit, but very dim.
Richard
Re: Having issues wiring lights to decoder
Posted: Mon Mar 04, 2024 12:56 pm
by Brian
Electronics tend to switch the negative (0 volts) supply wire, so on a decoder Blue is always a positive unswitched feed for all functions, therefore White , Yellow, Green and Purple etc wires are all switched negatives.
LEDs when in Series connect LED1 short lead to LED2 long lead. Then decoder Blue wire goes to LED1 long lead and decoder White wire to LED2 short lead. Also the reverse can also be used, so then LED1 long lead connects to LED2 short lead. The Blue wire connecting to LED2 long lead and the White wire to LED1 short lead.
The resistor can go in either the Blue or the White wire. It doesn't matter which. The Ohm rating of the resistor will depend on the final brightness of the LEDs, the higher the Ohm rating the dimmer the LEDs will become. Minimum resistor value for a pair of series white LEDs each with a specification forward LED voltage of 3.5v and an operating current of say 10milliamps, the decoders nominal function output of 12 volts then use 560R or a higher value resistor e.g. 1K or 2K2 or even a greater ohm value as required. 1/4watt (0.25w) will be fine.
Re: Having issues wiring lights to decoder
Posted: Thu Mar 07, 2024 10:42 am
by RAF96
For dcc use you need to wire your leds as common anode. This means if you are using 3-legged bi-colour leds (2 colours in one 'bulb') the middle leg must be the anode, leaving the outer legs to switch the colours. You can get 3-legged leds which are common cathode and no use for dcc lights.
Re: Having issues wiring lights to decoder
Posted: Thu Mar 07, 2024 3:54 pm
by bulleidboy