|Skill Level||Area of Focus||Operating System|
This project shows you how to configure the DragonBoard 410c to allow it to control a model railway using DCC (Digital Command and Control) and open source JMRI software, via a USB/DCC interface. In this particular case, the focus is on controlling the track and signaling, but the codebase also includes the ability to program DCC locomotives.
Build / Assembly Instructions
Materials Required / Parts List / Tools
- SPROG II or 3 USB to DCC convertor
- 14v 4 A dc power supply ST-C-070-14000400
(Note – this voltage is suitable for OO/HO – a lower voltage should suffice for N gauge)
- Monitor with HDMI cable
- LH14Q Box for DragonBoard
- L47AY 96 Boards compatible power connector
- USB Keyboard & mouse
- USB min-hub and USB cables
- Model railway to control
- DCC fitted signals, turnouts etc.
- Sundries – microSDHC card with SDHC adaptor, M2.5 nylon pillars & screws, 24/0.2 wire
Source Code / Source Examples / Application Executable
Build / Assembly
- Modify the box to fit the DragonBoard 410c. It can be fitted to the lid, with the first pair of holes 20mm from the edge to allow for the connectors, and then cut a slot on the main edge to clear the connectors, and a smaller one on the rear for the power connector.
Mount the board using the M2.5 screws and pillars. (Note: alternatively it may be possible to get a suitable box 3D printed).
- Unpack the DragonBoard 410c and optionally check it with its initial Android software (all DIP switches off), and supplied power supply (via a mains adaptor as necessary). Use a modern HDMI TV or monitor for this step..
- Create a linux (Alip) boot micro SDHC chip as described here on a Windows or Linux PC, (with the micro SDHC mounted in an SDHC holder)
- Insert the microSDHC into the DragonBoard and power it up with DIP SW 2 On.
- Linux will now be loaded onto the DB in place of Android. Once the power up sequence has completed, you can shut down and turn off the board. Remove the SDHC and turn off SW2.
- At this point you can also swap the HDMI TV for your intended monitor.
- Power up the DB and configure the Wi-Fi to suit your network.
- Set up the hardware as shown:
- Use the browser to go to the JMRI site. Download the .tgz file, and place it in the home/linaro directory using the file manager.
- Click on the TGZ file and extract the contents (keeping the directory structure).
- Optionally configure a shortcut to the script files that you will need (in particular DecoderPro), or use the file manager to open a terminal window (in home/linaro/JMRI) from which you can start the script.
- Note (1): It should be possible to replace the keyboard and mouse with Bluetooth versions, in which case the hub will not be required.
- Note (2): For tidiness/compactness, it should also be possible to use a touch screen in place of the monitor, mouse and keyboard.
- To run the code open a terminal window and start the DecoderPro script. On the first time you run it, you will need to set your preference – set SPROG DCC for the system type and DCC Command Station for the device.
- The screen should enter the DecoderPro screen. Turn on the SPROG output, with the “power switch” on the top right of the screen. This will go green, and one of the LEDs on the SPROG will start to flash, showing that the output is “live”.
- From this point you can configure DCC locomotives, or open PanelPro to create a layout panel via a “drag and drop” editor. This will allow you to control signals and turnouts, by clicking on their respective symbols on the screen.
- Use the tables options to enter signal and point DCC assignments and include them on the panel (numerous different signaling system styles are supported, and also various DCC decoders).
- Once you have set up your panel plan, clicking on each device with the mouse will change it to the next aspect or switch the route.
- Be sure to save the panel .xml file using a name of your choice before shutting down at the end of your session. This file is kept in .JMRI, and will be needed if/when you update to the next release.