JMRI PanelPro Clinic NZAMRC 2008 Alex Shepherd – Hamilton Phone: (07) Phone: (07)
MRR Interests Running Trains Scratch Building & Kits Scenery Operations Building DIY Electronics
What is JMRI/PanelPro JMRI – Java Model Railroad Interface JMRI – Java Model Railroad Interface –Open Source FREE SOFTWARE!!! (SourceForge) –Single Project with Several applications DecoderPro – Simplify DCC Decoder Programming DecoderPro – Simplify DCC Decoder Programming PanelPro – GUI Layout Display & Control PanelPro – GUI Layout Display & Control –Supports several DCC Systems Digitrax, Lenz, NCE, EasyDCC, SPROG, Zimo & others Digitrax, Lenz, NCE, EasyDCC, SPROG, Zimo & others –Runs on multiple Computers (PC, Mac, Linux, BSD Unix) –I’m one of the developers
Download & Install Download & Install Java FIRST Download & Install Java FIRST – Download & Install JMRI Download & Install JMRI – Connect your DCC System Connect your DCC System
Online Tutorials RR-Circuits JMRI Clinics RR-Circuits JMRI Clinics –
Connect your DCC System Digitrax LocoNet Digitrax LocoNet –Digitrax MS100 (don’t buy this!) –LocoBuffer-USB LocoBuffer II LocoBuffer II –TCP/IP Network via another Server PC
Connect your DCC System Lenz (Atlas Commander) Lenz (Atlas Commander) –LI100 Serial RS232 –LI101F Serial RS232 + USB
Connect your DCC System SPROG - RS232 Cable to SPROG SPROG - RS232 Cable to SPROG NCE - RS232 Cable to Commands Station NCE - RS232 Cable to Commands Station Easy DCC - RS232 Cable to Commands Station Easy DCC - RS232 Cable to Commands Station C/MRI Bruce Chubb Model Railroad Interface C/MRI Bruce Chubb Model Railroad Interface –RS232 to RS422 Adaptor Intellibox – RS232 Cable to Command Station Intellibox – RS232 Cable to Command Station
Configure JMRI Comms
PanelPro GUI Display and Control of Layout GUI Display and Control of Layout –Control of Turnouts - Routes –CTC Panel –Signalling (ABS etc) Simple Signal Logic Simple Signal Logic –Execute User Written Jython Scripts Routes Routes Play Sounds Play Sounds Custom Automation Logic Custom Automation Logic
PanelPro
PanelPro Signalling What do I need to get started? What do I need to get started? –DCC System Connection to PC –Know Position of Turnouts Position Feedback Position Feedback DCC Turnout Accessory Decoder - remember last command position DCC Turnout Accessory Decoder - remember last command position –Block Occupancy Detector Draw Current (Motor & Resistive Wheelsets) Draw Current (Motor & Resistive Wheelsets) –DCC Signalling Accessory Decoder
DCC Turnout Acc Decoder Digitrax Digitrax –DS54 –DS64 –DS52 NCE NCE –SwitchIt –SnapIt Lenz Lenz –LS110 –LS150
Block Occupancy Detector Digitrax Digitrax –BDL168 –SE8c + BD4 NCE NCE –AIU + BD-20 Lenz Lenz –LB101 –LR101
DCC Signal Decoders Digitrax Digitrax –SE8c –DS54 –DS64 CML CML –SIG10 Team Digital Team Digital –SIC24 RR-Circuits RR-Circuits –Tower Controller
My DIY Components MERG ACC4 DCC Turnout Decoder MERG ACC4 DCC Turnout Decoder
My DIY Components EmbeddedLocoNet LocoBOD-16 EmbeddedLocoNet LocoBOD-16
My DIY Components OpenDCC SignalDecoder OpenDCC SignalDecoder Not Hard Not Hard –4 x Diodes –3 x Resistors –3 x Capacitors –1 x LED –1 x Push Button –1 x 5V Regulator –1 x ATTiny2313 –1 x Jumper –Vero Board –8 x Resistors (output)
OpenDCC SignalDecoder
My DIY Components My Arduino DCC Decoder My Arduino DCC Decoder Controls Servos Controls Servos Controls LEDs Controls LEDs
What is Arduino? 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 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. 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? Atmel AVR Mega168 Boards Atmel AVR Mega168 Boards
What can Arduino do? Simplified C/C++ Programming Simplified C/C++ Programming Monitor Switches, Various Sensors etc Monitor Switches, Various Sensors etc Control Servos, LEDs, DC Motors, Stepper Motors etc Control Servos, LEDs, DC Motors, Stepper Motors etc Communicate with PCs Communicate with PCs Used by artists and other non-software developers for visual electronic effects Used by artists and other non-software developers for visual electronic effects
Arduino NmraDcc Library Software Library used in the Arduino environment to decode DCC packets and call simple User Written functions Software Library used in the Arduino environment to decode DCC packets and call simple User Written functions Accessory Decoder Packet Accessory Decoder Packet void notifyDccAccState( uint16_t Addr, uint16_t BoardAddr, uint8_t OutputAddr, uint8_t State ) Signal Decoder Packet Signal Decoder Packet void notifyDccSigState( uint16_t Addr, uint8_t State) Supports ALL CV Read/Write Methods Supports ALL CV Read/Write Methods
Demo Layout
Build Demo Panel Control Turnouts Control Turnouts –Route Tables Display Block Occupancy Display Block Occupancy –Sensor Tables Control Signals Control Signals –Signal Tables –Simple Signal Logic
Future Plans NCE Cab Bus DIY AIU Block Occupancy Detector NCE Cab Bus DIY AIU Block Occupancy Detector –(Ask me about it) Small 4 Output LED Decoder Small 4 Output LED Decoder –Almost working – ran out of time for convention Small 8 Output LED Decoder for Digitrax Masts Small 8 Output LED Decoder for Digitrax Masts LocoNet Arduino Library LocoNet Arduino Library
Useful Information JMRI Online Help JMRI Online Help – RR-Circuits JMRI Clinics RR-Circuits JMRI Clinics – OpenDCC OpenDCC – Arduino Arduino – Merg Merg –
Question Time JMRI Questions JMRI Questions New Feature Requests? New Feature Requests?
The End Try it for yourself Try it for yourself If you have any questions If you have any questions – –Phone: (07)