Wiring end loop for DCC

Trying to figure out how to wire this up so that the upper rails on both lines end up with the same (negative) polarity for a DCC system. I know I will need insulators, but do I also need a reverse loop device. I obviously will need to get the polarity correct before coming back and hitting the double crossover.

Cut gaps in both rails of both tracks someplace near the beginning of the loop section. This should leave the loop section long enough for your longest train. Power the resulting isolated loop with an auto-reverser such as the DCC Specialties’ PSXX-AR or PSXX-ARSC depending on how or if you want to control the crossover.

Charlie - Northern Colorado

Alright, thanks.

I figured I would need some type of auto reversing circuit. I’ll look into your recommendation.

I second Charlie’s suggestion. Wire the parallel tracks the same way to maintain proper polarity. It won’t matter which way you wire inside the loop since the auto-reverser will match polarities.

Rich

Thanks for your input as well.

So from my understanding, I need to make sure the isolated loop section is longer than my longest train and gap the tracks of the reversing section with offsets of 3/4" (21 mm) in two places to create the iosolated zone.

It also seems I need to power the auto-reverser from the same bus that is feeding the parallel tracks and the auto-reverser feeds the isolated loop section.

Seems simple enough in concept, but this will be my first additon of an isolated loop section so it is still new to me.

No need for the offsets. My gaps are always directly across from one another.

You are correct regarding the wiring protocol inside the reversing section. The wires that power the auto-reverser connect from the main bus directly to the input side of the auto-reverser. The wires that power the reversing section connect to the output side of the auto-reverser.

Rich

Ok, I was basing the offset gaps off of the PSXX-AR manual. Good to know it works without the offsetting.

Thanks everyone for all the useful information, I would rather clairfy what I need to do now than find out later I was wrong and blow something up.

I now need to figure out if I need to extend my isolated loop end. Right now I have about 136 inches of track inside the loop. I am running N scale (not sure if I mentioned that earlier) and the longest 60’ boxcar I have is just shy of 5" measured from coupler end to coupler end.

So using 5" for my average car length would allow me to run around 25 cars with a loco. I don’t even have 25 cars yet, so it may be enough but I could probably move the gap down the straight tracks more toward the double crossover, say 15" giving room for 6 more cars or a roughly 30 car train.

I’m not sure the 3/4" offset is necessarey but I did it because DCC Specialties recommended it. I presumed they had a reason. I can imagine, with no offset and a bit of locomotive bounce, there might be some confusion to the reverser.

Re the loop length, I have found a 25 car max length to be plenty. Although I model in HO the principles are the same. If you plan any operations at all you will find train length limited by passing track length, staging length, and/or yard track length. Added loop length is not harmful but may not add much benefit unless you just like running really long trains. Also, if you ever consider using the PSXX to control the crossover, you need to leave adequate distance between the track breaks and the crossover. In HO I leave 24-30 inches to ensure the turnout has time to operate with the trains approaching at 60 scale MPH. That distance will change with N scale and your maximum train speed but be sure to consider it.

Charlie - Northern Colorado

we’re having a problem when a train comes out of a reversing loop. looks like the PSX-AR is not reversing fast enough and the the PSX breaker the train enters is shuting down

the PSX only monitors one rail for a short. this suggests that if the gap closer to the reverse section is NOT on the rail the PSX monitors, that the AR will trip before the train gets to the 2nd offset gap the PSX monitor and the PSX won’t trip.

this may be at least one explanation for offsetting the gaps

We had the same type of loop with a double x over. We ended up having to put another AR on the X over. Some X overs are not too well insulated and the single AR would get confused and see it as a short instead. Putting the second AR for the X over solved it.

Pete.

I have a large double mainline layout with four reversing sections, each controlled by a separate PSX-AR. If you unfold my layout, it is a long narrow oval consisting of two 165’ double track mainlines. In the center are four double slips to permit trains running in either direction to cross over to another of the four tracks. Each of the four end loops is its own reversing section. All of the track, including the four double slips, between these end loops form a single non-reversing section. All of my gaps are directly across from one another on each pair of rails. I have never had a problem, not even once.

Rich

Thanks to everyone for the additional input.

I plan to keep the reversing loop separate from the crossover, the insulated gaps will be closer to the actual loop portion and the straight-away section going toward the crossover will be back to parallel track wiring well before it gets the crossover (about 96” or 8’).

Keeping the reversing loop its own entity for now and controlling the crossover separately seems to be the easier way to proceed. My loop will be over 136”, so it should be plenty long enough for a ~25 car train.

I am still evaluating the best choice of reversing circuit, the earlier suggested PSXX-AR seems well suited when also controlling a crossover, but since I am just using the loop portion alone I wonder if there are other solutions.

I would actually be interested in any sensing type circuit not relying on a short to detect the train’s presence. Maybe something using optical, IR, proximity, or some other type of detection to reverse the polarity before the train enters or leaves the loop. I seen some homemade type units in my research, but there doesn’t seem to be much in the way of off-the-shelf products like this.

You could use Circuitron Opto-Sensors.

Rich

would like to see a diagram and know if the rear rails of both mainline were the same or opposite polarity.

I think I am going to try my hand at wiring up 4 sensors to an Arduino, output that to a dual relay module and switch my loop polarity that way. I found a pretty good write up on exactly what I think I need by a guy named Rudy B, so will follow in his footsteps.

I not sure of which type of sensor will work best, so I ordered the Arduino, dual relay module, a bundle of black reed switches (match the rail ties) with magnets, 10 pack of IR modules, and 10 photo resistor sensors.

It all was only around $35 on Amazon, and if it doesn’t work out I can use the Ardunio and sensors for signaling or something else.

I was thinking the IR modules might work best, but was reading about how reaching over the layout could trigger the circuit accidentally, same as with the photo resistors. I might use them elsewhere though and they are all cheap anyway. The reed switches might work best, but the only downside is I need to place magnets on the locomotive to trigger them, but that might not be too bad.

One thing that I should mention is that I use Circuitron Opto-Sensors for occupancy detection and they do not trigger if I reach over them. They only trigger if completely covered by a locomotive or rolling stock. Otherwise, there is sufficient light to keep them deactivated.

Rich

presumably you have IR emitter/detector pairs that work by reflecting light from the bottom of a car rather than depending on room lighting. If not, IR sensors may not work with fluorescent or LED lighting. Consider using shrink tubing to better isolate the detector from the emitter

the IR sensors approach would handle cars with metal wheels as well as a loco

Correct, I ordered the IR pair modules (emitter and detector on same board) which also have a trim pot for sensitivity adjustment. I supply 5v, and it returns either a high 5V when nothing is detected or low 0V when it detects something nearby. They also have a small led right on the module for real-time fine-tuning via the on-board trimmer potentiometer.

I also ordered plain old photo-resistors in a 20-pack, which will work similar to the IR modules, except they are free-stranding components. I hook one end up to the 5V ground and when it detects light it is lower in resistance than when it is dark, so it will pull low with nothing blocking light, and when it gets dark resistance goes up and the pin will go higher. I will need to use the analog pins on the Arduino for this detection though, as it will not produce a solid high/low as the IR modules will. Also, these may not work if I have a darkened room as they rely on the ambient light for detection.

Then I also ordered reed switches which will works as above except when a magnet is nearby (glued to bottom of loco).

I figure I will experiment with each type of sensor to see which will work best. The photo-resistor would work best for easy implementation, as I drill a small hole in-between track rails and it would sense when something pass over, but as mentioned I am not sure about false positives or if room would become too dark.

The IR module might work well but would be harder to install as it is on a small circuit board. I might need to see if I can remove the LEDs and attac

After more thought on this, I am thinking reed switches might be out for detection. If power goes out while a train is traversing a gap there would be an unknown state when power comes back on and a chance of the wrong polarity being set. One of the optical solutions would detect not only the locomotive, but also any car within its range.

I also think I will need a 4-relay board, as two relays will control the polarity reversal, as outlined previously, the other two would control power to the loop. When the system first comes on, the power control relays would be normally open, so no power at all would be going to the loop. I would code in a startup delay, maybe 500-1000ms to let system initialize and determine if any of the sensors are active.

If a pair of sensors is active, set the appropriate polarity via the polarity relays before turning power on through the power relays. If no sensors are active, I would simply code one path Track A or Track B to be the default state and turn power relays on after the delay as well. The circuit would then detect which way the polarity would need to be switched once the train activated a set of sensors, as it normally would.

Thanks Rich, I will keep the Circuitron Opto-Sensors in mind. It gives me hope for the optical solution I outlined above and if the Amazon supplied detectors don’t work out so well I have a second option to look into.