How to make smart Lego Train layouts

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

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

  • @emanym3909
    @emanym3909 ปีที่แล้ว +14

    Thanks for doing what TLC is not doing for their own app!

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

    Awesome step by step programming explaination.
    Thank you!
    Looking forward for track switches programming:)

  • @3DKiwi
    @3DKiwi 5 หลายเดือนก่อน +1

    Thanks. This was a huge help to understanding how sensors work. I couldn't figure out how to make a motor stop and start when a sensor detected something. Now I can :)
    t

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

      Awesome. I subscribed to your channel. Looking forward to seeing what you'll make with Pybricks! And thank you so much for supporting the Pybricks project by signing up for block coding!

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

    I also used PyBricks to program my motorized tram. It was very difficult to distinguish tan from yellow or red from reddish brown :D
    However, I didn't have a "best match" function back then. So it was very hard to distinguish all these colors.

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

    Fantastic work on the block coding and on the guide!

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

      Thank you! We're not quite up there with proper video creators like you, but we're trying and learning. New mic on the way 😁.
      We're super excited to finally release this feature. We hope this will make it even more accessible for non-coders.
      More train videos coming up!

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

      @@pybricks I've been using a $30 lav mic and primarily my phone for recording video for years, I've been due for an upgrade for a while 😅

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

    Great video, I currently use PyBricks for my trains, but manually program the hubs, the block method looks cool. Do you have a schematic for building the switch point please? Your version looks compact to what I’m currently using 😃

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

      Yes! Making instructions for the switch is on our to-do list. It's a frequent request 😀

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

      @@pybricks Great. 😎

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

      ​@@pybricksany update on this?

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

    @pybricks Why hub is not being added to settings section?

  • @CastleWolf17
    @CastleWolf17 11 หลายเดือนก่อน +1

    Hi, can you run multiple trains at once with motorized switches, etc, to automate a huge layout completely with Pybricks? Or can you only program/run one train hub at once?

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

      Sure you can! Once a program is saved on the hub you can run it again without a connection. Just press the green button.
      So at that point they run all by themselves and you can move onto the next... But yes, you can even code multiple at the very same time.

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

      @@pybricks So you can run multiple hubs at the same time in the same program, correct?

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

      @@CastleWolf17Each hub runs its own separate program. But you can send messages between the two. We have a video tutorial for that too :)

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

      @@pybricks Oh,ok, sounds great, thanks! Your program is awesome and much better than LEGO's own powered up app lol

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

    Great... i bought spike essential for my kids, but also spike prime for me. Do you have an overview what parts synergize with pybricks? Can i also use buwizz or cada parts? Or only lego motors/battery Packs?

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

      All official parts from Spike Prime, Spike Essential, Powered Up, Boost, and recent technic sets work seamlessly together. You can even use them together in one large build. You can browse around the documentation to see all devices and available blocks: docs.pybricks.com/en/latest/

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

      @@pybricks the link shows a 404 page?
      I think i will stick to prime blocks though they are so expensive. During christmas holudays i gonna join you as a patreon :)

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

      @@JohnTrasher thanks, looking forward to seeing you there! The link works for me, but I'll keep an eye out for it today.

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

    I tried your code, it was going back and fourth (I'm building a city across 3 diffrent coloured tables) on some of the tables

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

    Can the blocks be automatically be converted into Python code if needed?
    For example, I start making the program using blocks, and then decide I want to continue to edit it using Python.

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

      Yes! You can even see it change live as you move blocks around. See a demo here: th-cam.com/video/wZc1ix00cZY/w-d-xo.html

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

    Awesome! Thanks!

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

    Hello, would it be possible to use a NXT with Pybricks? I really like python block coding as I am used to it from Spike prime education. Thanks!

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

      Possible in theory, at least the brick is powerful enough. Right now we're focusing on the current hubs. But with enough supporters, we may be able to support NXT and EV3 as well at some point. =)

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

      @@pybricks OK, thanks for responding. I would love to see it as the software supporting NXT are all pretty outdated. :D

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

      @@Monkey909 Completely agreed! I'd say tell LEGO you'd like to see Pybricks support for NXT and EV3. With their support we can make it happen :)

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

    Do you have a block code for the automatic switch ? Maybe on a website or forum somewhere.

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

      The one in the video works like this: wait for train detection (a low distance measurement), then turn the switch. Then wait for the train to pass (wait for large distance measurement).

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

    Ok been trying this out today. The motor either just goes back and forth very quickly or just passes the color that I created.

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

      Happy to help - this is a good place to ask: github.com/orgs/pybricks/discussions

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

      Just a thought, did you also add the colors of the track sleepers and background as in the video?

    • @bencarney
      @bencarney 11 หลายเดือนก่อน +1

      Plus 1 to this - it has no trouble recognizing the colors (I make it print them also) but drives straight past them. I have the track and background added

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

      I put the motor blocks inside individual tasks, and then put the tasks in and it worked

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

      @@bencarney The best way to get help is to share a screenshot of your code in the forum link above. Thanks!

  • @田川洋子-b4c
    @田川洋子-b4c 5 หลายเดือนก่อน

    It’s like scratch team but Lego group

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

      its not by Lego, it's 3rd party. You need to pay to use the code blocks so not like scratch which is free 🙃

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

    Can I use an Apple computer to do all this or must I have a windows computer?

    • @pybricks
      @pybricks  11 หลายเดือนก่อน +1

      Yes, Mac/Windows/Linux/Android are all supported!

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

      @@pybricks what browser do I need to use?

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

      @@pybricks Also; what about Raspberry Pi?

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

      @@paulharris4256Chrome, Edge, or any other browser that supports Bluetooth. note that you can try out everything for free, so just give it a go - See the website for this :)

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

      @@paulharris4256 on raspberry pi, Chrome should be available as well. Chromium is a good open source variant.

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

    Code blocks is paid only?

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

      Yes - Using blocks is a great way to support the whole Pybricks project, including Python coding which remains open source and free :)

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

    Nice, but a lot of limitations. No port over for lights, multi-trains on a track, .. but good for the kids to get in touch with basic programming.

    • @pybricks
      @pybricks  11 หลายเดือนก่อน +1

      You can totally do multi-trains on track, and even make them communicate wirelessly... See our other video for that. Possibilities are endless :)