Message to Agent Red Hat:
The LEGO train is running without a driver! Your mission: develop and deploy an AI on board the train to stop it before it derails. This message will self-destruct in five seconds. Four… Three… Two… One…
🎵 tum tum tada tum tum tada tum tum tada tum tum tada tiduduuummm tiduduuummm 🎵
Full abstract here.
| Component | Description | Git Repository | Container Image |
|---|---|---|---|
| train-controller | Receives commands through MQTT and acts on the Lego Hub accordingly. | Demo-AI-Edge-Crazy-Train/train-controller | quay.io/demo-ai-edge-crazy-train/train-controller |
| intelligent-train | Receives images through MQTT, process them with an AI model and sends the results back to MQTT | Demo-AI-Edge-Crazy-Train/intelligent-train | quay.io/demo-ai-edge-crazy-train/intelligent-train |
| train-ceq-app | Manages messages between the train-controller, intelligent-train, capture-app, MQTT and Kafka. | Demo-AI-Edge-Crazy-Train/train-ceq-app | quay.io/demo-ai-edge-crazy-train/train-ceq-app |
| train-monitoring-app | Displays images streamed through Kafka. | Demo-AI-Edge-Crazy-Train/train-monitoring-app | quay.io/demo-ai-edge-crazy-train/train-monitoring-app |
| train-capture-image-app | Captures and compresses images from the webcam. Sends them over MQTT. | Demo-AI-Edge-Crazy-Train/train-capture-image-app | quay.io/demo-ai-edge-crazy-train/train-capture-image-app |
| Component | Reference | Price |
|---|---|---|
| Lego Express Passenger Train | #60337 | 159,99 € |
| NVIDIA JETSON ORIN NANO 8GB DEVELOPMENT KIT | 945-13766-0005-000 | 469,06 € |
| USB Webcam with UVC support and fixed focus | Logitech C505 HD | 20,00 € |
| Traffic signs | Siku 5597 | 11,04 € |
| LR03 / AAA battery pack | Varta Long Life Power | 8,66 € |
| USB-C Power Bank with PD support | Shargeek 130 | 185,35 € |
| USB-C Portable Display | Lenovo ThinkVision M14 | 229,01 € |
| USB-C to DisplayPort adapter | Amazon Basics Bi-Directional USB-C to DisplayPort Cable | 11,63 € |
| USB-C PD Trigger, 9-19V, 5.5/2.5 barrel jack | DSD TECH MagicConn SH-CP15A USB Type C PD to DC Power Cable-15V | 12,99 € |
| USB Keyboard | Rii Mini Keyboard K01X1 | 19,99 € |
| NVMe M.2 2280 SSD | Crucial P3 1To M.2 PCIe Gen3 | 65,99 € |
Total budget to forecast: 1 193,71 €.
If you want to replace the green bricks by red ones and make the train a bit more professional, you can spend another 25,99 € on LEGO Pick a Brick. See the additional Bill of Materials.
- rhde-nvidia-jetson-orin: RHEL for Edge images for the Jetson Orin Nano
- gitops: OpenShift GitOps manifests
- openjdk-opencv: OpenJDK + OpenCV base image for ARM64 and x86_64
- nvcr.io/nvidia/l4t-jetpack: NVidia Base image to leverage GPU acceleration on the Jetson Orin Nano
- base-developer-image: Base Developer Image with OpenCV included
- universal-developer-image: Universal Developer Image with OpenCV included
- node-ble: NodeJS library to use the BlueZ DBUS API under Linux
- noble: NodeJS library that provides a cross-platform abstraction to communicate over Bluetooth Low Energy (BLE)
- node-poweredup: NodeJS library that communicates with Lego hubs over Bluetooth Low Energy (BLE)
- cekit-images: Cekit manifests to build OpenJDK images with OpenCV included
- devspaces-developer-images: Universal Developer Image for OpenShift DevSpaces, with OpenCV included
This demo has been showcased at the following events:

