we built a self-driving FLEET of LEGO trains!
eggybricks
View ChannelAbout
Welcome to eggybricks!! We love LEGO here.
Latest Posts
No results found. Try different keywords.
Video Description
✅ To build any of the LEGO trains in this video, check out https://eggybricks.com ! Become a patron to get quarterly paper goods by mail, video shoutouts, and our undying gratitude!! https://patreon.com/eggybricks 🍳 All the code to run this on your own layout, without any LEGO train crashes, is up at: https://github.com/eggybricks/self-driving-lego-trains --- ALSO All the pieces in this video are first-party LEGO components! We made a short guide to how to add a color-and-distance sensor to our LEGO freight trains, but it should work for any other PoweredUp LEGO train (e.g. any recent motorized LEGO train, like 60337): https://github.com/eggybricks/self-driving-lego-trains/blob/main/instructions%20-%20adding%20color-distance%20sensor.pdf Other stuff shown in this video that you'll need to run everything: - Pybricks itself: https://pybricks.com/ (the Python version is totally free — only the code blocks are paid) - @BatteryPoweredBricks x Tom Cook motorized switch: https://rebrickable.com/mocs/MOC-147294/BatteryPoweredBricks/low-profile-switching-machine-mod These ones are affiliate links, which help support the channel: - LEGO switch tracks (20% off right now): https://amzn.to/4jDvkBL - LEGO train tracks: https://amzn.to/3EkhNPn --- In this video, we crash five LEGO trains, then try our best to run them on the same track without crashing them. Includes LEGO PoweredUp; Pybricks; A-star, Dijkstra's, and breadth-first pathfinding; some light Python programming; motorized switches switching in sync; LOTS of LEGO trains. The final automated LEGO train control system handles multiple trains safely, balancing: - Finding the shortest route (like Google Maps) - Avoiding conflicts with other trains (like air traffic control) - Planning reversals when needed --- chapters: 0:00 the LEGO train control problem 1:57 step 1: control the switches 5:33 step 2: control the trains 9:12 step 3: pathfinding 13:40 step 4: better, faster, stronger 16:43 step 5: all the trains!! traffic control 22:44 CHALLENGE ROUND train crashes at 0:20, 1:44, and 16:44 lego trains lego train crashes lego train control systems air traffic control how to build lego trains lego MOCs 2025 eggy bricks how to build lego trains air traffic control lego train automation self-driving trains ai trains control tower
Essential Gear for Your Next Shoot
AI-recommended products based on this video

EMEET C960 Webcam with Tripod, 1080P Webcam with Microphone, Adjustable Height Mini Tripod, C960 Web Camera with Privacy Cover, Plug & Play with Stand for Zoom/Skype/YouTube/FaceTime

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

UGREEN Magnetic USB C to 3.5mm Audio Adapter and Charger 2 in 1 Hi-Res 32bit/384kHz Aux to USB C with PD 60W Fast Charging Dongle Cable for iPhone 16/15 Pro Max, Galaxy S25Ultra, Pixel 9, iPad Pro/Air

Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

Anker USB C to USB C Cable, Type-C 60W Fast Charging Cable (6FT, 2Pack) for iPhone 16 Series, iPad mini 6 and More (Black) ClimatePartner certified
