2
\$\begingroup\$

I refer to an article from your web site about 4.5 years ago titled Replacing two LEDs with a 2-pin, bicolor LED, using a circuit that reverses polarity based on two inputs. I refer to the circuit given in the answer, copied here:

enter image description here

This looks like it might suit my needs, but given - in my opinion - there is no return path I'm wondering what needs to be added to complete the circuit to work the way I want it to.

As a background to this question, and to keep it short, I have a model railway and numerous turnouts on it. Micro limit switches are used to indicate a path for the loco when the turnout is thrown by activation of the throwbar on the turnout. An example would be when the path is straight through the limit switch would indicate a green LED by the throwbar pushing against the arm of the limit switch and when the turnout is thrown to diverge the pressure would come of the arm of the limit switch. Due to placement of the limit switches some could have NC as GREEN and NO as RED, or some could be the reverse.

The circuit I refer to has an input of 5 VDC, to Output 1 & Output 2, with corresponding resistors. Where would the return path fit in? I am looking at the schematic now and I think the Outputs 1 and 2 could possibly be Inputs for what I want.

Could you someone please advise me? FWIW I have basic knowledge of electronics which can get me through if it is not too complicated. Also the input voltage I would be using is 12 VDC with the appropriate resistors. I have seen some YouTube videos where a normal diode is used, but I don't want to use this option if it can be avoided.

I don't particularly want to use the 3-pin bi-colour type LEDs.


That looks like it's what I'm after, except that the 2 Mechanically interlocked switches need to be replaced by a limit switch with Common, N/C & N/O connections.

I am going to attempt to attach a copy of my schematic diagram.enter image description here

\$\endgroup\$
2
  • \$\begingroup\$ (Thanks for edit, very helpful.) Is it one switch per throwbar? Also: do you want to share any wiring between the switch(es) and its matching bicolor LED? Should the LED always be lit, either red/grn? \$\endgroup\$
    – jonathanjo
    Commented Apr 8, 2023 at 8:10
  • \$\begingroup\$ It is one NO/NC limit switch. For example I have about 16 turnouts on the layout plus 4 on the Test/Programming Extension. In other words, 20 turnouts, at least 16 NO/NC limit switches. Some turnouts are crossovers. The LEDs should always be either R/G. The last schematic below appears to be what I want. \$\endgroup\$
    – ianb26
    Commented Apr 9, 2023 at 2:23

2 Answers 2

2
\$\begingroup\$

The diagrams below indicate the various ways to connect N.O. limit switches to two and three terminal bi-colour LEDs.

The resistors are chosen for 5v. For higher voltages, increase the resistor value for desired brightness.

in my opinion - there is no return path

The nodes labeled as outputs are the outputs of a microcontroller that supply the return path when the output switch is closed as shown in Figure 1.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
0
\$\begingroup\$

Do you perhaps have other voltages available?

schematic

simulate this circuit – Schematic created using CircuitLab

Is it two limit switches? If so you can wire straightforwardly. As the answer you referenced says, you'll lose some power. SW1 closed => 12VDC - R1 - SW1 - Ground (waste), and 12VDC - R2 - D1 - SW1 - Ground (lit). SW2 closing is symmetric.

schematic

simulate this circuit

\$\endgroup\$
7
  • \$\begingroup\$ If running with 12VDC you would want to increase the original 470 ohm resistors to about 1.1k to 1.5k ohm, with the lower value giving a brighter output. \$\endgroup\$
    – Nedd
    Commented Apr 8, 2023 at 8:40
  • \$\begingroup\$ I have constructed the above circuit using NC/NO micro limit switch in place of the Mechanically interlocked switches in the above schematic, but it doesn't work. what have I done wrong? Do I need to post a schematic of my circuit? \$\endgroup\$
    – ianb26
    Commented Apr 12, 2023 at 6:18
  • \$\begingroup\$ @ianb26 yes, post your circuit as an edit to your question, we'll be happy to see if we can help. \$\endgroup\$
    – jonathanjo
    Commented Apr 12, 2023 at 8:51
  • \$\begingroup\$ @jonathanjo I have posted a reply to you but it appears to have "embedded" itself in the complete question some how. there are 2 copies of my schematic together. It's the second one where the the NO and NC connections have been reversed, (the revised order of connections is C, NO, NC). Hope you can find it and help me. \$\endgroup\$
    – ianb26
    Commented Apr 18, 2023 at 3:50
  • \$\begingroup\$ @ianb26 please join me in chat room chat.stackexchange.com/rooms/145458/model-train-signals \$\endgroup\$
    – jonathanjo
    Commented Apr 20, 2023 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.