Skip to content

Simple Node to control a single turnout and 3 2 aspect signal heads and 5 sensor inputs using a Arduino Nano it will work using a usb cable or can use a Rs485 bi directional module 2 wire module

License

Notifications You must be signed in to change notification settings

johnmholmes/CMRI_JMRI_Nano_Single_Turnout_Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The sketch is for demonstration purposes only it does work

This node is based on a Arduino Nano and will control 1 turnout and 3 signal heads from a JMRI CMRI Node connection and also read 5 sensors and report back.

I use a baurd rate of (9600) if you use a different speed you will need to change this in the sketch.

You can use this sketch in 2 ways as is. the first method is to use a usb cable. and the scond method is to use MAX485 Module TTL To RS485 Converter Board 3.3V 5V Power Supply For Arduino Automatic Flow Control Microcontroller.

The 3rd method you can use it the MAX485 Module RS-485 TTL which uses 3 wires connected to the Arduino.

The signals i use use a common anode type.

The sketch has been over commented to help you to understand how it works.

The signal head pdf needs amending in the future as SH4 is not required and was a mistake when I did the work.

About

Simple Node to control a single turnout and 3 2 aspect signal heads and 5 sensor inputs using a Arduino Nano it will work using a usb cable or can use a Rs485 bi directional module 2 wire module

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages