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
Terry Chamberlain jterryc
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.
Provided you always connect to those parts of the stock rails connected to the main track, and NOT the reversing section, then the LED indication of the turnout position (ie. the frog polarity) will remain correct regardless of the polarity (phase) of the rails in the reversing section - and you only need a single wire from the turnout frog to the panel LED. The rail connections to the panel can be taken from any point on the main track.

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
Provided you always connect to those parts of the stock rails connected to the main track, and NOT the reversing section, then the LED indication of the turnout position (ie. the frog polarity) will remain correct regardless of the polarity (phase) of the rails in the reversing section - and you only need a single wire from the turnout frog to the panel LED. The rail connections to the panel can be taken from any point on the main track.
So you are saying that a local frog polarity relative to the main stock rails stays constant, even in a reversing section when the local stock rails are reversed. A bit difficult to run a loco thru the local turnout during the reversed time, if that's the case.
 
Andy
Reply 0
ctxmf74
"A possibly simpler solution would be to invest a little more in an NCE Power Cab system"
 
Yeah, A power cab or a zephyr is handy to have for a programming or test track at the work bench,and as noted might be all that's needed for a small to medium sized layout....DaveB
Reply 1
greg ciurpita gregc
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.
yes, you may need 3 wires (2 leds) if the turnout is controlled by a reverser and the nearby bus is not controlled by the reverser. Of course the extra wires from the reverser bus can be used by other turnouts within the reverse section
 
i hope the diagram below is clear.  The N/S connections need to be consistent with how the turnout stock rails are powered.
 
[nsFrog]

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

Reply 0
eastwind
If your turnout is part of a reversing section, then the two power inputs to the relay that powers the frog need to be from that reversing section. Is the argument that in that case if you power the leds from the same reversing bus that the the leds will display the wrong color when the bus is 'reversed'?
 
If so, then the solution is to just fall back to the simplier solution of powering the control panel leds for a reversing section from the arduino normally, with arduino vcc and ground and lower value resistors and using an extra arduino data pin. That gives you 8 reversing-section turnouts that you can control from one aruduino+pca+pca+relays "town".
 
@balazs.racz
 
Check out the comments thread for the 4th installment of Joe's electrical impulses series. There is an arduino and two connected pca boards. All are powered by a separate wall-wart power supply, not DCC. The push buttons are hooked to the arduino. The servos are hooked to the first pca board and are driven by it. The only connection for dcc is for frog power. The second pca board drives a power relay, which is used to switch (connect) one of the two DCC bus lines to the 'frog wire'. The leds at the control panel are being controlled by the 'frog wire', as shown in Greg's diagram immedately above this post.
 
So if dcc shuts down, you can still throw the turnout using the push button, the arduino and the pca boards and their separate power supplied by the wall wart. The only thing is the leds on the control panel will be dark. That makes it hard to determine that you ran into the turnout from the wrong direction, to be sure, but that's the compromise you make when you decide to save the cost of a frog juicer per turnout and still have live frogs - no matter whether you control power to those frogs with a relay, a microswitch, or via a DPDT toggle switch.

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

Reply 1
eastwind
If you are familiar with Arduino, then the lowest-cost DCC entry is using dcc-ex.com
I will check this out, it sounds like a good match for what I have and where I'm at.

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

Reply 0
eastwind
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.
In this set-up, with powered frogs whose polarity is set by a relay, when you start to run into a turnout thrown against you from the diverging end, when the leading metal wheel bridges the gap between the turnout and the rail leading to it, you will get a short and shut down. (so don't do that). Throwing the turnout will cause the frog polarity to be corrected, so that does fix the problem. There's no derailment at that point, so you don't need to pick up the loco.
 
Unless you have keep-alive in the loco and the loco drives past that point under its own power and into the mis-thrown points and derails.
 
Edit: PS: but that is the case for all of the techniques discussed in electrical impulses for powering frogs without a juicer. To avoid that scenario, you have to pay for frog juicers.

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

Reply 0
Andy Reichert
Frog juicers don't solve problems of entering the heel of a wrongly set turnout, they just move the issue about 6 inches further along to then derailing at the wrongly set points. One of the first rules of model railroading is usually don't drive into an obstacle. Same as on 1:1 scale highways. 😊
 
I've only come across two situations where I'd consider needing a frog juicer to power a frog, instead of using the turnout's own control "switch".
 
I. The frog of a trailing only trolley street turnout that just has converging rail slots and no moving points. Ditto for RR trailing turnouts with sprung points.
  1. The pair of frogs in a non- signaled crossing in the middle of nowhere., where there are no other turnout settings selecting which route is open.
Optional situation 3. is where turnouts are hand thrown manually and installing a mechanical frog power switch is economically and/or mechanically relatively more difficult . In my case (and maybe with Joe's Servo adventure too), adding a switch motor is cheaper than having a manual throw and juicer.
 
Andy
Reply 2
Alex Wood AlexW
The LT-50 is the ideal workbench/test/programming system. It's super cheap at $150, it supports RailCom and a full-current programming track mode, and it has a built-in throttle. You do need to add an LCC to USB interface, but that's the case for the PowerCab too, which is more expensive and doesn't have RailCom.

Modeling the modern era freelanced G&W Connecticut Northern

Reply 0
greg ciurpita gregc
but that is the case for all of the techniques discussed in electrical impulses for powering frogs without a juicer. To avoid that scenario, you have to pay for frog juicers.
not quite sure i understand this -- "To avoid this scenario, you have to pay for frog juicers".
 
it been conventional for the switch machines to also control electrical switches:  
  • The Tortoise Switch machine has a DPDT switch, where it's common for one pole to power the frog and the other pole to control a signal or provide feedback to a (CTC) control system.
  • same for modern commercial servo switch machines such as the one from Walthers
  • I've also turnouts controlled seen manually with push rods where the rods move the handle of a DPDT toggle switch that not only provide the electriical switch described above as well as the spring pressure to hold the points in position.
  • and its common for DIYer servo switch machines to have a pair of microswitches
 
[95705860]

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

Reply 1
eastwind
@Greg, I understood Andy to mean that to avoid a short when you run into the frog from the wrong direction you need a juicer. (And technically it doesn't avoid the short either, just corrects for it). And he pointed out that it just converts the problem from a short to a derailment when you hit the mis-aligned points. So we don't really need to worry about frog juicers in this thread, the decision not to use them is already baked into the conversation. I'm taking the 'don't do that' approach to those operating mistakes. We'll see how that works out when I'm running trains.
 
The first bit of track that I'm building is my reverse loop, which is slightly more complicated than a typical single reverse loop because I made two overlapping reverse loops at one point in the around-the-walls layout, so I can reverse trains traveling either direction around the room. There are six turnouts involved, and a couple of them will be in the reversing section.
 
So  @Andy Reichert 's observation that this scheme has issues when the polarity of the DCC bus powering the track is flipped is important. I believe the result is that half the time my two-color leds will be displaying the wrong color, i.e. mis-indicating the state of the turnout.
 
To prove that to myself, I'd have to buy a DCC booster. But I can also just avoid the situation by falling back to a more typical led-powering design for the reverse loop. What I think I'll do is allocate one arduino+pca+pca board (one "town") to this reverse loop region and its six turnouts. That's well below the 16 I could run from a single arduino, but it frees up a bunch of extra pins on the arduino so that I can power the leds from those extra pins directly rather than using this power-from-DCC controlled by the frog wire output trick.
 
This has the benefit of putting off the need to get DCC a little while, making this thread kind of moot for now. Still useful for my future though. Because before I get to deploying arduinos for my second 'town', I want to give it a try.
 
As for DCC, I'm attracted to the DIY DCC versions, but I'm worried that a booster with the necessary power to run several trains is going to be more EE than I can handle.
 
My order for leds & resistors from Digikey got held up. I ordered last friday, but they didn't like my credit card due to billing/shipping address mismatch. I got that straightened out and the order shipped and to arrive Monday. That's still very good for US->Mexico package delivery. For free international shipping you have to order $100, and I did, by buying 25 each of lots of different resistor strengths. I covered the 100-10k range well (as suggested above) and bought lots of 100 leds of the types I wanted, so I just cleared $100. With luck, that will fix me up for a while.

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

Reply 0
Terry Chamberlain jterryc
As for DCC, I'm attracted to the DIY DCC versions, but I'm worried that a booster with the necessary power to run several trains is going to be more EE than I can handle.
Although I am sure that all the DCC-EX users out there can give you more accurate information, as an electronics engineer (and hobbyist) I had a quick look at what would be involved in putting together the DCC-EX DIY system.  I would certainly not be concerned about not having enough electronics knowledge to build a DCC-EX system - it's just a case of selecting the appropriate bits and plugging them together, and there is excellent guidance on how to do that on the DCC-EX website.
 
However, I also had a look at the costs of buying all the necessary components, including power supplies, and as far as I can tell the total cost is going to be around $100 to $150 - ordering from US suppliers - ordering from China might save a bit on this.
 
As I said earlier in this thread, my recommendation would still be to go for the NCE Power Cab which, at under $200, would give you similar capabilities to the basic DCC-EX system, with the extra facility of a handheld controller - and is plug-and-play straight out of the box (again, I have no commercial interest in NCE other than as a very satisfied customer and user) - but, as always, you need to do what suits your inclinations and interests. - and have fun!

Terry Chamberlain

Back_320.png    A Free Windows application for all NCE Systems

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

Reply 1
greg ciurpita gregc
I believe the result is that half the time my two-color leds will be displaying the wrong color
not true if wired correctly to the reverser bus

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

Reply 0
Andy Reichert
not true if wired correctly to the reverser bus
And, as already mentioned, hence two wires minimum for those LEDs to the control panel(s). Or a high risk of confusingly having multiple DCC buses going to all the relevant panels for the LED return paths.
 
Andy
Reply 0
greg ciurpita gregc
Or a high of risk of confusingly
don't understand this choice of words.    Clearly, mis-wiring something is not confusing, it's wrong and won't work properly.

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

Reply 0
eastwind
The design is for buses and control panels along the front of the layout. The dual control panels for the reversing section will be at either end of it, so the reverser bus will be right there. I have set blue/white as the colors for feeders and DCC bus wires in a reversing section (vs black/red normally). Should be no confusion.
 
Here's the section of track plan marked up with the reversing part highlighted, with the control panel locations marked.
 
The blob loop is open in the middle (crawl under), so the alternate location for the electronics town would be harder to reach, but a bit more central. I think I'll probably keep it on the outside behind or next to the first control panel.
 
reverse loop option 2.jpg
 
So yes, I have to extend the reverser bus to the second control panel.
The second control panel has two push buttons and leds.
 
I have potential confusion because those push buttons take three wires, black, red and yellow, and black and red are used for dcc and feeders, but I can twist the three wires in making the cable which will help with possible confusion. Or I can get confusing and use one common red and one common black and two yellow wires for the two push buttons to save some wire. Plus blue and white reverser power bus wires, not twisted with the push button wires, and a 'frog' wire to drive the leds. That's 9 wires total, worst case. The distance between the two control panels is about 8 feet.
 
I'll run DCC power buses around the outside (red/black and blue/white) and servo control wires and frog wires to all six turnouts shown.
The crossing needs its own reverser for the diamond that's fed from the main reverser bus.

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

Reply 0
greg ciurpita gregc
@eastwind  is this correct?
 
there's a turnout inside the reversing section that you want to control from 2 locations on the layout.  There's a momentary switch and 2 LEDs at each location.  there's also an Arduino and some relays.   what about the othe 3 turnouts i see in the diagram?
 
(i'll defer a discusson on the amount of wiring until i understand all the components ... and location of the multiple panels)

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

Reply 0
eastwind
Here's a version with the turnouts numbered and without the highlighting for the reverse loop so the track is clearer.
 
reverse loop.png
 
 
There would be three states that the six turnouts could be in as a set. Here's a table. I hope it's clear for the curved turnouts which route is considered 'diverging'. Turnouts #4 and #6 are straight turntouts, and diverging is the non-straight route for those two. For #2, #3 and #5 diverging is the larger radius, for #1 it's the smaller (crossover) route.
 
forward travel is on the left track of double track
state:normal 1reversing 2              reversing 3
no reversingenter from Nenter from S
exit to Nexit to S
TO#
1Normalnot used (N)divering
2not used (N)normaldiverging
3normalnot used (N)diverging
4normaldivergingnot used (N)
5normaldivergingnot used (N)
6not used (N)normaldiverging
__
routes:  from S: 1, 5  from S: hold at 1*from S: 1, 2, 6, 3
from N: 4, 3from N: 4, 2, 6, 5from N: hold at 4
 
edit: corrections from original post marked by *
 
There are two momentary push buttons at control panel 1. One selects state 1 (all normal), the other would be pressed by an operator approaching from the N who wants to reverse direction, and would select state 2. State 3 is not selectable from control panel 1.
 
At control panel 2 there are two momentary push buttons. One selects state 1 (all normal), the other would be pressed by an operator approaching from the S who wants to reverse direction, and would select state 3. State 2 is not selectable from control panel 2.
 
To go from state 1 to 2 or 2 to 1, the arduino throws turnouts 4 and 5.
To go from state 1 to 3 or 3 to 1, the arduino throws turnouts 1, 2, 3, and 6.
To go from state 2 to 3 or 3 to 2, the arduino throws all turnouts.
 
The code can be made to sequence turnout throwing rather than trying to do them all at once if needed.
 
Turnouts #2 and #6 are part of the reversing section. (there was an earlier thread where a shorter version of the reversing section was discussed, one that extended only from the heel end of these two turnouts and half the circumference of the circle on the inside track, but the consensus was to extend the reversing section to the crossing to make it longer). They need to be powered from the reversing bus and the leds for them on the control panels need to be powered between the reversing bus and their frog.
 
Both control panels will show all six turnouts and have leds for all of them, so both panels will need both reversing and regular bus power available.
 
The above is if I go down the path of powering the leds from the DCC bus. I can also just power the leds from available pins on the arduino. Since I have the pins and don't need to deal with other turnouts from this 'town', it seems simpler to just use the extra pins instead of trying to power the leds from dcc. I haven't figured out how many extra pins that would be for sure, there are 6 turnouts and 2 leds for each one on each panel, so that's 24 leds total, but I believe there would only need to be 6 pins used for led control at most and maybe some can be combined once I make the state table. But with 6 for leds plus 3 for the four pushbuttons, I would still have 7 pins left unused.
 

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

Reply 0
greg ciurpita gregc
it seems simpler to just use the extra pins instead of trying to power the leds from dcc
didn't you suggest using the spare relay contacts to drive the LEDs.  
 
i agree that you should just have switches to select routes instead of needing to indivual align multiple turnouts

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

Reply 0
eastwind
didn't you suggest using the spare relay contacts to drive the LEDs.  
 
i agree that you should just have switches to select routes instead of needing to indivual align multiple turnouts
No, I hadn't. I've bought a bag of individual relays, I don't have any of the six-relay boards, and I need six for this town, so while I could get one, that still wouldn't give me any spares to use for leds.
 
The push buttons as described above seem pretty simple to me - when you come to the area, you make your choice between reversing or not and press the appropriate button, then wait for the leds to indicate you have the authority to move forward.
 
I could consider something for an operator to press upon exit, in case multiple operators are coming from opposite directions, so it's understood when the other operator can press a button. Some kind of locking thing that you have to unlock on exit. Or I could just make a protocol that you press the 'normal route' pushbutton on exiting the region. Or I could add more leds to the panel to indicate when that panel is logically locked out.
 
Anyone think that sort of thing is necessary? Any suggestions on the means? 99% of the time it will be just me operating, so 99% of the time I don't need any locking, so I hadn't planned any.

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

Reply 0
eastwind
An update on this thread from a month an a half ago.
 
I looked into DCC++ EX and discovered that it was a lot simpler to build than I thought it would be, with fewer parts, for a basic dcc command station. It's really a plug & play build, no soldering required even. In all the posts I've read boosting DCC++ nobody has ever mentioned that.
 
I already have on hand an extra UNO, a power supply for it, and a 3-24v variable power supply for the motor shield, so all I need to buy is an L298P motor shield ($15) and I'll have DCC output power that I can use for testing leds. Someday I'll have to add wifi to the bench one so I can use a phone throttle for testing, but right now all I need is the DCC waveform to test powering leds and balancing led brightness and adjusting resistor values.
 
The motor shield will arrive in a week and I'll be in business. I see this as a permanent test track workbench solution, and maybe what I'll use for the layout.
 
If I decide to use DCC++EX for the layout I'll buy better parts for that one, a EX‑MotorShield8874, wifi capability and probably an arduino Mega instead of Uno, but the simple one will be great for a bench test setup.
 
 

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

Reply 1
Reply