Skip to main content

A few people have asked if the Python train control software I've been building could be used to build a physical train controller. As my goal was to build small panels to control operating accessories, switches, and track power, I hadn't really considered doing so.

My layout is basically U-shaped with a nice location in the center where a panel that would allow you to operate engines would be right at home. As my software supports all of the TMCC and Legacy commands, I've been able to control specific engines for some time now from a command line (set speed, direction, momentum, ring bells, blow horns, etc.) All that was missing was a way to key in an engine/train number and some sort of visual display...

Over the weekend, I wrote code to support a 4x4 matrix keypad, as shown below,IMG_1111

and a 2 line LCD screen. I can now key in the engine I want to control and see information about it on the LCD screen (the info was gleaned from reading the engine roster on my Base 3). I can read the TMCC ID, as entered on the keypad, and then send engine-specific commands.

Over the next few days, I'll be integrating this code with my support for rotary encoders and push buttons. My goal is to build a small panel that lets me enter an Engine (or Train) TMCC ID, and control speed, direction, couplers, horn, bell, reset, and start up/shut down. I'll also add a nice big red Halt button to do an emergency stop.

Pictures to com, but this is turning out to be easier than I thought!

  -- Dave

Attachments

Images (1)
  • IMG_1111
Original Post

Add Reply

Post

OGR Publishing, Inc., 1310 Eastside Centre Ct, Ste 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
Link copied to your clipboard.
×
×