Introduction to LEGO Train Automation

Many traditional model train sets feature advanced computer-controlled automation. The LEGO company still has to reach this level of sophistication. But we can always rely on dedicated AFOLs to fill the gaps. This post will introduce some of the solutions available in the market. The goal is to find the right combination of hardware and software to achieve your train project. I have been able to control four trains on what continues track without crashes.

Trains

There are many original LEGO trains available, but there are even more interesting ones available from alternative brands/resellers. Just have a look at BlueBrixx’s train section. It comes down to your taste on what exact train model you prefer.

Train controllers

More critical are the train motors and train controllers. After all, you want to control the train(s) remotely. The most popular approach uses Bluetooth to communicate with the train controller. The Powered Up Bluetooth HUB train controller and motor are the obvious choices for this approach. Alternatively, you can use the Technic Hub or the Spike Hub.

But there are other options. You can also use the SBrick Plus to control LEGO Power Functions train motors. You can also use Mindstorms as your controllers. For example, you can use the EV3 with a custom cable. Or you can build your own train motor engine.

Tracks

The original LEGO tracks are the go-to choice for many, but there are other legitimate options. Bluebrixx sells their own tracks at a much better price. They are not the only ones. There is also Modbrix, Trixbrix and 4DBrix. Some of the less common tracks are produced using 3D printers. You can also just download the 3D fiels and print them yourself.

You can of course, also visit Aliexpress to get a large variety of cheap tracks. The number of different designs availale is just amazing. LEGO is again falling behind.

Switches

You do not only want to control your trains but also the track itself. You can build an automated switch with original LEGO bricks. You will connect these switches to LEGO hubs that you can then control just like the trains. 4DBrix offers a complete automation system that also includes motors that are mounted on top of your original LEGO switches.

Sensor

To control the train, you need to know where they are on the tracks. You can add sensors to the train, such as a light sensor or a distance sensor. You can then place markers on the tracks, such as colourful plates (light) or walls (distance). The sensor depends on what controllers you use. The sensors typically originated from the different versions of Mindstorms. While driving over the marker, the train senses this information and can act upon it. You need a programmable hub, such as Mindstorms, to process the sensory input and act accordingly.

Alternatively, you can mount sensors to the track itself. This can again be original LEGO sensors (light or distance) or you can use 4DBrix’s sensor in combination with their whole system.

Controllers

If you use a distributed architecture, then you need the train controllers to communicate with the track controllers. At least one of them needs to be programmable so that it makes decisions. Alternatively, you can use a computer as a central controller that communicates with all components in your train system. This can be done wirelessly (Bluetooth, Infrared, or Wifi). Other systems, such as the 4DBrix System, use wires for all track-mounted sensors, switches and actuators. Alternatively, you can consider the MattzoController system, but it does require more knowledge in programming micro controllers. Anopther option is the TrixBrix system, but I am not sure how much it can be programmed.

Software

You will need software to make all the decisions in your train system. Based on sensory input from your train or track sensors your trains need to start/stop. Also, switches need to be triggered, booms lifted and decouplers triggered. The 4DBrix system uses the nControl™ software running on a computer to plan and program your train system.

The Brickrail software is based on PyBricks to program hubs/controllers. Another option is the Brick Automation Project, although it does not seem to have been updated in a while.

Computer

Depending on what controllers you choose, your computer needs to have USB, WiFi and Bluetooth. The latter is a bit more tricky than normal. You specifically need a Bluetooth Low Energy Dongle that integrates all Bluetooth LE features. If your computer does not have it built in then you need an external dongle.

New HRI Podcast episode

My sabbatical allows me to focus on the HRI Podcast. Here is another episode:

The One About Ethics

Robots are not just machines. We treat them as if they were somewhat like humans, including applying moral standards and expectations to them. Our behavior towards robots matters. The way we treat them reveals much about ourselves. In today’s episode, we will talk about how being nice is not the opposite of being cruel to them. I invited Bob Douglas and Mary Blossom from the AI Research Institute to introduce us to the topic. They agreed to produce a short podcast dialogue to get us started. I then discussed their introduction with Michael-John Turp and Minyi Wang.

New HRI Podcast episodes

Dwain Allan and I produced two more episodes in our Humanoids series:

Humanoidization: Costs, Demand, and the Future of Work

Humanoid robot companies are promising that humanoids will fast become our friends, colleagues, employees, and the backbone of our workforce. As Elon Musk described it when he first unveiled Tesla’s Optimus: “It will upend our idea of what the economy is… it will be able to do basically anything humans don’t want to do… it’s going to bring an age of abundance.”

But how close are we to this reality? What are the key costs associated with operating a humanoid? Can companies deploy them profitably? Will humanoids take our jobs, and if so, what should we be doing to prepare? To explore these questions, Dwain Allan and I interviewed Will Jackson, Jo Cribb, and Bruce McDonald.

Puffery, Bullshit and Lies

Robots and AI are being portrayed in overly optimistic videos, television shows and advertisements. Tesla’s Optimus robot is a prime example. In this episode Dwain Allan and Christoph Bartneck interview John Petrocelliand Nick Lee on how this puffery, bullshit and lies affect consumers and vulnerable people. Such as Suzanne Barron, who believes that robots are possessed by Satan.