Skip to content
johnmholmes edited this page Nov 11, 2021 · 6 revisions

Welcome to the Cmri-Nano-Turnout-Rs485 wiki! This has been setup to allow myself to learn github and show the use of the "TTL to RS485 bi-directional module with Jmri and Cmri and Arduino Nano. i had been using the cheaper 3 wire versions of the TTL to RS485 3 wire versions which require the use of Auto485 Arduino Library and also the 3rd wire need to be connected to pin 2 on the Arduino. I had a few failures with these units during setup so i decided to try the Bi-directional version. This was not a straight forward thing for me as i could not find any information how to do use this unit. I contacted the sellers of the units and all they could say it needed no software to use them. i then played with my code and changed the code which used the Auto library and called up serial.begin and this worked. its important to make sure to connect the 2 wires the correct way on the arduino. Ie for this unit Rx goes to Rx and Tx goes to Tx in most case you swop these around in other projects but not with this unit.

Next stages for this repository

  1. Added the signal turnout control software. "now done" 2/11/21
  2. Add further codes for 2 turnouts and 6 led units based on an Arduino Nano. "now done" 4/11/21
  3. Add 1st Mimic panel software using a Arduino Nano. "now done" 4/11/21
  4. Add 2nd Mimic panel software using a Arduino Mega. "now done 11/11/21
  5. Add a single track level crossing which uses a block detection sensor form Cmri.
  6. I have now added python script folder with some codes that i use on my layout. Work In Progress
  7. More stuff to be added as i get better with github.
Clone this wiki locally