Showing posts with label block occupancy detection. Show all posts
Showing posts with label block occupancy detection. Show all posts

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