Author Topic: Dual LED installation  (Read 1899 times)

mike

  • Brakeman
  • *
  • Posts: 2
Dual LED installation
« on: December 11, 2018, 02:14:34 PM »
I purchased dual LEDs that have two leads that change the output from white to red when the +/- is swapped.  Given that I want to have them change on direction of the engine, but not fed from the motor output, how can I connect them without worrying that the two feeds from two different light outputs from the Rx will short them out or just not light?  I don't see where the light outputs are directionally connected, so you would have to manually push them for each direction, again this could cause both feeds to be on at once.

Cheers.  Mike

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Dual LED installation
« Reply #1 on: December 11, 2018, 03:17:36 PM »
The light outputs of an LM are effectively switches that make a connection to 0 volts (ground). You need polarity reversal i.e. 14V & 0V and then 0V & 14V. LM outputs can't natively do this.

You could use a resistor voltage divider between 14V and 0V to give you 7V connected to one side of the LED and then put a pull-up resistor on the LM output connected to the other side of the LED. The resistor math would have to be worked out.

When the LM output is ON (0V) current would flow through the LED in one direction. When the LM output is OFF (NC) current would flow through the pull-up resistor and the LED in the opposite direction. The LED would always be on but you could control its color with a button.

Resistor Voltage Divider example:
Resistive_divider2.svg.png

Pull-up Resistor example:
pullup.jpg
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

mike

  • Brakeman
  • *
  • Posts: 2
Re: Dual LED installation
« Reply #2 on: December 12, 2018, 01:51:26 PM »
That would work for just the two dual LEDs, but I also intended to connect the forward three to go white in that direction and the rear three to be off at the top and the two dual LEDs to go from the white to red phase.  It would be very easy if I was using the rail power, but not so with the battery.  If there was a way to program two light outputs that required the other to be off first, then a manual transfer could be done.  I'm not against the manual mode, I just don't want to blow the LED by feeding it positive both ways at the same time.

I will take a look at how to convert your suggestion into the two circuits.  Thanks.

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Dual LED installation
« Reply #3 on: December 12, 2018, 02:09:44 PM »
That would work for just the two dual LEDs, but I also intended to connect the forward three to go white in that direction and the rear three to be off at the top and the two dual LEDs to go from the white to red phase.

Same, same. The LEDs at each end would simply be wired in parallel, each with its own dropping resistor. [EDIT] Reread helped me better understand what you are saying. Still possible, circuit would be a bit more complicated.

It would be very easy if I was using the rail power, but not so with the battery.

Doesn't matter. LM outputs are the same regardless of power supply type.

If there was a way to program two light outputs that required the other to be off first, then a manual transfer could be done.

A simple SPST relay could do this - normally open relay contact fed with LM output #2, relay coil fed with LM output #1. Problem is finding a suitable relay sufficiently small enough to fit in the installation.

I just don't want to blow the LED by feeding it positive both ways at the same time.

Won't damage LED. LED just won't light.
« Last Edit: December 12, 2018, 02:11:26 PM by Alan »
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro