Skip to main content

Reply to "TMCC Control With Arduino"

I'm working on defining the data structures for my train project first then drop in the code.  I will run up to 4 (out of 20) trains on out 12 block main O-Gauge line, controlled by only TMCC, no Legacy (but we do have some LC+ engines).  I will detect each engine via RFID at only one point on the layout and automatically register the running trains after they all run past the ID-20 a couple of times.  So I need say 25 cheap RFID transmitters that don't look like key fobs and can go in the tenders of steam engines and inside the shells of the diesels and electrics.  Once everything is registered I will identify all trains passing the ID-20 on an LCD screen (Can you recommend a good 4-line LCD with a 12C interface?) with train info, scale speed and number of loops.  After that all works, I'll slow the train in the following block if a train is in the current block by sending TMCC commands to the following engine (already registered and tracked) using the RS-232 serial port on the TMCC base unit, while also using that port to control several other TMCC controllers (TPC,ASC,BPC, etc.) hopefully using one of the additional RS-232 serial ports on the Arduino Mega, so no RS-232 shield needed.  Will start out with sending Engine ID and relative speed commands to TMCC but later more bells and whistles (no pun intended, of course!).  That's enough of a plan to start the data structures and define some common functions (like "readRFID"). 

Since I'm re-learning C right now and never used C++ can I do all this in a year?  I think so with your help.  Thanks for helping so far.  I'll update progress and ask for more help as time goes on.  No back to the Arduino IDE.  I bought a small cheap laptop yesterday so I have a "portable Arduino IDE" now.  I loaded the native Arduino IDE on the laptop but I was using a web-based IDE on my desktop.  I gather that most of you use the native (downloaded) IDE as opposed to the web-based IDE, as the look and feel is different.

 

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

×
×
×
×
×