Inspired by the DCC-EX project, an extra solution was needed to add a Loconet compatible bus to the computer running modelrailroad software like Rocrail. DCC-EX is a complete and very affordable build your own DCC Command Station solution using an Arduino Mega combined with a motor driver shield or board depending on the power needs. The only thing that’s missing yet, is a Loconet bus.
Common schematics to connect a Loconet compatible bus to an Arduino board can be found on the internet. Many times this is built up using an LM311 comparator but although it works fine, the LM311 seems to be used a little bit out of specs. The same can be built using an LM393N dual voltage comparator (and only use half of it).
The goal was to have a single PCB with the possibility to mount an Arduino Nano on it so that there would be no need to connect the PCB again with 4 wires to some Arduino board. The result is the design below:

The board has a power connector to connect 12V DC needed to generate a 15mA current as bus termination (jumper J1 to switch on/off bus termination).
The Arduino Nano will provide the 5V needed for some of the components on the board. For both voltages a 3mm (low current) led is present to monitor. Additionally the board has an RX and TX led indicating when data is received from the bus or when it receives information from the computer to send to the bus respectively. You need software like Rocrail to act as a slot server to use this interface.
A second function is available in the sketch loaded into the Arduino Nano. This second function is that the interface can also be used as a bus monitor. To use this function, jumper J2 must be connected at boot of the interface. The results can be monitored using the Arduino IDE serial monitor or an application like PuTTY.
Update:
For those who don’t want to use modelrailroad software on a computer or Raspberry Pi to control things on their layout but still want to manually control turn outs, lights and servo’s, there is another simple solution!
The DS101 can also act as a simple LocoNet Command Station. This sketch available in DS-Installer enables the use of a stand alone LocoNet bus. The DS101 needs a 12V power supply for the LocoNet termination current and the Arduino Nano needs to be powered on the USB port with a simple USB-adapter. It will enable the LocoNet bus and it will listen to sensor commands. Once a sensor command is received, it will automatically send out a switch command to the address of the sensor command plus 1000. So for example when a sensor command is received from a sensor with address 5, it will send out a switch command for address 1005 and depending on active or inactive, the switch command will be either Thrown or Closed.
Using the DS104 Lnet I2C interface in combination with the DS202 mass detection module, you can hook up any kind of switch to send out sensor messages. Another DS104 Lnet I2C interface in combination with a switch or relay module, can then respond to the switch commands. In combination with the PCA9685 even servo’s can be controlled for your turn outs.
Need help? Just ask!
You can find the Lnet USB interface & monitor as a do it yourself project in the shop.
LocoNet® is a registered trademark of Digitrax, Inc.
2 responses to “DS101 – Lnet USB interface & monitor”
Simpel om te bouwen.
Werkt perfect samen met RocRail en de modules van Arcomora.Goed om te horen Huub!

Leave a reply
You must be logged in to post a comment.