The LED should stay lit till the switch is moved to the opposite on position.Does a LED have to stay lit only while the switch is held in an 'on' position? Or must it light then and stay lit until the switch is moved to the opposite 'on' position; i.e. there is a latching action?
Edit: I'm guessing this is for a model railway turnout indicator?
I am using Kato #6 turnouts for N scale. These turnouts need a momentary voltage to throw the turnout in either of the direction. One of the easy solution is to use a two step process as you mentioned, use a normal DPDT for the polarity change and a push button for the turn out supply. I am trying to eliminate the dual process by a single action. That is momentary DPDT.Model railroader, here!
What is the make of the turnout switch? Many of them have extra contacts to drive external LED position lights.
Solenoid coil based machines as far as I have seen, do not require the current to be reversed. In that case, I have wired a regular DPDT switch with one set of contacts driving the indicator lights and the second set wired in series with a momentary pushbutton switch to energize the coils.
If your turnout switch does require current to be reversed, one could wire a small bridge rectifier in parallel with the output - giving you a DC source to drive one of the flip flop circuits presented earlier.
Please let us know the make and full wiring diagram of the turnout switch you are using.
So the cathode of the diodes will be grounded as well as connected to the "mechanical part" ?The flip flop could get out of step.
This is better.
Replace the switches with a diode connecting cathode to "mechanical part" red and blue respectively.
Which ever (red or blue) goes to ground will turn off that NPN.
Series diodes added in emitter circuit may be a good idea.
My supply for the switches is 5V. Kato switches operate fine on 5V DC.Latching relays may be your most simple bet. There are latching relays which have two coils, and latching relays with single coils. Either might work with your situation.
Here is an example latching relay at just over $2/ea when buying singly, offered by Digikey, who is a reputable distributor:
You get a pretty good price break at 50 units - it's good to have spares of the same part type, so keep that in mind if you're planning on adding a lot of switches to your layout.
Basically, you'll just connect the coil of that relay in series with a 910 Ohm resistor (to drop the difference between the 12v rating of the coil and your RR's 19v supply) up in parallel with your switch machine's coil/motor terminals, connect your positive LED supply in series with a resistor (say, 2k) to one of the contact set's common terminals, the N.O. contact to a green LED's anode, the N.C. contact to a red LED's anode, and the cathodes of both LEDs to ground.
I'll post a schematic, but want to verify if your supply is 19v or something else?
Yes, indeed but when the number of switches is like 20 the 2 step action becomes monotonous during the operation. So my intention is to make a single step action that will throw the turnout and at the same time, indicate it's direction.Using standard DPDT switches, a momentary pushbutton, and a bicolor LED produces a simple solution. See my diagram below.
That will be good and why a battery, I already have a 5V regulated DC supply in hand. Why can't that be put.Another approach might be to use a very low-power electronic latch and keep it powered with a battery. For instance, the CD4013 has a max power draw of 1uA at 5V, so you wouldn't be buying batteries very often. I'm not sure how to turn the output into something that will drive LEDs and not draw any battery power when main layout power is off, though.
|Thread starter||Similar threads||Forum||Replies||Date|
|C||Swap between 2 laser diodes via 1 momentary switch||General Electronics Chat||34|
|D||Trying to switch between two sizes of text Arduino IOT cloud messenger on OLED||Microcontrollers||3|
|Digitally switch between two resistance values||Analog & Mixed-Signal Design||18|
|A||two transistors to switch between two references Vref01 and Vref02||General Electronics Chat||25|
|S||Attempting a timer or motion sensing switch between two LEDs -- crosswalk sign||Sensor Design & Implementation||1|
|Swap between 2 laser diodes via 1 momentary switch|
|Trying to switch between two sizes of text Arduino IOT cloud messenger on OLED|
|Digitally switch between two resistance values|
|two transistors to switch between two references Vref01 and Vref02|
|Attempting a timer or motion sensing switch between two LEDs -- crosswalk sign|
by Jeff Child
by Jake Hertz
by Jake Hertz