Raspberry Pi Controlled Lego Train with Build HAT

  Рет қаралды 9,216

element14 presents

element14 presents

Күн бұрын

While working on a previous project, Katie spotted a motor compatible with model trains, and then remembered that the Duplo trains she and her children played with used a color sensor as part of their control system. With that idea in mind and a Raspberry Pi, a Pi Build HAT, and the Lego train motor 88011 in hand, Katie modifies the Lego Hogwarts Express Train (set 75955) to run autonomously based on sensing colored Lego tiles! bit.ly/3cvJYNl
element14 presents episode 465: Lego Raspberry Pi HQ Camera bit.ly/32XnEVI
element14 presents episode 543: Lego Spike Prime Weather Station with Raspberry Pi bit.ly/3uiKQtW
Engage with the element14 presents team on the element14 Community - suggest builds, find project files, and see behind the scenes video: bit.ly/3tmdewv
Visit the element14 Community for more great activities and free hardware: bit.ly/3q6YMpu
Tech Spotlights: bit.ly/3qPrDhM
RoadTest and Reviews: bit.ly/3pV5Bux
Project14: bit.ly/31wbnJY
#0:00 Welcome to element14 presents
#0:21 Overview
#1:14 The Idea
#3:56 The Parts
#5:38 Testing and Code!
#9:25 Build the Train!
#11:17 Modifying the Lego
#16:36 Running the Train!
#18:37 Give your Feedback
#raspberrypi #raspberrypiprojects #lego #modeltrains #modeltrainsets #harrypotter #hogwartsexpress

Пікірлер: 44
@philhutchinson7849
@philhutchinson7849 Жыл бұрын
Thats so cool, it really adds to the Harry Potter Lego Train set. Adds a lot of automation it needed.
@Hacker-at-Large
@Hacker-at-Large 2 жыл бұрын
There’s a lot of history connecting nerds and model railroading. The Tech Model Railroad Club (TMRC) was started in 1946 at MIT.
@hifromkatie
@hifromkatie 2 жыл бұрын
It seems to be 2 topics which share a large section of their fan base. My sons just getting into model railways, so we've started going to local exhibitions
@danielv3228
@danielv3228 2 жыл бұрын
Neat train. My dad and a friend in the 50/60's made it into popular mechanics with a voice activated train they built in high school. It was based on syllables. "Stop" "Backward" "Go Forward" was said and the model train did just that. This was a very fun update to that and a nice reminder.
@hifromkatie
@hifromkatie 2 жыл бұрын
Voice activated sounds awesome, glad it was a nice reminder for you.
@Workshopshed
@Workshopshed 2 жыл бұрын
Fantastic project. Love the use of coloured tiles.
@lorrainbow
@lorrainbow 2 жыл бұрын
Great video! Also, how did I never know about the Duplo train?! #want
@hifromkatie
@hifromkatie 2 жыл бұрын
I believe the electronic one has been a fairly recent addition to the line up.
@CMM1215
@CMM1215 2 жыл бұрын
Wonderful build! Can imagine this being so much fun!!
@justovision
@justovision Жыл бұрын
Awesome! Having some state logic like "If I see a slow down after a reverse ignore it and if I see a stop after a reverse reverse again" would be fun.
@GreatScawt
@GreatScawt 2 жыл бұрын
Incredible build! And so well explained. Really great job.
@prestonknodelliii838
@prestonknodelliii838 2 жыл бұрын
You have a lot more patience and attention to detail than I do. Nice build.
@tseckwr3783
@tseckwr3783 2 жыл бұрын
Keep up the good work.
@DAVIDGREGORYKERR
@DAVIDGREGORYKERR Жыл бұрын
You could use glue to lock all the bricks together to stop anyone from disassembling the train.
@pratikbhatt9638
@pratikbhatt9638 2 жыл бұрын
A very very cool Project 👏
@Vancha112
@Vancha112 2 жыл бұрын
Have to watch this later, thanks!
@trafficface
@trafficface Жыл бұрын
With projects like this I’ll never finish my other 50 projects this is so cool!!
@GeorgeGraves
@GeorgeGraves 2 жыл бұрын
Love it!
@danieladams1501
@danieladams1501 2 жыл бұрын
Brillant !
@a531016
@a531016 2 жыл бұрын
Awesome build!
@BLX187
@BLX187 2 жыл бұрын
Fun lil build. would be nice to see this on a bigger scale with multiple trains running
@hifromkatie
@hifromkatie 2 жыл бұрын
That would be awesome. It's made me think, you could have tiles with markings on to detect location on the track so they would know where they were, and inform the other trains of their location when going on to single track lines etc
@georgef7754
@georgef7754 2 жыл бұрын
Superb.
@ctheroux
@ctheroux 2 жыл бұрын
Hi, great project. Brings back the kid in me. Thanks
@jugnu361
@jugnu361 2 жыл бұрын
great work
@PaulGrayUK
@PaulGrayUK 2 жыл бұрын
Great project, more so as can get the kids involved building the train, then overnight you can add the magic.
@hifromkatie
@hifromkatie 2 жыл бұрын
Fun for all the family!
@maxcipolla2198
@maxcipolla2198 2 жыл бұрын
WOOW !!!!!!
@Twoloosebricks
@Twoloosebricks Жыл бұрын
planning on making this but with arduino instead of pi. looks interesting all the same.
@ericvenneker
@ericvenneker 2 жыл бұрын
My son has this train, now we only need a pi, build hat and a lego motor! Thank you for this great idea!
@hifromkatie
@hifromkatie 2 жыл бұрын
You should definitely go for it if you've already got the train!
@ericvenneker
@ericvenneker 2 жыл бұрын
@@hifromkatie we will definitely do it but first I have to get my 199x Lego tgv with rails from storage, otherwise the train will be difficult to control 🤭
@hifromkatie
@hifromkatie 2 жыл бұрын
@@ericvenneker Good plan!
@dsdmtom
@dsdmtom 2 жыл бұрын
How did you guess that I was just about to start on this project myself? Thank you for your awesome ideas!
@hifromkatie
@hifromkatie 2 жыл бұрын
Hope it's helpful :) Would be great to see what you do
@awo1fman
@awo1fman 2 жыл бұрын
That's awesome! It should be much more reliable than mechanical switches and is much simpler and easier than having to use an app. At the same time it's incredibly flexible and can easily and instantly be "reprogrammed" just by dropping tiles anywhere along the track. Well done!
@hifromkatie
@hifromkatie 2 жыл бұрын
Yes, I love how quickly it can be changed, the kids can do it themselves super easily too
@lovemadeinjapan
@lovemadeinjapan Жыл бұрын
Do you know if you can program the 2040 on the HAT itself? I don't want the ballast and sluginesh of a Debian OS with this. Let us control the microcontroller itself. Way more efficient.
@urrgamestreaming3657
@urrgamestreaming3657 2 жыл бұрын
...🤣 W0W U ROCK, NEW SUBSCRIBER
@jyvben1520
@jyvben1520 2 жыл бұрын
waiting for lego jet engines to power the millennium falcon ... or anti gravity , might be doable with magnetic levitation to simulate flying ... Scranton did a paper airplane ejection system ...
@hifromkatie
@hifromkatie 2 жыл бұрын
a levitating millennium falcon would be cool, we've got a Lego Millennium falcon here (well 2, in different sizes)
@romiolover6852
@romiolover6852 2 жыл бұрын
Hi pi pico will do the job.
@hifromkatie
@hifromkatie 2 жыл бұрын
You could do it with the pico, it wouldn't be a direct swap though, without the build hat you'd need an alternative motor driver, and cut the Lego connector off the motor to wire it in directly. You'd also need to rewrite the program to run on a microcontroller rather than the pi as well
@electronicsfactsanalysis
@electronicsfactsanalysis Жыл бұрын
Please background music Please link
555 Timer IC in Bistable Mode
1:19
Engineering Enigma
Рет қаралды 1,8 М.
PIR motion sensor |  How do they Work?
0:44
Lumos Controls
Рет қаралды 27 М.
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 76 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 68 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 4,9 МЛН
LEGO Trains Controlled by Twitch Viewers
3:19
MonoTownTV
Рет қаралды 1,7 М.
How Oscilloscope Acquisition Modes Work - Workbench Wednesdays
6:14
element14 presents
Рет қаралды 10 М.
How To Access Any Forked GitHub Repositories Data
9:31
Mental Outlaw
Рет қаралды 15 М.
8mm film camera digitalization mod.
4:49
airpocket soundman
Рет қаралды 34 М.
How to Use Trigger Types on a Digital Oscilloscope - Workbench Wednesdays
9:23
START to FINISH: Model a Newspaper Stand [Cinema4D + Octane]
3:45:16
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 60 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН