Level Crossings are intersections of roads and train tracks on the same level. They usually comprise boom barriers, flashing lights or both.

To get an impression of how this works, we have created a nice video about level crossings and the MattzoLevelCrossingController:

Fully automated Level Crossings for LEGO train layouts



The MattzoLevelCrossingController is a device that controls the components of the level crossing: boom barriers, lights and sensors.

The MattzoLevelCrossingController has the following features:

  • Works with Rocrail or autonomously.
  • Support for primary and secondary booms.
  • Secondary booms can be configured to close with a delay.
  • All servo start and stop angles can be configured.
  • Closing and opening speed of the boom barriers can be configured separately.
  • Right hand and left hand road traffic configurable.
  • Flashing lights with configurable speed.
  • Configurable fading lights for enhanced realism.
  • Intelligent, powerful and flexible train axle counting logic for autonomous operation.
  • Works in an outstandingly large number of different track layout scenarios.
  • Multi-track support.
  • Virtual sensors for secure closing of barriers before train passes the level crossing.
  • Support for various hardware deployment scenarios.
  • Based on MattzoLayoutController firmware.
  • Common codebase with other controller types.

System integration

Level Crossings are integrated into the MattzoBricks Train Automation System as shown in the following diagram:

How to build it

Level Crossings are controlled with MattzoLayoutControllers. Building instructions can be found here.


Thanks for MattzoBricks Core Developer Markus for his fabulous contributions to the level crossing project.