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
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!
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!
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.
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 😃
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?
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.
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?
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/
@@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 :)
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.
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. =)
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).
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
@@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 :)
Thanks for doing what TLC is not doing for their own app!
Awesome step by step programming explaination.
Thank you!
Looking forward for track switches programming:)
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
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!
Fantastic work on the block coding and on the guide!
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!
@@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 😅
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.
@pybricks Why hub is not being added to settings section?
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
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 😃
Yes! Making instructions for the switch is on our to-do list. It's a frequent request 😀
@@pybricks Great. 😎
@@pybricksany update on this?
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?
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.
@@pybricks So you can run multiple hubs at the same time in the same program, correct?
@@CastleWolf17Each hub runs its own separate program. But you can send messages between the two. We have a video tutorial for that too :)
@@pybricks Oh,ok, sounds great, thanks! Your program is awesome and much better than LEGO's own powered up app lol
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?
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/
@@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 :)
@@JohnTrasher thanks, looking forward to seeing you there! The link works for me, but I'll keep an eye out for it today.
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.
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
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!
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. =)
@@pybricks OK, thanks for responding. I would love to see it as the software supporting NXT are all pretty outdated. :D
@@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 :)
Do you have a block code for the automatic switch ? Maybe on a website or forum somewhere.
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).
Ok been trying this out today. The motor either just goes back and forth very quickly or just passes the color that I created.
Happy to help - this is a good place to ask: github.com/orgs/pybricks/discussions
Just a thought, did you also add the colors of the track sleepers and background as in the video?
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
I put the motor blocks inside individual tasks, and then put the tasks in and it worked
@@bencarney The best way to get help is to share a screenshot of your code in the forum link above. Thanks!
Awesome! Thanks!
Can I use an Apple computer to do all this or must I have a windows computer?
Yes, Mac/Windows/Linux/Android are all supported!
@@pybricks what browser do I need to use?
@@pybricks Also; what about Raspberry Pi?
@@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 :)
@@paulharris4256 on raspberry pi, Chrome should be available as well. Chromium is a good open source variant.
Code blocks is paid only?
Yes - Using blocks is a great way to support the whole Pybricks project, including Python coding which remains open source and free :)
It’s like scratch team but Lego group
its not by Lego, it's 3rd party. You need to pay to use the code blocks so not like scratch which is free 🙃
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.
You can totally do multi-trains on track, and even make them communicate wirelessly... See our other video for that. Possibilities are endless :)