{"id":357,"date":"2016-01-15T07:15:47","date_gmt":"2016-01-15T12:15:47","guid":{"rendered":"http:\/\/www.bobsown.net\/?p=357"},"modified":"2016-01-15T11:55:12","modified_gmt":"2016-01-15T16:55:12","slug":"using-jmri-for-my-trains","status":"publish","type":"post","link":"https:\/\/www.bobsown.net\/?p=357","title":{"rendered":"Using JMRI for my trains"},"content":{"rendered":"<p>I&#8217;ve been trying to control my garden railroad by computer for years. I have a test layout in my living room. I&#8217;ve installed the Java Model Railroad Interface (<a href=\"http:\/\/jmri.sourceforge.net\">JMRI<\/a>) and now have it running 4 trains.\u00a0 Each train can be run independent of the others.\u00a0 Yes you can cause a train wreck (Uncle Fester would be proud.)<\/p>\n<p>My passenger train is drawn by a R\u00fcgen steam loco from LGB.\u00a0 The decoder was installed when it was built around 2000. I haven&#8217;t been able to modify the control variables, so it has 3 running speeds: creep, fast and fly off the track.<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-357-1\" width=\"584\" height=\"332\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/runningTrains.mp4?_=1\" \/><a href=\"https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/runningTrains.mp4\">https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/runningTrains.mp4<\/a><\/video><\/div>\n<p><!--more--><\/p>\n<p>My trains are controlled by DCC decoders (see <a href=\"http:\/\/tonystrains.com\/tonys-dcc-primer\/\" target=\"_blank\">Tony&#8217;s DCC Primer<\/a> for a good introduction to Digital Command Control.) I&#8217;m using\u00a0 <a href=\"http:\/\/www.digitrax.com\/\" target=\"_blank\">Digitrax<\/a> command stations and stationary decoders.\u00a0 I can control all my trains and turnouts through a hand held controller.<\/p>\n<p>JMRI gives me the ability to control everything through a computer.\u00a0 It will run on Windows, Apple, Linux or even Raspberry PI computers.\u00a0 I&#8217;m running on OpenSUSE linux.<\/p>\n<p>Every DCC decoder has a number of Control Variables (CVs) that adjust things like speed curves and which controller buttons affect the lights and sound, etc.\u00a0 JMRI&#8217;s DecoderPro was written to read and set them from a graphic interface on a computer.<\/p>\n<p>The first thing DecoderPro does is to try to identify which decoder is in this locomotive.\u00a0 Each decoder has\u00a0 CVs to identify the manufacturer and version number.\u00a0 Unfortunately for me, LGB decoders (made by Massoth) all have the same manufacturer number and the same range of version numbers.\u00a0 So I had to guess.<\/p>\n<p>Other modules include PanelPro which creates panels like what is used by a dispatcher in the real world.<\/p>\n<p>This is what I see when I run the trains.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-364\" src=\"https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/jmri-panels-512x252.jpeg\" alt=\"jmri-panels\" width=\"512\" height=\"252\" srcset=\"https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/jmri-panels-512x252.jpeg 512w, https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/jmri-panels-768x377.jpeg 768w, https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/jmri-panels.jpeg 1024w, https:\/\/www.bobsown.net\/wp-content\/uploads\/2016\/01\/jmri-panels-500x246.jpeg 500w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/p>\n<p>In the upper left are the throttles for each of the trains. Each controls the direction and speed of a train and can be used to blow the horn or turn the lights on\/off.\u00a0 Below them is a trace of the DCC commands.<\/p>\n<p>An animated diagram of the layout is in the upper right.\u00a0 The bright red lights are supposed to be occupancy indicators.\u00a0 The dark blue indicators are connected to physical sensors which are activated when a locomotive with a magnet passes over them.\u00a0 The sensors are reed switches normally used by home alarm systems for doors. When one is activated it can turn occupancy lights on or off and control turnouts as needed.<\/p>\n<p>The levers below the layout diagram control the turnouts.\u00a0 When they are changed, the physical turnout is changed as is its representation in the diagram above.<\/p>\n<p>The next phase will involve DispatcherPro.\u00a0 It will let me set up a schedule for all the trains and run them as a real railroad would.<\/p>\n<p>The end goal is to move all this out to the garden railroad in the back yard and let the trains run with minimal intervention.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying to control my garden railroad by computer for years. I have a test layout in my living room. I&#8217;ve installed the Java Model Railroad Interface (JMRI) and now have it running 4 trains.\u00a0 Each train can be &hellip; <a href=\"https:\/\/www.bobsown.net\/?p=357\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[24],"tags":[],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-garden-railroad"],"_links":{"self":[{"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=357"}],"version-history":[{"count":6,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions\/365"}],"wp:attachment":[{"href":"https:\/\/www.bobsown.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bobsown.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}