RailPro > RailPro Specific Help & Discussion
ScaleTrains LM-3S Question
Smoke:
With all of the lights that ScaleTrains now includes on the locomotives I have a question for how to wire it to a LM-3S/LM-3.
With the 6 light outputs of the LM, I am not sure how to keep all lighting functions:
Output 1: Front Headlights & numberboards
Output 2 & 3: Front ditch lights
Output 4 Rear Headlights & numberboards
Output 5 & 6: Rear Ditch lights
How would I light the step and walkway lights? Based on the other Scaletrains installs I've seen, I know I can connect all the step/walkway lights to one output ( I just don't know what output they would go to).
Other ST Installs for reference:
https://rpug.pdc.ca/index.php/topic,954.msg7319.html#msg7319
https://rpug.pdc.ca/index.php/topic,961.msg7332.html#msg7332
Smoke:
After thinking about it more, I realized the previous installations don't have rear ditch lights. This allows for those two outputs (or one) to be used for the step/walkway lights.
Is there a clever way to add another output, or am I stuck wiring the step/walkway lights to track power at this point? I'm wondering if there is a way electrically to make it so if I turn a function on/off/on (within a span of 3 seconds) that I could trigger another output (I know how to do it in software, but I can't fit an Arduino inside the loco). Flip flops and a 555 come to mind for this, but I don't have a ton of experience with either of these to know if they would work as intended.
G8B4Life:
If you don't need the ditch lights to flash that'll save you two outputs. You can't magically create any extra output's from the LM but your second query gave me an idea to create one out of thin air . You'd probably have to make a little circuit board to do this, and with limited space in loco's these days...
Presuming you have ditch lights front and back you could wire just one / one pair of outputs to a circuit that, with a little bit of circuit magic, having either the front or rear headlight output's on determines if the front or rear ditch lights are used. Figuring that if you were going forward you wouldn't flash the rear ditch lights would you? To make it even easier you could have that circuit be a simple relay type circuit, ie, rear headlight on = relay energised = rear ditch lights otherwise relay off = default front ditch lights. That is so ultra simple I'm probably overlooking something! Of course a relay and associated components would be too big but something like an opto-coupler (or is that opto-isolator)?
Edit: An added bonus of doing it this way is that if your prototype has the ditch lights flash when the horn is used then both the front and rear ditch lights will flash appropriately when you use the Auto ditch lights on horn setting in the LM. I think the LM's are still non directional in that regard and only auto flash the first set of ditch light configured in the LM.
- Tim
Smoke:
Tim, I was hoping against all odds you could magically add an output to the LM, but I knew my chances were less than winning the lottery! ;D
The wiring should be fairly simple as you mentioned, check which headlight is on and the corresponding ditch light pair should be lit. The way I have it shown below the front headlights would have to be on for the front ditch lights to be on, whereas the rear ditch lights could be turned on without the rear headlight being on. Not a big deal as the headlights should always be on with the ditch lights.
Now to see if I can find a small package relay that will work.
G8B4Life:
This might work better, and be smaller than a relay too.
Click to make bigger
A pair of SMD opto isolators (can someone please explain the difference between an opto coupler and opto isolator in laymans terms!) and their resistors make up the device. You'd have to research the opto isolators to use as you'd want at least 50mA on the output channel, even though in the drawing as it is the ditch lights only "flow" about 20mA in total anyway.
You could also make you own opto isolator like this too, but that'd need research as well.
With this version the ditch lights are still dependent on the headlight being on but you can have both front and rear ditch lights on, and of course the Auto flash ditch lights on horn function works for both front and rear ditch lights. The only thing I'm not sure about is how dimming the headlight will affect the opto isolator.
Now, Alan will hopefully come along and tell me where my mistake is because there's bound to be one, even though the simulator says it works.
I can't post the url because it's over 2000 characters long but you can import the attached text file into Paul Falstads circuit simulator to run the simulation.
ditch light idea v2.txt
- Tim
Navigation
[0] Message Index
[#] Next page
Go to full version