À cette page en Français, veuillez cliquer ici.

ArLoco 2.2 is released!
Release 2.1 did not work correctly for the MEGA2560. It contained a serious error.
The problem is fixed in release 2.2
Now you can use the ArLoco shield with the MEGA2560 correctly
But an additional wire has to be soldered. See new manual on download page.

Now also supported on MEGA2560 with 58 sensors
– Communication speed with Putty raised from 9600 baud to 57600 baud.

The ArLoco is a 16(UNO) or 58(MEGA2560) channel feed back encoder with LocoNet®.
It uses a special Arduino shield that includes 16 inputs for channels, a power supply for the Arduino and two RJ12 connectors for LocoNet.
On a MEGA the normal MEGA pins must be used for sensors 17-58.


The ArLoco program has the following features:

  • 16 Channel, low active, feedback input
  • Use of a maximum of 256 addresses. So for each ArLoco you have to specify the required address range (1-16, 17-32,…, 241-256).
  • Optimised for both pulse detection (like reedswitch) and continuous detection (like current detection).
  • Simple configuration with your PC. So no complex CV-programming!
  • Powered by LocoNet or external power (12-16 V AC/DC)
  • Supports LocoNet-T and LocoNet-B
  • Each channel can be configured for pulse or continuous detection. (Channel 1 only for pulse)
  • Continuous detection:
    • Prevention of fake detection caused by spikes
    • Prevention of fake detection caused by short current outage
    • Ideal in combination with current detection print OKKIE
  • Pulse detection:
    • Generates a fixed length pulse of 1 second.
    • Eleminates contact bouncing
    • Prevention of a double pulse when driving slowly
    • Ideal for use with reedswitches.

What do you need?

  • An Arduino UNO microcomputer
  • An ArLoco shield (see picture above)
  • A Command station that supports LocoNet  (E.g. Intellibox, Daisy II, DR5000)
    or a LocoNet buffer.
  • A computer with train control software (E.g. iTrain or Traincontroller)
  • Optional: a current dectection print like OKKIE

ArLoco shield

  • Two LocoNet RJ12 connectors
  • Includes power for the Arduino. Powered by LocoNet or external power
  • 16 Screw terminals for 16 sensors
  • 2 Screw terminals for GND (ground)
  • 2 Screw terminals for external power
  • Power led
  • Status led



  • Current detection print for 8 track sections
  • 8 Screw terminals for input from tracksections
  • 8 Screw terminals for output to ArLoco shield
  • GND screw terminal
  • Screw terminal for Common track

You can order the Arloco shield and Okkie (print + components) here

Typical Application



11 thoughts on “ArLoco”

  1. This went together very easily thanks to following the clear instructions. I’m using it along-side some Digitrax BDL16 units. Make sure that the number you assign it doesn’t duplicate a number assigned to a BDL16 as it won’t be recognised. This may seem obvious, but wasn’t to me initially.

    1. Okkie is just a passive electronic circuit and thefore not related to any software product. The output voltage of an Okkie drops to zero if a current is detected on the input. It must be connected to a device(like an Arduino) that holds the Okkie output at 5 V by a pull up resistor.
      The ArLoco shield and sketch ‘produces a LocoNet signal that can be picked by other LocoNet devices. Therefore there is no relation with DCC+ or JMRI.

  2. Hi,
    I’m new to Arduino, I was trying to load your code using the Arduino IDE but was getting an error. Then after doing some google searching, I was told to use version 1.06 and that worked.

    1. Hi John,

      Why did you use thr IDE? You don’t need it. ArLoco is automatically uploaded when you start ArLoco the first time.
      What went wrong?


    1. Hi John,

      What do you want with 16 outputs? It is a feedback encoder and all such encoders have only inputs. Please explain.


Leave a Reply

Your email address will not be published. Required fields are marked *