How to make smart Lego Train layouts

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 52

  • @emanym3909
    @emanym3909 11 місяців тому +14

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

  • @Sergeichxenon
    @Sergeichxenon 11 місяців тому +3

    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!

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

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

  • @wojciechmocek4586
    @wojciechmocek4586 4 місяці тому

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

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

  • @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 3 місяці тому

      ​@@pybricksany update on this?

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

  • @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: ua-cam.com/video/wZc1ix00cZY/v-deo.html

  • @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 11 місяців тому

    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  11 місяців тому

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

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

      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!

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

    Awesome! Thanks!

  • @paulharris4256
    @paulharris4256 10 місяців тому

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

    • @pybricks
      @pybricks  10 місяців тому +1

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

    • @paulharris4256
      @paulharris4256 10 місяців тому

      @@pybricks what browser do I need to use?

    • @paulharris4256
      @paulharris4256 10 місяців тому

      @@pybricks Also; what about Raspberry Pi?

    • @pybricks
      @pybricks  10 місяців тому

      @@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  10 місяців тому

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

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

    Code blocks is paid only?

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

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

  • @田川洋子-b4c
    @田川洋子-b4c 5 місяців тому

    It’s like scratch team but Lego group

    • @musoandafan965
      @musoandafan965 3 місяці тому

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

  • @KevinVanDenHaute
    @KevinVanDenHaute 10 місяців тому

    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  10 місяців тому +1

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