eastwind
I haven't bought a dcc system yet, but here I am wanting to test the design of a control panel that will power leds off of the dcc bus. What to do? I could make up my mind now on which dcc system to buy and plunk the $500+ necessary for the whole system, and with inflation the way it is that might even be sort of smart.
 
But what I was wondering was whether I could just buy a dcc booster and run it with a power supply but no dcc input as a means of testing my circuits to drive servos and light control panel leds. I've jumped into the whole arduino thing following Joe's recent articles, but for the control panel part I need dcc. If I just use a 15v straight DCC power supply then that will be ok for some testing, but it won't help me test the resistor values and led brightness.
 
What about just buying a sprog II booster? That's 55 GBP or USD$71.28 right about now, and I think would be useful later.
 
Or I could buy the wherewithall for a full bench DCC test station and programming track, I suppose. But I sort of thought that people who had those had them because they bought a DCC system they didn't like first and another one for the layout second, then used the old one for the bench. So buying a bench one first seems sort of backwards.

You can call me EW. Here's my blog index

Reply 2
MikeHughes
You could build a DCC-EX.  Cheap and the arduino can be repurposed later if you decide to go in a different direction.
Happy NMRA Member since 2024
Reply 1
Terry Chamberlain jterryc
The SPROG II would definitely do what you want, ie. give you a DCC output, but it uses JMRI Decoder Pro as a user interface, so you have another learning curve in installing and getting to grips with the JMRI software.
 
A possibly simpler solution would be to invest a little more in an NCE Power Cab system - available, for example, from Tony's Trains at $180. This system is completely plug-and-play and is probably all you would ever need to run a small (or even medium-sized) layout with two or three locos.
 
Note that I have no commercial interest in NCE (or Tony's Trains for that matter) - just a satisfied customer - although I do offer A-Track, a completely free Windows application for NCE systems which offers much the same facilities as JMRI but is IMHO much easier to install and use😉.

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

https://www.a-train-systems.co.uk/atrack

Reply 0
Edmund gmpullman
What about just buying a sprog II booster? That's 55 GBP or USD$71.28 right about now, and I think would be useful later.
 
I personally vote for the Sprogg idea. I use mine on a test track nearly every day and with the throttle 'app' included in Decoder Pro I can immediately test whatever changes I've made to CVs. I save my JMRI roster to DropBox so if I pull up Decoder Pro at the layout I have access to the same roster and any changes made at either location are saved.
 
Even if you decide down the road you don't need the Sprogg you can probably sell it for nearly what you paid. I believe they hold their value well.
 
I often test passenger car lighting and other DCC-powered devices right off the Sprogg outputs. I even have a short track in the paint booth that I'll call up a loco address and using the throttle set the speed so the drivers are turning slowly for painting and weathering without leaving 'side rod shadows'.
 
Good Luck, Ed

Travel and Sleep In Pullman Safety and Comfort!

Reply 1
greg ciurpita gregc
I am wanting to test the design of a control panel that will power leds off of the dcc bus.
why power it from the DCC bus ?

greg - LaVale, MD -- my layout   --  threads of interest

Reply 2
Ken Rice
A TCS LT-50 (https://www.tcsdcc.com/about-lt-50) or the older NCE PowerCab both are good workbench dcc systems, and can be the whole system for a small layout.
 
A plain old booster isn’t going to output anything without a command station providing a signal to it.
 
A sprog would certainly do the job.

My advice is think about what you’re going to want eventually for a workbench setup, and get that.
Reply 2
ChuckS Chuck Stuettgen
I am wanting to test the design of a control panel that will power leds
EW,
 
Instead of potentially going down a road you may later decide against, why not invest in a good Variable voltage DC bench top power supply?
 
61bEnvu76rL._AC_SL1500_.jpg
 
I bought a different brand, (which is now listed as unavailable), a couple of years ago and haven't regretted it. Having Over Current short protection is reason enough to justify the modest expense.
 
Just my .02.
 
Chuck S.
"It's a hobby not a race."  What I tell people when I'm asked when my layout will be finished.
[GFRR_Logo_small]
Reply 2
Glenn Butcher ggbutcher
I haven't bought a dcc system yet, but here I am wanting to test the design of a control panel that will power leds off of the dcc bus. What to do? I could make up my mind now on which dcc system to buy and plunk the $500+ necessary for the whole system, and with inflation the way it is that might even be sort of smart.
 
But what I was wondering was whether I could just buy a dcc booster and run it with a power supply but no dcc input as a means of testing my circuits to drive servos and light control panel leds. I've jumped into the whole arduino thing following Joe's recent articles, but for the control panel part I need dcc. If I just use a 15v straight DCC power supply then that will be ok for some testing, but it won't help me test the resistor values and led brightness.
 
What about just buying a sprog II booster? That's 55 GBP or USD$71.28 right about now, and I think would be useful later.
 
Or I could buy the wherewithall for a full bench DCC test station and programming track, I suppose. But I sort of thought that people who had those had them because they bought a DCC system they didn't like first and another one for the layout second, then used the old one for the bench. So buying a bench one first seems sort of backwards.
If you're already into Raspberry Pi, I wrote a DCC command station that uses the PWM hardware of the Pi to make the waveform:
 
 
That, and a cheap LN298 motor driver and 12v power supply, would do for a bench setup.
Reply 2
YoHo
I am curious to understand the need to drive LEDs off the DCC bus. In the general sense I would not recommend doing anything with the DCC bus other than running locomotives.
Reply 3
Andy Reichert
I am curious to understand the need to drive LEDs off the DCC bus. In the general sense I would not recommend doing anything with the DCC bus other than running locomotives.
 
Absolutely agree. Regulated wall warts come in 5v dc and 12 v dc versions for typically around $5. Even a 110v plug-in USB charger will give you enough 5v power for lots of LEDs. You just need to settle on 5v or 12 v to drive the non-DCC electronics on your layout.
 
Andy
Reply 1
Terry Chamberlain jterryc
As I understand it, the OP's application is to use LEDs on a panel to indicate the state of a set of turnouts - with the relevant LEDs connected directly to the turnout frog, which is itself powered via a switch or relay to the track DCC feeders - rather than use a separate switch or relay linked to the turnout servo (or servo driver) for the LEDs.
 
Hence, for testing purposes, the need for a DCC source.

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

https://www.a-train-systems.co.uk/atrack

Reply 2
Andy Reichert
As I understand it, the OP's application is to use LEDs on a panel to indicate the state of a set of turnouts - with the relevant LEDs connected directly to the turnout frog, which is itself powered via a switch or relay to the track DCC feeders - rather than use a separate switch or relay linked to the turnout servo (or servo driver) for the LEDs.
 
Hence, for testing purposes, the need for a DCC source.
Hardly. A physical connection to either stock rail would result in a DCC phase change, and/or ground change, not voltage.
 
Andy
Reply 0
Terry Chamberlain jterryc
Not at all - an LED plus series resistor connected between the powered frog and one of the stock rails will simply light the LED.
Please refer to post 76 (or so) in the thread 'Electrical Impulses: Servos to control turnouts: 4' for details of the circuitry the OP is planning to implement - it's on the next forum page.

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

https://www.a-train-systems.co.uk/atrack

Reply 0
eastwind
I am curious to understand the need to drive LEDs off the DCC bus. In the general sense I would not recommend doing anything with the DCC bus other than running locomotives.
I agree with the sensibleness of that as a recommendation. I could choose a different arrangement that powered the control panel leds using another pin of the arduino instead, but that runs up the per-turnout cost of the electronics because it doubles the number of arduinos needed, and each arduino needs 2 pca boards.
 
If I only want to power 8 turnouts per arduino I could avoid the complication of using DCC to power the control panel leds, and for some places on the layout I might choose that alternative. I'm planning a number of small distributed control panels rather than one giant one somewhere, and so maybe it will be easier to just do one arduino-pca-pca set per control panel instead of running a lot of wiring, and then I'd have enough pins to avoid powering the control panel leds via dcc.
 
To recap, the arduino drives one pca board which drives the servo that physically moves the turnout, and the second pca board which drives a relay. One pin on the arduino is used as input for a push button (with the button also hooked to common ground and vcc). So one pin per turnout. The relay, on the output side, connects to the two DCC bus wires and outputs a 'frog' wire to power the frog, choosing the polarity under program control. The arduino, pca boards and relay are all together in one location, and four wires lead from there to the turnout - 3 for the servo and one for the frog.
 
If the arduino etc is somewhere other than the control panel, then a branch of the frog wire goes to the control panel, which also has the dcc bus running by it. The leds bridge between the frog wire and both of the dcc bus wires, using two-color three-pin leds so that the frog wire polarity controls the color that lights.
 
In this scheme the arduino can control up to 16 turnouts.
 
If I want to spend more on arduinos and pca boards, I can just locate one arduino and two pca boards, plus one relay per turnout, at each control panel, and then I can power the leds the usual way, using a second arduino pin to control them, resulting in 8 turnouts per arduino and 8 turnouts per control panel. There would still be 4 wires running from this to each turnout for the frog and servo.
 
I might choose to make my own twisted cables for the runs to the turnouts, twisting all 4 wires together (red, yellow, black and green) for neatness and cable management, with the green separating from the twisted bundle at either end and connecting differently.
 
If I do that, I have the option of locating the relay either next to the pwm board or near the turnout. It doesn't make a difference in the amount of wiring, just whether the fourth wire in the run to the servo is pwm or dcc. If I control the leds from the dcc frog power that can't be the pwm, so the relay has to stay near the pca board.

You can call me EW. Here's my blog index

Reply 0
joef
I might choose to make my own twisted cables for the runs to the turnouts, twisting all 4 wires together (red, yellow, black and green) for neatness and cable management, with the green separating from the twisted bundle at either end and connecting differently.
I would not mix in the frog wire in the twisted cable.  It’s 14V “AC-like” compared to the other three wires being 5V DC. The twisted wire works because all three being the same cancel each other out if there’s any noise. Adding the frog wire would introduce a very noisy (due to the DCC signal) wire that’s uncancelled into the mix. I would not do that.
 
Run the frog wire separately, and feed it from the same booster as the turnout rail feeders.

Joe Fugate​    
Publisher, Model Railroad Hobbyist magazine

[siskiyouBtn]

Read my blog

Reply 2
eastwind
Ok, thanks, I'll file that under 'bad idea'.

You can call me EW. Here's my blog index

Reply 0
Andy Reichert
Not at all - an LED plus series resistor connected between the powered frog and one of the stock rails will simply light the LED.
Please refer to post 76 (or so) in the thread 'Electrical Impulses: Servos to control turnouts: 4' for details of the circuitry the OP is planning to implement - it's on the next forum page.
My instincts tell me that this is too simple a "quick fix" to be general advice. Not sure how that would work for turnout frogs powered from frog juicers. Or turnouts in auto reversed zones.
 
If you have an isolated, stable, non track power signal that is used to set the turnout direction , then why not use that to control the LED indicators.
 
Andy
Reply 1
greg ciurpita gregc
Not sure how that would work for turnout frogs powered from frog juicers. Or turnouts in auto reversed zones.
the same way track is powered.
 
won't an LED/resistor be lit when connected between the rails?    And won't it not be lit when placed between the N rails of ajacent track?  won't it be lit if between the N rail and a frog powered by the S rail?  won't it be dark if between the S rail and a frog powered by the S rail?
 
simple enough to try.
 
then why not use that to control the LED indicators
it provides a reliable indication of the actual turnout position if the frog were powered thru a microswitch physically driven by the switch machine or if the switch machine is controlled at multiple locations with a button that simply toggles the turnout not a toggle switch.

greg - LaVale, MD -- my layout   --  threads of interest

Reply 0
balazs.racz
  • If you are familiar with Arduino, then the lowest-cost DCC entry is using dcc-ex.com
  • There is a flaw in the overall plan of controlling the turnouts off of DCC power using a single board. If a train fouls the turnout, creating a short, you will lose DCC power. The user needs to be able to throw the turnout in this situation by pressing the button. You always need a separate power domain to the frog vs to the control mechanism of the turnout. So you will need two separate DCC circuits to the panel board that you are designing.
Reply 0
Terry Chamberlain jterryc
There is a flaw in the overall plan of controlling the turnouts off of DCC power using a single board. If a train fouls the turnout, creating a short, you will lose DCC power. The user needs to be able to throw the turnout in this situation by pressing the button. You always need a separate power domain to the frog vs to the control mechanism of the turnout. So you will need two separate DCC circuits to the panel board that you are designing.
Completely disagree - firstly, if a locomotive is creating a short by fouling a turnout, it is extemely unlikely that trying to throw the turnout will remove the short even if the position of the locomotive will allow the points to move - your immediate action is to remove the locomotive from the track.
 
Secondly, there is never a need for two separate DCC sources feeding any block on a layout - and especially not to specifically move a turnout - nobody wires their layout in this way. You can certainly have a separate power supply to feed whatever type of switch machine you want to use (solenoid, Tortoise, or servo) but it's not normally DCC.

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

https://www.a-train-systems.co.uk/atrack

Reply 0
ACR_Forever
but it's not normally DCC
Unless, of course, the purpose of the second DCC bus is to provide power AND command signals to the turnout mechanism. Imagine having all your current detection for blocking on your layout bus, but your DCC-based I/O for turnout control, button presses, signals, etc. on their own bus.
 
Though I know of no one doing this(possibly because I 'don't get out much'), I've seen it proposed before(probably on either the JMRI or Digitrax forums), and I can see how it might be both effective, and actually serve to simplify things if one already had the components, for example from a previous layout. One could run quite a collection of things off the output of, for example, a discard Zephyr, and might not need any other power source. For a layout of a 'certain size', it might well be an excellent solution. As always, YMMV.
Reply 0
balazs.racz
You don't have to be on the ground in order to create a short. As soon as the lead locomotive crosses the gap to the powered frog, you will get a short. In this situation there are two choices:

1. Push the turnout button to correctly line the turnout.
2. Fat-finger the locomotive to get it away from there. Either lift it altogether, or push the entire train backwards across the gap.

Say you have locomotives with nice detail parts and weathering applied.
Which one do you prefer?

If the short on the frog removes the power from the turnout motor, then option 1 is no longer an option -- pressing the button does nothing.

For this specific reason, both of the clubs I am member of have separate boosters that feed the turnout controllers vs the track power. The frogs always come from track power, and the turnout motors always come from the accessory booster.
Reply 0
Ken Rice

Edited to replace context free post: I just realized I’m guilty of the classic mistake of forgetting the O.P.’s needs.  EW did state he’s using a relay to power the frog, so you make a good point Balazs.

Reply 0
Terry Chamberlain jterryc
For this specific reason, both of the clubs I am member of have separate boosters that feed the turnout controllers vs the track power. The frogs always come from track power, and the turnout motors always come from the accessory booster.
Fair enough - but using a DCC booster for accessory power is overkill, and using a simple DC supply is a lot cheaper.
 
My turnout controllers receive their commands from the main track DCC signal - just a few mA required - then drive servos to move the turnouts. The controllers and servos are powered from a separate (and low-cost) 9volt DC supply. Even if the short caused by the loco fouling the turnout trips the relevant power-breaker, the main DCC signal still gets to the turnout controller and you have the option of throwing the turnout (provided the points are free to move).

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

https://www.a-train-systems.co.uk/atrack

Reply 0
Andy Reichert
the same way track is powered.
 
won't an LED/resistor be lit when connected between the rails?    And won't it not be lit when placed between the N rails of ajacent track?  won't it be lit if between the N rail and a frog powered by the S rail?  won't it be dark if between the S rail and a frog powered by the S rail?
 
simple enough to try.
 
 
If a turnout position panel LED indicator is fed by the frog track power connection switched from either side of its DCC turnout stock rails powered via any form of auto reversing cct, then that particular LED will mis-indicate if the panel LED common return path is provided by the main non-reversing DCC bus.
 
If you use the same stock rails for the LED return actually connected at that turnout, then you need to send two wires to the panel to light the LED.
 
Andy
Reply 0
Reply