JMRI Panel Pro Clinic NZAMRC 2008 Alex Shepherd

































- Slides: 33
JMRI Panel. Pro Clinic NZAMRC 2008 Alex Shepherd – Hamilton n n Email: alex@ajsystems. co. nz Phone: (07) 829 4441
MRR Interests • Running Trains • Scratch Building & Kits • Scenery • Operations • Building DIY Electronics
What is JMRI/Panel. Pro n JMRI – Java Model Railroad Interface – Open Source FREE SOFTWARE!!! (Source. Forge) – Single Project with Several applications n n Decoder. Pro – Simplify DCC Decoder Programming Panel. Pro – GUI Layout Display & Control – Supports several DCC Systems n Digitrax, Lenz, NCE, Easy. DCC, SPROG, Zimo & others – Runs on multiple Computers (PC, Mac, Linux, BSD Unix) – I’m one of the developers
Download & Install n Download & Install Java FIRST – http: //java. sun. com/getjava/ n Download & Install JMRI – http: //jmri. sourceforge. net/download/ n Connect your DCC System
Online Tutorials n RR-Circuits JMRI Clinics – http: //www. rr-cirkits. com/Clinics. html
Connect your DCC System n Digitrax Loco. Net – Digitrax MS 100 (don’t buy this!) – Loco. Buffer-USB n Loco. Buffer II http: //www. rr-circuits. com – TCP/IP Network via another Server PC
Connect your DCC System n Lenz (Atlas Commander) – LI 100 Serial RS 232 – LI 101 F Serial RS 232 + USB
Connect your DCC System n SPROG - RS 232 Cable to SPROG n NCE - RS 232 Cable to Commands Station n Easy DCC - RS 232 Cable to Commands Station n C/MRI Bruce Chubb Model Railroad Interface – RS 232 to RS 422 Adaptor n Intellibox – RS 232 Cable to Command Station
Configure JMRI Comms
Configure JMRI Comms
Panel. Pro n GUI Display and Control of Layout – Control of Turnouts - Routes – CTC Panel – Signalling (ABS etc) n Simple Signal Logic – Execute User Written Jython Scripts n Routes n Play Sounds n Custom Automation Logic
Panel. Pro
Panel. Pro Signalling n What do I need to get started? – DCC System Connection to PC – Know Position of Turnouts n Position Feedback n DCC Turnout Accessory Decoder - remember last command position – Block Occupancy Detector n Draw Current (Motor & Resistive Wheelsets) – DCC Signalling Accessory Decoder
DCC Turnout Acc Decoder n Digitrax – – – n DS 54 DS 64 DS 52 NCE – Switch. It – Snap. It n Lenz – LS 110 – LS 150
Block Occupancy Detector n Digitrax – BDL 168 – SE 8 c + BD 4 n NCE – AIU + BD-20 n Lenz – LB 101 – LR 101
DCC Signal Decoders n Digitrax – SE 8 c – DS 54 – DS 64 n CML – SIG 10 n Team Digital – SIC 24 n RR-Circuits – Tower Controller
My DIY Components n MERG ACC 4 DCC Turnout Decoder
My DIY Components n Embedded. Loco. Net Loco. BOD-16
My DIY Components n n Open. DCC Signal. Decoder Not Hard – – – – – 4 x Diodes 3 x Resistors 3 x Capacitors 1 x LED 1 x Push Button 1 x 5 V Regulator 1 x ATTiny 2313 1 x Jumper Vero Board 8 x Resistors (output)
Open. DCC Signal. Decoder
My DIY Components My Arduino DCC Decoder n Controls Servos n Controls LEDs n
What is Arduino? n n Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs.
What is Arduino? http: //www. arduino. cc n Atmel AVR Mega 168 Boards n
n http: //moderndevice. com/contact. shtml
What can Arduino do? Simplified C/C++ Programming n Monitor Switches, Various Sensors etc n Control Servos, LEDs, DC Motors, Stepper Motors etc n Communicate with PCs n Used by artists and other non-software developers for visual electronic effects n
Arduino Nmra. Dcc Library Software Library used in the Arduino environment to decode DCC packets and call simple User Written functions n Accessory Decoder Packet n void notify. Dcc. Acc. State( uint 16_t Addr, uint 16_t Board. Addr, uint 8_t Output. Addr, uint 8_t State ) n Signal Decoder Packet void notify. Dcc. Sig. State( uint 16_t Addr, uint 8_t State) n Supports ALL CV Read/Write Methods
Demo Layout
Build Demo Panel n Control Turnouts – Route Tables n Display Block Occupancy – Sensor Tables n Control Signals – Signal Tables – Simple Signal Logic
Future Plans n NCE Cab Bus DIY AIU Block Occupancy Detector – (Ask me about it) n Small 4 Output LED Decoder – Almost working – ran out of time for convention n n Small 8 Output LED Decoder for Digitrax Masts Loco. Net Arduino Library http: //www. opendcc. org http: //embeddedloconet. sourceforge. net http: //jmri. sourceforge. net/download
Useful Information n JMRI Online Help – http: //jmri. sourceforge. net n RR-Circuits JMRI Clinics – http: //www. rr-cirkits. com/Clinics. html n Open. DCC – http: //www. opendcc. org n Arduino – http: //www. arduino. cc n Merg – http: //www. merg. org. uk
Question Time n JMRI Questions n New Feature Requests?
The End n Try it for yourself n If you have any questions – Email: alex@ajsystems. co. nz – Phone: (07) 829 4441