Raspberry Pi Controlled Lego Train with Build HAT

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • 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 Рік тому +1

    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 Рік тому +5

    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 Рік тому

      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

  • @Workshopshed
    @Workshopshed Рік тому +2

    Fantastic project. Love the use of coloured tiles.

  • @CMM1215
    @CMM1215 Рік тому +1

    Wonderful build! Can imagine this being so much fun!!

  • @danielv3228
    @danielv3228 Рік тому +3

    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 Рік тому +1

      Voice activated sounds awesome, glad it was a nice reminder for you.

  • @lorrainbow
    @lorrainbow Рік тому +3

    Great video! Also, how did I never know about the Duplo train?! #want

    • @hifromkatie
      @hifromkatie Рік тому +3

      I believe the electronic one has been a fairly recent addition to the line up.

  • @pratikbhatt9638
    @pratikbhatt9638 Рік тому

    A very very cool Project 👏

  • @GreatScawt
    @GreatScawt Рік тому +1

    Incredible build! And so well explained. Really great job.

  • @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.

  • @tseckwr3783
    @tseckwr3783 Рік тому +1

    Keep up the good work.

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 11 місяців тому

    You could use glue to lock all the bricks together to stop anyone from disassembling the train.

  • @georgef7754
    @georgef7754 Рік тому

    Superb.

  • @prestonknodelliii838
    @prestonknodelliii838 Рік тому

    You have a lot more patience and attention to detail than I do. Nice build.

  • @Vancha112
    @Vancha112 Рік тому

    Have to watch this later, thanks!

  • @trafficface
    @trafficface Рік тому

    With projects like this I’ll never finish my other 50 projects this is so cool!!

  • @BLX187
    @BLX187 Рік тому +1

    Fun lil build. would be nice to see this on a bigger scale with multiple trains running

    • @hifromkatie
      @hifromkatie Рік тому

      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

  • @a531016
    @a531016 Рік тому

    Awesome build!

  • @GeorgeGraves
    @GeorgeGraves Рік тому

    Love it!

  • @jugnu361
    @jugnu361 Рік тому +1

    great work

  • @ericvenneker
    @ericvenneker Рік тому

    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 Рік тому +1

      You should definitely go for it if you've already got the train!

    • @ericvenneker
      @ericvenneker Рік тому

      @@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 Рік тому

      @@ericvenneker Good plan!

  • @Twoloosebricks
    @Twoloosebricks Рік тому

    planning on making this but with arduino instead of pi. looks interesting all the same.

  • @ctheroux
    @ctheroux Рік тому

    Hi, great project. Brings back the kid in me. Thanks

  • @lovemadeinjapan
    @lovemadeinjapan Рік тому +1

    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.

  • @danieladams1501
    @danieladams1501 Рік тому

    Brillant !

  • @dsdmtom
    @dsdmtom Рік тому +3

    How did you guess that I was just about to start on this project myself? Thank you for your awesome ideas!

    • @hifromkatie
      @hifromkatie Рік тому

      Hope it's helpful :) Would be great to see what you do

  • @awo1fman
    @awo1fman Рік тому

    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 Рік тому

      Yes, I love how quickly it can be changed, the kids can do it themselves super easily too

  • @PaulGrayUK
    @PaulGrayUK Рік тому

    Great project, more so as can get the kids involved building the train, then overnight you can add the magic.

  • @maxcipolla2198
    @maxcipolla2198 Рік тому

    WOOW !!!!!!

  • @romiolover6852
    @romiolover6852 Рік тому +1

    Hi pi pico will do the job.

    • @hifromkatie
      @hifromkatie Рік тому +1

      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

  • @jyvben1520
    @jyvben1520 Рік тому

    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 Рік тому

      a levitating millennium falcon would be cool, we've got a Lego Millennium falcon here (well 2, in different sizes)

  • @electronicsfactsanalysis
    @electronicsfactsanalysis Рік тому

    Please background music Please link

  • @urrgamestreaming3657
    @urrgamestreaming3657 Рік тому

    ...🤣 W0W U ROCK, NEW SUBSCRIBER