solving the LEGO city train problem (no room for loops!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 209

  • @eggybricks
    @eggybricks  2 ปีที่แล้ว +29

    The train in the video is LEGO Express Passenger Train 60337. If you want to purchase it, consider using this link (this is an affiliate link, which means when you click the link and make a purchase, we receive a commission, which helps to support the channel!):
    bit.ly/lego-express-passenger-train-60337
    Links to the code shown in the video, plus the code blocks version if you don't want to use Pybricks:
    - Pybricks code to make the train run back and forth continuously, using color sensor: github.com/eggybricks/poweredup-color-sensor/blob/main/pybricks-code-for-60337-express-passenger-train.py
    - PoweredUp code blocks version of the same thing: github.com/eggybricks/poweredup-color-sensor/blob/main/PoweredUp%20Code%20Blocks%20for%2060337%20Express%20Passenger%20Train.pdf

  • @irl_neil
    @irl_neil 2 ปีที่แล้ว +278

    This is awesome, not many lego channels mixing python coding and city building! I love the way the train comes from behind the modulars on either side too

  • @pybricks
    @pybricks ปีที่แล้ว +176

    Wow, this is such a great video! We're really glad you use Pybricks in your city :)

    • @eggybricks
      @eggybricks  ปีที่แล้ว +33

      It's you!! Thanks so much, and thanks for making our LEGO move!

    • @pybricks
      @pybricks ปีที่แล้ว +24

      @@eggybricks let us know if you think any features are missing and we'll put them on the list!

    • @brandonpalmer2338
      @brandonpalmer2338 10 หลายเดือนก่อน +3

      @pybricks, can I run pybricks firmware while still controlling the hub via remote or cell phone app? Wondering, because while I am interested in the programming aspect and making the trains do specific tasks, my 4 and 6 year old simply want the train to go as fast as possible in a circle.

    • @pybricks
      @pybricks 10 หลายเดือนก่อน

      @@brandonpalmer2338 You can switch back firmware easily using the standard LEGO app.
      But better yet.... you could just make a Pybricks program that does exactly what your kids want 😄 For example 1) just full speed or 2) something with the train remote or 3) a program that will just add 10% speed each time you press the button. That way they don't even need a phone/remote.

    • @paulharris4256
      @paulharris4256 9 หลายเดือนก่อน +1

      Can I use Pybricks on an Apple computer/

  • @KayoMichiels
    @KayoMichiels 9 หลายเดือนก่อน +17

    You could have use the depth sensor for added realism: trains don't just stop on a dime... they roll a bit untill they stop... you could place a small plate in the center of the green plate and let the train slow down when it sees the green plate, and stop when the sensor sees the raised bit.

    • @JasonHorrocks
      @JasonHorrocks 8 หลายเดือนก่อน

      Don't know if you'd have space for the depth sensor? As think the sensor they used only does colour?

    • @jossdeiboss
      @jossdeiboss 5 หลายเดือนก่อน

      @@JasonHorrocks I suppose you could use two different color codes, one to slow down and one to stop.
      Example: put a white at the beginning of the platform and one green at the end. Do for both directions. Include a code to ignore the first white color met and act only when the second is met. Program to restart the train in the same direction after a certain time.

    • @jossdeiboss
      @jossdeiboss 5 หลายเดือนก่อน

      I suppose this video is to show the basics and it's up to you to improve it the way you find most suitable :D

    • @tomalator
      @tomalator 3 หลายเดือนก่อน

      Or have it detect the color and slow down to a stop over a set amount of time

  • @sentien13
    @sentien13 ปีที่แล้ว +15

    Massive technic fan, have a huge electronics background, never even considered this being possible...
    Great effort has been made for the video to explain what is technically a difficult subject into a simple to understand format. Good job!

  • @sinan_collects
    @sinan_collects 2 ปีที่แล้ว +36

    Awesome! I also have a small city (actually way smaller than yours ~ 4 x 2.5 base plates). This is very inspiring! I can't wait to see the rest of your city updates. Subscribed.

  • @MisterKunat
    @MisterKunat ปีที่แล้ว +3

    my kid's duplo train does this. it has 5 colored action bricks. yellow = horn, white = lights, red = stop, blue = gas stop, green = reverse

  • @KrookedOne
    @KrookedOne ปีที่แล้ว +19

    This is truly amazing, please keep making these splendid videos. I learned so much with this, and you guys make it so entertaining. I also love what you guys are doing mixing coding and Lego. It’s wonderful, I can’t wait to see more.

  • @Richi0800
    @Richi0800 ปีที่แล้ว +20

    You could improve that program a little so the train doesnt stop as hard as it does right now (maybe looks very good with a bigger layout in the future). Lets say you use a longer indicator. Now you could initiate a reduction of speed every few ms as long as it reads green. When the green indicator is over it could do the usual break but with a bit of tweaking the settings and playing with the length of the indicator you could get a smooth break motion. Really cool job, that one really inspired me!

    • @33andy33gmail
      @33andy33gmail 9 หลายเดือนก่อน +1

      Or use another colour or three to indicate "slow down"

  • @brandoncheung3052
    @brandoncheung3052 2 ปีที่แล้ว +11

    This is so cool! Definitely adds a lot of character to your city. When I eventually build my city I’ll keep this in mind!

  • @BatteryPoweredBricks
    @BatteryPoweredBricks ปีที่แล้ว +4

    Nice job! I'm a bit of a copy paste coder, but I love the functionality that Pybricks adds to the Powered Up system. I wouldn't have invested as much in the system without that option. Not just for added functionality but knowing that the official Lego apps will one day be abandoned. Also being able to store code on the hubs themselves is a huge game changer! Thanks for making this video and bringing more attention to Pybricks!

  • @krismiz
    @krismiz 2 ปีที่แล้ว +7

    It's always amazing to see how your minds work! This tots needs a million views!

  • @leokimvideo
    @leokimvideo 6 หลายเดือนก่อน +1

    python coding really is the keys to the kingdom, still amazingly popular considering it's been around since the 80's

  • @samlewis2426
    @samlewis2426 10 หลายเดือนก่อน +1

    I'm really hoping that you two got another microphone, it wasn't all that bad I hope you didn't worry about it, and I hope you had as much fun making this as I did watching it

  • @braccoz
    @braccoz ปีที่แล้ว +1

    You writing code, and then running it on legos is such a cool real world application. I'm happy that you showed the process, keep up the good work :)

  • @beachhouse13
    @beachhouse13 ปีที่แล้ว +9

    Really like this setup, but I have issues with your code. It is assuming that the train is between the red and yellow at startup. If it is not, it will run past the yellow and off the track. I would suggest you change your check_for_color to not have a parameter and to have a switch statement to see if it has one of the three command colors. Then depending on what color it sees it can stop or change directions. You will have to add a direction variable to allow the program to remember what direction it was going in the station and continue in that direction after the hold time. In fact, this would allow you to have just two colors (red and green for example). When it hits red it just looks to see what direction it is going, then change to the other.
    With this setup, the program will always stop at a reverse point and will not be dependent on a starting position.

    • @casperhansen826
      @casperhansen826 ปีที่แล้ว

      Nice change, but what if the train starts at one of the ends then it might be best if they were two different colors

    • @anatoleh1
      @anatoleh1 ปีที่แล้ว

      yes, I agree, the code in the video is unnecessarily complex

    • @easternpromises7991
      @easternpromises7991 ปีที่แล้ว

      @@anatoleh1 It's more than good enough for a basic intro. Every code can be refactored and refined later when you learn more ;)

  • @tomawest
    @tomawest ปีที่แล้ว +4

    This is really great and has turned the train from a toy that my two kids fight over to control and crash, to one where they work together to get the train to do what they want to do! Excellent intro.
    I personally found that the mindstorms sensor was not always 100% reliable when it comes to reading green when using it myself. I dont have the color and distance sensor however I would imagine it would be about the same too. If the train was moving very slowly over the green, or was in a darkened space then this wasnt an issue. To fix the issue, I built an enclosure under the chassis of the train (similar to the one thats removed in order to get the sensor to work originally) and found that its now completely reliable.
    I would imagine this would likely result in you fixing the reliability of your color and distance sensor as you mentioned that it was not as reliable as the mindstorms sensor. Whilst I suspect that the shaded areas where you had your coloured plates and the brighter light from the mindstorms sensor were probably the reasons why you didnt experience issues with the mindstorms sensor.

    • @eggybricks
      @eggybricks  ปีที่แล้ว

      Thanks so much! And really nice debugging and solution - this is a great fix for anyone encountering this issue. Thanks!

  • @everydaylivin8222
    @everydaylivin8222 2 ปีที่แล้ว +4

    Y’all are so smart thanks that was very educational

  • @Broke.Bricks
    @Broke.Bricks 10 หลายเดือนก่อน

    It's crazy what some smart people can do with Lego 🤯

  • @Fye...
    @Fye... ปีที่แล้ว +6

    As someone who's just getting into the hobby, your diagram you show 2:31 is a huge help... on top of the rest of the video of course! Other sources of information online can be severely lacking :-P

    • @eggybricks
      @eggybricks  ปีที่แล้ว +2

      Thanks so much, glad it was useful!

  • @cyberneticwarmachine
    @cyberneticwarmachine ปีที่แล้ว

    This is so cool! think alot of people with trolley/tram layouts in their city need this!

  • @amplef0rth1
    @amplef0rth1 2 ปีที่แล้ว +2

    This is great! Was looking for this solution awhile back. Can’t wait to see what’s next!

  • @RayRay_AUS
    @RayRay_AUS 2 ปีที่แล้ว +2

    FANTASTIC video and tutorial - Great work guys!!!
    Going to try this out for myself once i buy a city train off your vid!

  • @NisseHult101
    @NisseHult101 11 หลายเดือนก่อน

    Thanks for taking the time to explain how you did the coding and also explain the differences between the two sensors, excellent work! I'm really tempted to also buy a color sensor and try it out myself now!

  • @TheCrazyMike92
    @TheCrazyMike92 8 หลายเดือนก่อน +1

    Algorithmically, a simpler solution can be created. One color of brick for the "stop at the station" and one "stop and turn around" action.

  • @Anaerin
    @Anaerin ปีที่แล้ว +9

    As a suggestion for V2, I'd say put the "current speed" into a variable, and have your colour detection be a switch statement. Then the "Green" case can stop and wait, then re-apply the speed from the variable, the "Yellow" case stops, waits, changes the speed variable to - speed, and sets that speed, and the "Red" case does the same, but with + speed. Then it'll work for tracks with more than one station, and rather than having to push the train to the station when it starts, it can check the sensor and if nothing's detected, start going forward.

  • @chrisegonmusic
    @chrisegonmusic 2 ปีที่แล้ว +4

    I feel like this channel is going to do really well 😸
    Got my kid a brio set the other day and now I want something I can make really fun for me too haha.

  • @yasirbilloo1143
    @yasirbilloo1143 ปีที่แล้ว

    Wow this is amazing! haven't seen any/many lego channels showing working with PY Bricks, hats off to that guys, much appreciation from Pakistan!

  • @Erikve
    @Erikve ปีที่แล้ว +1

    Hahaha, as a Lego-fanatic with a physics background working in a company where we are phasing often programming challenges, I can appreciate this video very very much. I somehow expected this to happen on this channel. Great video.
    I can imagine the train going forward and back would look even better with a bit smaller train or a bit longer track.
    The stopping part at a station would be a great addition to any city.
    Another great application would be to use the color sensor to open/close railway barriers.

    • @eggybricks
      @eggybricks  ปีที่แล้ว

      Thanks! Great point on the size of train versus track - we actually just reduced the size of the train a little bit to better fit the space, like you describe. These are great ideas!

  • @AlanXEverfrost
    @AlanXEverfrost ปีที่แล้ว +1

    Brilliant. Just for realism aesthetics, I would humbly suggest putting tall enough buildings to block both outsides from view so you don't see the train stop at the ends, and have them wait a bit longer at each stop, the ends quite a bit more. That way, it looks like the train keeps going for quite a bit more, and the entering and exiting doesn't dominate the city as much. Movement draws the eye after all. And your city looks so beautiful you want to show off every detail.

  • @GodmanchesterGoblin
    @GodmanchesterGoblin ปีที่แล้ว +1

    Wow! Clearly I have been living under a rock for the last year or so (that's probably true, for a variety of reasons...). I was unaware of Pybricks until now. Having looked at one or two other videos on the topic it clearly has a great deal of potential. Thanks for opening my eyes to the possibilities.

  • @Gahanun
    @Gahanun ปีที่แล้ว +1

    Wow, I had no idea these detectors could be read by the hub. This opens up a lot of options! I will have to look into pybricks.

  • @cris_moves
    @cris_moves 7 หลายเดือนก่อน

    I am loving this channel and content.

  • @meowritz
    @meowritz ปีที่แล้ว

    I'd love to see someone make a tram which have a reversible end station that just runs straight through a city along the roads and then reverses, this is a great way to do it, maybe there would be a way to strip the controller/battery box off uneccesary bulk to hide it better

  • @normivey
    @normivey 2 ปีที่แล้ว +2

    So happy I found your channel, and especially this video. Looking forward to your next one!

  • @darthgbc363
    @darthgbc363 ปีที่แล้ว

    Cool. Seen this idea used for a Great Ball Contraption many years ago using Power Functions & an NXT. 2 colors at each end. 1 to slow down & 1 to stop. 4 colors total. But they had sign posts on the side of the tracks for the color. Not down. So, when someone walked by with a certain color shirt, things would go wild. LOL.

  • @HyRax_Aus
    @HyRax_Aus ปีที่แล้ว

    This is great - I love a practical programming example and wasn't actually aware of Pybricks. I learned something new and cool, and for that, you get a sub!

  • @TheIronWaffle
    @TheIronWaffle ปีที่แล้ว

    I just stumbled on this and you’ve solved my desire to make the recent trolley move back and forth on an incomplete loop! Thank you.
    Not just that, but now I know I can even create “stops” at stations using the same tools!
    Of course, I don’t (yet) have the skill/patience to do the coding but now that I have this tutorial I have reason to start learning, and that’s a good thing.
    My only problem with this? Well, I went down an eggybricks rabbit hole and need more of your videos! I hope you have more eventually. Notifications are on.
    I’ve liked them all. This was obviously the most helpful for me, but the Ninjago Ultimate Judge was really fun and, as a film nut whose first modular was the Palace Cinema, I really enjoyed that video. I’d love to see an update. It’s one of the few modulars I’ve missed some. And it was so heartening to see you modify the screen to a foreign black and white movie!
    I hope all remains well with you both.

    • @eggybricks
      @eggybricks  ปีที่แล้ว

      Thanks so much for the kind words!

  • @leejoey3287
    @leejoey3287 9 หลายเดือนก่อน

    To me, it’s perfect for a 3-stop Super-fast Express Route: Like 3 main cities and and you make green for the second stop platform, no colour for passing stations, Red and yellow at the terminal platform to prevent crashing on it

  • @schwarzerritter5724
    @schwarzerritter5724 ปีที่แล้ว

    Have you seen how the old 4.5 Volt system did it?
    The battery box had a switch that was sticking out. When the switch hit an obstacle, it would reverse the current.

  • @derekchan3343
    @derekchan3343 ปีที่แล้ว

    Amazing presentation, very clear, and provide supporting that why you chose the sensor and Pybricks. Very easy to follow. I just want to say again....Amazing. thanks

  • @BrickBear83
    @BrickBear83 ปีที่แล้ว

    Thank you for this video! Been looking for something like thus for a while! Please don't delete.

  • @paulharris4256
    @paulharris4256 10 หลายเดือนก่อน

    Thank you for a great explanation. I have just ordered the colour sensor! Can’t wait until it arrives! 😊

  • @MrGeocidal
    @MrGeocidal ปีที่แล้ว

    This is so cool! It's got me thinking about what sort of things I can automate around my house.

  • @misek_limbu
    @misek_limbu ปีที่แล้ว +1

    This video is amazing and the thing that makes me super happy is that I m getting this Lego train in my birthday! :]

    • @eggybricks
      @eggybricks  ปีที่แล้ว

      Happy birthday!!

    • @misek_limbu
      @misek_limbu ปีที่แล้ว +1

      Not now,my birthday starts at july 1, not march 31 :|

  • @alazygamer1032
    @alazygamer1032 ปีที่แล้ว

    your probably not asking for tips about trains but I noticed a problem, that train has airdrag which is pretty bad for trains, and for those kind of lines you should put stuff like metra or amtrak does and a great example is the heartland flyer, runs through some smaller cities but also some bigger ones but its a pretty small line overall

  • @gregg8031
    @gregg8031 2 ปีที่แล้ว +1

    Yeyyyyy second episode so happy , keep up the good work

  • @MonoTownTV
    @MonoTownTV ปีที่แล้ว

    Really enjoyed this video - love mixing up code and LEGO! I'm working on using NodeMCU micro controllers and NFC sensors to control the trains in my city and it's been a ton of fun!

  • @imthatonegrl
    @imthatonegrl 2 ปีที่แล้ว +2

    Neat!!! Would love to see more videos from you two :)

  • @cyberprog
    @cyberprog ปีที่แล้ว

    The PU Sensor is not as good as the Mindstorms/Education sensor. The light with it seems to increase the accuracy. I also coded something similar a while back before I saw your video, and I managed to make it work using just two colours. I just stored a variable for the speed of the motor and modified that every time I saw the colour. You could do more stuff with other colours then if you had more ports available!

  • @Marc76-qt7vp
    @Marc76-qt7vp ปีที่แล้ว

    Maybe the intermittent fault of the color sensor has anything to do with two things, 1) the distance of the sensing element to the bricks and 2) providing contrast. Last I mean butting up say...black bricks to the colored bricks. Now the first I learned from an Arduino light sensor that measured varied output values based on distance. The second idea I got from an rpm counter, which stated contrast as a procedure. These ideas might improve consistency. Thank you for making these videos!

  • @cgbolton1
    @cgbolton1 10 หลายเดือนก่อน

    I just completed my first prototype city tram using a modified version of the tram from Lego set 8404. In the past I have had this setup with a Power Functions motor, battery box and IR receiver but as with my other trains, this just goes around and around and the tram generally has a hard time with corners. Using the information from your video, a PoweredUp Hub and train motor along with PyBricks, I was able to implement a much nicer street level light rail line. Many light rail lines do exactly what you suggested in your video in that they are a linear line that just goes back and forth. This works great for LEGO city regardless of the size as it adds a nice and unique bit of motion on the street level. I am interested in implementing some automation to the big rail lines as I think your method would be great to allow trains to pull into stations based on the count of revolutions. I am also interested to know if it would be possible to control the behavior of multiple PoweredUp hubs such that using an external computer, the code would be able to monitor the status of different trains. For example, if train "A" just passed the red plate, then train "B" stops for a specified amount of time to let train "A" pass. It would be really interesting if automation like this could be accomplished as it would provide a greater degree of realism to LEGO train layouts.Thanks again for your wonderful video and the inspiration it provided! You guys are awesome - if you are ever in northern, AL check in with the Tennessee Valley LEGO Club!

    • @eggybricks
      @eggybricks  10 หลายเดือนก่อน +1

      Glad this was helpful!!
      Funny that you mention automating bigger rail lines - we just finished a new city track layout (w/ automation) that coordinates four trains (with four hubs) to all share one station by monitoring each other's location. If you're interested, we'll have a video on it up in the next few weeks.
      Thanks so much and will definitely check in if we're ever nearby!

  • @SiddhantSadangi
    @SiddhantSadangi ปีที่แล้ว +1

    why do we need three different colors though? IMO two should do the trick.
    One color to stop at the station, and the other to reverse direction

    • @Here_is_Waldo
      @Here_is_Waldo หลายเดือนก่อน

      One to slow down. Makes it a bit smoother and realistic.

  • @jochenvandevoorde437
    @jochenvandevoorde437 ปีที่แล้ว

    Cool solution! But it's kind of mind-boggling that the color coded plates and detection come standard with the Duplo train 10874, yet for the Lego train you need to come up with your own solution (which, granted, can also be fun).

  • @heaplabs
    @heaplabs 8 หลายเดือนก่อน

    Great idea! I solved the same problem a while ago by having the train slow down before the track ends using a timer, and then bumping into rubber bands at both ends (for "recalibration"). But I was actually thinking of just replacing the whole thing with my own motor + micro controller, mostly because I don't want to deal with those AAA batteries all the time :/

  • @nathancommissariat3518
    @nathancommissariat3518 11 หลายเดือนก่อน

    this is super cool. Had no idea that pybricks was a thing!
    Thanks so much!

  • @PDXPiggy
    @PDXPiggy ปีที่แล้ว

    Awesome video! Excited for all your future videos!

  • @momeck1
    @momeck1 5 วันที่ผ่านมา

    I set this up for the trolley car from the holiday village set that I'm using as part of a large winter village MOC to be displayed at a show this coming weekend. Very cool!! Thanks for the great instructions and, of course, the code. Two issues...the stop at "GREEN" doesn't like to work (I've tried three colors of Lego green...). RED and YELLOW are fiine. Also, when running the program from the laptop, the option to "include current program" doesn't appear in the firmware settings. Did that option move or get dropped since this video was made? Just curious...it certainly would be easier to just turn the hub on to run rather than having to use the laptop.

  • @burningbluejay2868
    @burningbluejay2868 ปีที่แล้ว

    this is really cool! I didn't know powered up could run programs like that

  • @duplotraci
    @duplotraci ปีที่แล้ว

    This works so well and it was fascinating to watch the process.

  • @chrisonthedot
    @chrisonthedot ปีที่แล้ว

    Thank you so much for teaching me how to do this. I really appreciate it. Definitely forwarding this to my nephew too!

  • @Sonicjan
    @Sonicjan 6 หลายเดือนก่อน

    What I'd REALLY like, is for the Train to actually play the sounds that one can hear through the App (like, the Horn, Whistle or Bike Ringing Sounds). Any way for that to be done?

  • @FreshDnB23
    @FreshDnB23 ปีที่แล้ว

    might consider doing a mini layout on my shelf now...

  • @cooljonathan
    @cooljonathan ปีที่แล้ว

    I did not realize that the standard powered up hub was programmable. Way cooler than power functions!

  • @ericjohnson8686
    @ericjohnson8686 ปีที่แล้ว

    This is amazing content. Mixing two of my loves, code and bricks :D

  • @brickcitymatt
    @brickcitymatt ปีที่แล้ว

    So cool!! Awesome work, subscribed! :)

  • @360Production.Services
    @360Production.Services 9 หลายเดือนก่อน

    Omg this is amazing! I am working with this tech now and I love it!

  • @balrogbean
    @balrogbean ปีที่แล้ว

    I feel like, if you were to have the train run on a giant looped track, then, all you would NEED, is the GREEN brick.

  • @tomalator
    @tomalator 3 หลายเดือนก่อน

    Do you really need 3 colors? Just use two. One for stop for a set period of time, and one to reverse direction

  • @NickElliottuk
    @NickElliottuk ปีที่แล้ว

    Fantastic. I had no idea the poweredup hub was so versatile!

  • @tarakrogh4923
    @tarakrogh4923 11 หลายเดือนก่อน

    This is what I was looking for!!!! Thank you!!!!

  • @ronniek4478
    @ronniek4478 ปีที่แล้ว

    This is great. Would work great with a trolly car and what I've been trying to figure out how to do as I dont have space for a full loop track. Thanks.

  • @Tivis7
    @Tivis7 ปีที่แล้ว

    This is sooo cool!!! I never new about this!

  • @bernhardwisser1132
    @bernhardwisser1132 ปีที่แล้ว

    This is great! Lot's of inspiration for my own layout! Thank you!

  • @rebricks
    @rebricks ปีที่แล้ว

    This is so amazing and I've been thinking about something like this for awhile now. I will definitely be incorporating some Python to automate my trains!

  • @RyanHipp
    @RyanHipp 4 หลายเดือนก่อน

    Your science/programming : A+
    How it actually looks executed: C-

  • @DasVadderr
    @DasVadderr ปีที่แล้ว

    A pile of batteries for our toys. It´s the 90s all over again. Don´t get me wrong, I really like your setup and ingenuity. I just can´t watch a video where I´m told that LEGO sells more than one kind of color sensor as well as some robotics stuff and pushes customers more and more towards using apps to play with their toys, and not make fun of the fact that they aren´t even capable of equipping their current product range with USB - rechargable batteries.

  • @scottthewaterwarrior
    @scottthewaterwarrior ปีที่แล้ว

    Now I am starting to see why the PU Hub is $50, still feels a little overpriced, but not quite as bad. Might have to pick one up at some point and experiment, have some long term plans to build a "racing" locomotive and would need some sort of way to slow it down before curves.

  • @edoardom3677
    @edoardom3677 11 หลายเดือนก่อน

    This looks amazing!

  • @judekw6034
    @judekw6034 2 ปีที่แล้ว +1

    Great tutorial, thanks a lot!

  • @Charris2007
    @Charris2007 ปีที่แล้ว

    With Buwizz 3.0 battery and controller we control both Powered up and Lego Mindstorms motors.

  • @bmx_helisman8252
    @bmx_helisman8252 ปีที่แล้ว

    Nice! Would be cool if you coded it to accel and decel gradually.

  • @stijnvth
    @stijnvth ปีที่แล้ว

    I never knew this stuff goes this hard. That's pretty cool actually. Maybe make a locomotive on both ends ... 🙂

  • @scottthewaterwarrior
    @scottthewaterwarrior ปีที่แล้ว

    Point to point wouldn't work so well for me, think my streamlined steam locomotive with four passenger cars is longer then your whole layout, lol!

  • @vesthepes
    @vesthepes ปีที่แล้ว

    This is so awesome, I'm trying it out... thank you guys!

  • @corneedeleeuw
    @corneedeleeuw ปีที่แล้ว

    the battery packs from 2010 where much better because you could stack more ports on each other

  • @bladactania
    @bladactania ปีที่แล้ว

    Great video! Well explained and presented!

  • @OnePeiceEditzx
    @OnePeiceEditzx 4 หลายเดือนก่อน

    When you buy the train do they provide triple A batteries or do you have to buy seperately

  • @gwpandia
    @gwpandia ปีที่แล้ว

    I think the code could be more optimized since the train can be at any random place, while Green is not the first pattern to be observed lol

  • @valkhorn
    @valkhorn ปีที่แล้ว

    The tracks are on an elevation right? Why not lower the right half behind the buildings, send it backwards, raise it on the right half, and send it across again?

  • @playerscobongameplay
    @playerscobongameplay ปีที่แล้ว

    This thing remind me a train toy that my friend has with diferent signals, and when the sensor see that color it stops or reverse or turn on/off headlights and horn

  • @Cr3ator3ss
    @Cr3ator3ss ปีที่แล้ว

    Hi, this video is great and made me wonder if you would like to make another video on Mindstorms. I got the set recently, before the discontinuation was announced and now I am afraid I won’t be able to use it for long.

    • @eggybricks
      @eggybricks  ปีที่แล้ว +1

      Great question! We've been meaning to make a Mindstorms video for a while because we're so sad that LEGO discontinued the line, thanks for letting us know you'd watch it!

  • @LGP82
    @LGP82 ปีที่แล้ว

    Nice one. Does this work with the old power functions sets (60098)?

  • @accuratebrickinnovations
    @accuratebrickinnovations ปีที่แล้ว

    Truly incredible stuff!

  • @jeepdave
    @jeepdave ปีที่แล้ว

    TH-cam needs more of your content :)

  • @pedrolealfreitas
    @pedrolealfreitas 9 หลายเดือนก่อน

    Excelent video! Watching it will cost me several €€€
    Now you’ve solved the loop problem I have another question for you: how do you deal with switches and do you have a way to automate them (one that doesn’t cost almost the same of a real train 😅)?
    Once again thank you and congrats 🎉

    • @eggybricks
      @eggybricks  9 หลายเดือนก่อน +1

      Thanks! Hope your wallet recovers :D
      We just added some motorized switches and a fully automated track layout so we can fit four trains in our new city - we'll probably have a video up on them soon, if you're interested! They do require a motor and hub though

  • @arturasdubaka
    @arturasdubaka ปีที่แล้ว

    Or you can use a duplo train, which does that by default.

  • @cooIguy
    @cooIguy ปีที่แล้ว

    Definitely need to be a two sided train, like the one that has faces on both ends

  • @wile.e.coyote7666
    @wile.e.coyote7666 ปีที่แล้ว

    Wonderful ! This can resolve my main problem being part of my future track is set up on shelves which are too narrow to make a loop. This is also of course convenient to stop trains at terminus railway stations. Good job !
    ...my only concern is that you have to forget lights on the train engine as PU system only uses two channels, right ? Thx a lot for your work.
    Greetings from northern France !

    • @eggybricks
      @eggybricks  ปีที่แล้ว +1

      Unfortunately, yes, we can't have lights on the train any more because we have both the sensor and the engine. Thanks so much!!

  • @Nikioko
    @Nikioko ปีที่แล้ว

    In my childhood, I didn't need batteries to run my Lego train. It had a transformer which was plugged into the 220 V socket. And the train got the electricity from the tracks.

    • @kepstin
      @kepstin ปีที่แล้ว

      The old 9V track-powered lego trains could also be automated to do this with the classic Mindstorms RCX system! I have the old trains and a Mindstorms RCX, maybe I should try it out. The connector to power the tracks can be connected to the motor output on the RCX. There's no color sensor, but there is a light sensor to detect different brightnesses - or i could use a touch sensor which presses against a tile when the train reaches a certain spot.