Showing posts with label Digitrax. Show all posts
Showing posts with label Digitrax. Show all posts

Monday, April 21, 2025

#135 ~ Decodering

Installing, Wiring, and Programing a TCS KAM4-LED Decoder.

Train Control Systems Keep Alive Decoder for LEDs.


Hot Glued the decoder to the ceiling right in the center of the car.

The wiring is pretty straight forward except that the Red wires are attached to the trolley pole bases and the Black wires to all wheels:

Red = Trolley Poles
Black = Wheels
Orange = Motor
Grey = Motor
Blue = Lighting Power Bus (positive (+) ).
White = Headlight (-)
Yellow = Rear Headlight (-)
Green = Forward Interior Lights (-)
Purple = Rear Interior Lights (-)


Programing

With the Digitrax Zephyr




Programing the new address to #135:

1. Place car on the programing track.
2. Press 'Program Mode' on the Zephyr. until display reads as 'dir'.
3. Press 'LOCO' button. Display reads 'Ad2' for addresses 1-127, press again to display 'Ad4' for addresses 128-9999.
4. Press '1' and '3' and '5'. Display will read '0135'.
5. Press 'CV-WR'. Display will blink the 'Ad#' and then '0135'.
6. Return the car to the mainline to test it.


Some CV's need to be changed.  The Green wire (forward interior lights) defaults to the Function 1 (F1) button which is fine. But the Purple wire (rear interior lights) defaults to the F2 button which is a momentary contact button normally used for locomotive whistles (the whistle sounds when the button is held down). Which means that the interior lights on car #135 only light when the button is held down. So the purple wire needs to be remapped to the F3 button instead.

Digitrax Zephyr Function buttons. 
I need to remap the Green wire (CV 35) from function button 2 (F2) to function button 3 (F3).

Even though these trolley cars are bi-directional I have designated the open section as the forward end of the car to simplify things (the open section is easier to see into so I want to put my motorman figure in that end). 

Green wire (CV 35) = Front                Purple wire (CV 36) = Rear.


To remap the button-

Program:     CV 35 V=4  (simply confirm this value since this is the default)
                      CV 36 V=16 (from the default value of 8)


Remapping CV's is easiest using JMRI Decoder Pro

Otherwise its button mashing on the Zephyr:

1. Place car on the programing track.
2. Activate 'Program Mode' on the Zephyr. Program Mode light lights up.
3. Press the 'CV' button. Display reads 'ad2' or 'ad4'.
4. Press '3' and '6'. Display reads '0036'.
5. Press the 'CV' button again. Display still reads '0036'.
6. Press '1' and '6'. Display reads the value of '0016'.
7. Press the 'CV-WR' button. Display should blink once as it writes to the decoder.
8. Return the car to the mainline to test it.

And that ought to do it!

Yes sir!
That oughta do it!

Dandy


Monday, November 09, 2020

Layout Automation ~ JMRI

The Computer Successfully Ran the Layout!

Java Model Railroad Interface is a free, open source program that works great for programing decoders, allowing the layout to be operated from a computer,  and even automating signals and other layout operation.


Last time, I installed a couple of Digitrax BDL168 occupancy detectors. Now I need to determine if they are in fact detecting. 

I'll use Loop A to test everything out. The cars can go 'round and 'round and I should get a good idea of how the program works and what to expect for the rest of the layout.

A Digitrax PR3 connects the command station to the computer:


After connecting the computer and all of the components together, I installed JMRI onto my computer. Then I drew a diagram of Loop A with its 8 electrical blocks, and assigned the proper BDL168 detection addresses to each block. Then I ran three cars on the loop to see what happens:

And it works! As you can see above the occupied blocks are red. The signal behind it turns red. When the car exits the block the signal turns yellow. When the car is two blocks away the signal turns green.

In this video I'm controlling the arched roof car that starts on the upper left while JMRI controles the two deck roofed cars behind it. JMRI does a good job of keeping the cars separated. Starting at the 1:45 mark I bring my car to a stop and the other two cars stack up behind it. Then I start it up again. Pretty darn cool.


A lot of folks have done great things with JMRI and while I've had great success with it, after spending some serious hours tinkering with this program I've decided to invest in TrainController Railroad & Co software and give that a go instead. JMRI is a powerful and versatile program but the lack of documentation on how to use the program is the deal breaker for me. After watching some YouTubes about Traincontroller I'm quite excited about it and look forward trying it.

But the important thing here is- the layout is automationable! And that was the whole point of it in the first place!

Yes sir! Automationable!

Dandy 







Monday, October 26, 2020

BDL168's ~The Robots Are Taking Over Our Jobs!

 Transitioning the Layout to Automated Operation.


    There doesn't seem to be any definitive how-to's when it comes to automating a layout. So I'm just going to figure it out as I go.


The first logical step seems to be Block Occupancy Detection. So let's start with that.

     A couple of Digitrax BDL168 LocoNet Occupancy Detectors should work for this.  Fortunately the track on the layout is already divided into electrical blocks from its DC cab control days. Later the blocks were "tied together" electrically when the layout was converted to DCC. Now I will "untie" the blocks electrically so that each block could then be wired individually to the BDL168's.


The control panel  illustrates the location of the 32 detected blocks. Each block is labeled with a city block letter and sequence number. One BDL168 will detect 16 blocks, so two are required for this layout (How's that for a perfect fit!). The intersection itself is its own block and does not need to be detected.



Rather than trying to wire the BDL168 while it's mounted under the layout, I temporarily mounted its 44 pin connector to a spare piece of plywood and wired it right there on the workbench. The other end of the wires are connected to terminal strips where the wires from the electrical blocks will be connected.

The wires had to be pre-tinned and then hammered into the shape of the holes they slide into.


Looking up underneath the layout (tap to enlarge photo). The 44 pin connector is mounted on the underside of the tabletop and the terminal strips are mounted to a joist with wires from the blocks routing in to the bottom row. The black and white wires on the far right are 14vDC (Digitrax PS14) power supply. The green wire in the center of all those wires is "ground" from the command station and the black wire next to it is the LocoNet connection.  The BDL168 (green circuit board) is plugged in to the connector. LocoNet cables plug in at the far left, one to the command station and the other to the second BDL168. The rainbow ribbon cable is for RX4 Transponder detectors, which it turns out, are unnecessary since the computer keeps track of what cars are where, and, the decoders I'm using don't transpond! But I digress...


So I fired up the layout, some lights flashed on the BDL168's, and I ran some cars around as if nothing had changed. Which is good. It means power is going from the command station, through the BDL168's to all the blocks. But are the BDL168"s detecting? I won't know that until a computer interface is established so a computer program can read the LocoNet information.

So the next logical step seems to be establishing a computer interface with the layout.

Yes sir! Establish a computer interface!

Dandy

Tuesday, January 05, 2016

Digi for the Trax

Santa Baby Was Good To Me!

Digitrax DCS 51

It's official, the layout has gone digital. Though DC was fun, playing keep-away by only using the turnouts...:


...but it's time to start implementing realistic operation. So DCC it is!

To make a quick connect/disconnect between the command station and layout I purchased these XLR Connectors. They seem able to handle any maximum amperage the command station should dish out.

Under the layout shot. The female XLR Connector was mounted to a small project box and then wired to the layout. The male in-line XLR Connector was wired to a 16awg 3 conductor cord (positive, negative, neutral) which is wired to the Command Station.

.We are now DCC ready. Yes sir! DCC ready!

Dandy