Pybricks

Pybricks

Пікірлер

  • @Mohamedalhussainie-t1q
    @Mohamedalhussainie-t1q17 сағат бұрын

    Does it work with the Lego huracan Lamborghini 42196

  • @pybricks
    @pybricks8 сағат бұрын

    I don't think that set has motors, right? I suppose you could make your own vehicle if you add motors.

  • @Ekipsogel
    @EkipsogelКүн бұрын

    I can't get my controller to connect to my hub

  • @3DKiwi
    @3DKiwi3 күн бұрын

    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
    @pybricks3 күн бұрын

    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!

  • @andreafavero71
    @andreafavero7125 күн бұрын

    Super!

  • @KRAKERSIK1000
    @KRAKERSIK100026 күн бұрын

    Thanks man ,luv u!

  • @legogonegaming
    @legogonegaming26 күн бұрын

    I have done everything described in this video which was very helpful btw, but when I press the button on the hub again it turns red and when I turn the controller on it connects and turns green like it’s supposed to, but then when I press the forward or reverse button on the controller it does nothing and starts flashing blue and I have redownloaded the program fully several times but it still doesn’t work it keeps saying the requested operation is not valid in the current state and to check the traceback and gives errors on code lines 268, 95, and 464. Can someone please help me fix this. Thanks very much.

  • @pybricks
    @pybricks26 күн бұрын

    Can you post the code you've tried at our forum over at github.com/orgs/pybricks/discussions? Thanks!

  • @shadowfax3505
    @shadowfax3505Ай бұрын

    Edit: I was mistaken, you can still use the python section for free. Just set it to python when creating your project. Guys, unfortunately they've made it all behind a paywall now. I went to try to change one of my python programs and it wouldn't let me access the python section without paying for the block programming section first. Only thing they would let me do for free is restore the old firmware, so at least I can still control my sets with my phone...

  • @pybricks
    @pybricksАй бұрын

    Nothing has changed to Python. It's free. It's even open source, so you could even make a complete copy if you wanted to. Block coding is completely optional, and we're super grateful for everyone who has supported us that way. Not everyone may realize it, but this is what makes all the free stuff possible, and we'd love to keep making more exciting free features. It sounds like you've opened a *block* project and then tried to edit the generated *Python* code. That doesn't work, since changing the blocks would immediately change the code again. To use Python, just open an actual Python project :)

  • @shadowfax3505
    @shadowfax3505Ай бұрын

    @@pybricks Oh ok! Thanks for the quick response. I hadn't used pybricks in awhile and I didn't see the option for the python. I haven't used pybricks and python used to be the default.

  • @pybricks
    @pybricksАй бұрын

    ​@@shadowfax3505and it remembers your setting, so Python will be the default for you. If you want to update your same comment on racing bricks channel video about this, that would be nice. There's no paywalls for any of the original features features :)

  • @SadSadDeadM
    @SadSadDeadMАй бұрын

    You're doing incredible work. Is there any chance to support other language like GO? What would have to be done to add support for it?

  • @pybricks
    @pybricksАй бұрын

    We'd need a big enough community interested in using it :-) But if your existing GO application can work with BLE, you can already use it on the other end, and communicate with the LEGO boards too.

  • @emmetbrickhacker5029
    @emmetbrickhacker5029Ай бұрын

    Did you tried this with microbit? Im courious, if it works. Can you please make tutorial, how to connect Circuit Cubes with LEGO hubs via BLE?

  • @pybricks
    @pybricksАй бұрын

    @@emmetbrickhacker5029 All you need is a MicroPython board with BLE. There are so incredibly many, that we can't test them all :) The oldest MicroBit iteration doesn't let you control Bluetooth like this I think, but the newer versions might.

  • @matsu9790
    @matsu97902 ай бұрын

    What a cool functionality ;) is somewhere block diagram for example?

  • @pybricks
    @pybricks2 ай бұрын

    Yep - link in description! :)

  • @PoweredUP_
    @PoweredUP_2 ай бұрын

    I'm amazed by the precision it has, that's great

  • @blockpartyrobotleague
    @blockpartyrobotleague2 ай бұрын

    How do you set this up in Pybricks? I want to control the motors on two separate hubs with the remote, but I'm having trouble figuring out how (even after watching your hub communication tutorials...) EDIT: I think I might have figured it out, so no worries!

  • @pybricks
    @pybricks2 ай бұрын

    We've got a few example projects coming to our site soon, since the big Technic sets also use that technique :)

  • @blockpartyrobotleague
    @blockpartyrobotleague2 ай бұрын

    @@pybricks Sweet, thanks!

  • @user-qw1xd1lu6u
    @user-qw1xd1lu6u3 ай бұрын

    Hello, I am using Pybricks, and I am programming in Scratch mode. However, I am having trouble using Scratch to write a line-following program. I can write the same way in the Lego programming, but I can't do it in Pybricks. Can you please tell me how to do line-following in Pybricks?

  • @pybricks
    @pybricks3 ай бұрын

    Thanks! Could you ask this on our discussion forum over at github.com/orgs/pybricks/discussions please? We can post examples and screenshots there, which is not possible in the KZread comments :)

  • @samuelstokes5229
    @samuelstokes52293 ай бұрын

    fuck pybricks you charge us to use something you call free fuck yall

  • @itamarguzi2347
    @itamarguzi23473 ай бұрын

    Can I control a city hub with the Xbox controller? Same as video but only 2 motors, one for drive, and one for steer? I tried to run a program on the hub, and I got an error with the controller

  • @pybricks
    @pybricks3 ай бұрын

    The City Hub cannot connect to the Xbox controller unfortunately.

  • @pybricks
    @pybricks3 ай бұрын

    The code used is here! github.com/orgs/pybricks/discussions/1575#discussioncomment-8963773 Just upvote this if you'd like to see a step by step tutorial!

  • @fabianpv4782
    @fabianpv47823 ай бұрын

    Great demo. Do you have a git repo on which you share the code. I think you used the color distanse sensor. I have some trouble with them. I cannot get them working with more than three colors😢. Great video, thanks

  • @pybricks
    @pybricks3 ай бұрын

    Could you post your code at the forum? Thanks! github.com/orgs/pybricks/discussions

  • @paulharris4256
    @paulharris42563 ай бұрын

    I had the same issue. I had to actually measure the colour values for each colour that I wanted to use and then code the sensor to look specifically for that colour. I worked in Python code, not the block coding.

  • @jacobroebuck5648
    @jacobroebuck56483 ай бұрын

    Awesome. Is there a tutorial for this somewhere?

  • @pybricks
    @pybricks3 ай бұрын

    This video is a combination of two techniques: - Making trains respond to colors: kzread.info/dash/bejne/nauitcSnnMu1m6Q.html - Hub to hub communication, see kzread.info/dash/bejne/ia6hxcuhg7mYiag.html and kzread.info/dash/bejne/np2qlZmbZ7O-hbQ.html Have fun!

  • @swanny6627
    @swanny66273 ай бұрын

    Where can i find some example code of combining remote control with autonomous control. With no need for the pc to be contected once program is installed.

  • @pybricks
    @pybricks3 ай бұрын

    Here's one example: pybricks.com/projects/sets/technic/42099-off-roader/powered-up-remote/ There's more if you navigate through the rest of the projects :)

  • @thorbjrnhellehaven5766
    @thorbjrnhellehaven57664 ай бұрын

    Can you explain about the individual license? I appreciate that it is single user, but can I use it on my desktop computer at home on day, then my laptop the next day? Does the license need to be released from one device to use with another device? I have previously payed for other software, where it was tied to a device, and license had to be released to use on another device, causing a loss when with a system failure.

  • @pybricks
    @pybricks4 ай бұрын

    You can use it across multiple personal devices without deactivating. We'd like to keep things simple for the user so you can focus on the creative aspects of coding :)

  • @thorbjrnhellehaven5766
    @thorbjrnhellehaven57664 ай бұрын

    @@pybricks thank you! Then I'll probably set up the recommended app test to verify my hardware pretty soon. Before buying the license 🙂 maybe next week, or at least the week after.

  • @matsu9790
    @matsu97903 ай бұрын

    I am really happy that after I bought a license, we are seeing more and more updates regarding block diagram projects. That's really helps with understanding coding. Thank you for your standstill supporting of this software :) (I hope longer than LEGO support its Mindstor Robot Inventor)

  • @pybricks
    @pybricks3 ай бұрын

    @@matsu9790 Thank you for your support! Getting a license really helps us keep the project alive. So glad to hear you're happy with it!

  • @christianmeier2725
    @christianmeier27254 ай бұрын

    Brilliant!! The SPIKE socket limit is therefore off the table for good !! 🥳🥳🥳

  • @christianmeier2725
    @christianmeier27254 ай бұрын

    Just great!!!

  • @tomekjaki6840
    @tomekjaki68404 ай бұрын

    Hello I have problems to connect my lego spike hub with mindstorm app. Could you help me with this issue?

  • @pybricks
    @pybricks4 ай бұрын

    Sure! Although this is using Pybricks, not the Mindstorms app. But you can still ask about it on our forum, we can probably help :)

  • @GubstersGarage
    @GubstersGarage4 ай бұрын

    Yes!!! Now we can mix hubs, awesome!

  • @shanglightblade2073
    @shanglightblade20734 ай бұрын

    impressive

  • @raphaelfuccia
    @raphaelfuccia4 ай бұрын

    congratulations! Could you explain how you made the switch track moc? what pieces did you use and the tutorial! thank you very much

  • @stupidratt
    @stupidratt5 ай бұрын

    bro is not drifting in a train 💀

  • @raphaelfuccia
    @raphaelfuccia5 ай бұрын

    Incredible! Congratulations on the great work! I installed it on my AUDI but it doesn't connect to the Xbox One joystick. Do I have to do any updates to the joystick? Thank you very much!

  • @pybricks
    @pybricks5 ай бұрын

    All models with Bluetooth since 2016 are supported. Check out this page for compatible models, connectivity tips, and updating the controller: docs.pybricks.com/en/latest/iodevices/xboxcontroller.html

  • @hasse1854
    @hasse18545 ай бұрын

    Fantastic! Is this coming for Playstation controller as well?

  • @pybricks
    @pybricks5 ай бұрын

    As far as we know, only the Xbox controllers use Bluetooth Low Energy (BLE), which is what the LEGO hubs use. Maybe ask Sony to enable BLE too, like Microsoft did with an update for controllers as far back as 2016! 😃

  • @hasse1854
    @hasse18545 ай бұрын

    @@pybricks Thanks for the response! Alright, but a Playstation controller seems to work with the official Lego Mindstorms app => kzread.info/dash/bejne/mW2Bm7mgp6nIiqg.html Or is this not (BLE) due to the need of the mobile application?

  • @pybricks
    @pybricks5 ай бұрын

    @@hasse1854Indeed, that app uses your phone in-between. Much more lag, and not convenient. If you use Pybricks once, you can just press the button to connect as in 0:16 the next time. No apps and no phones needed :)

  • @SeconYan
    @SeconYan5 ай бұрын

    @@pybricks so there is no medium right? I've been looking for it for a long time. It seems that i should god a Xbox controller :D, thanks!

  • @pybricks
    @pybricks5 ай бұрын

    @@SeconYanit's direct control, nothing in between if that's what you mean. Nothing behind the camera :)

  • @dreadheaddad5440
    @dreadheaddad54405 ай бұрын

    Hey. I Love yout Work and I use Pybricks on my Mindstorm and my Spike Hub. Now I received a Boost Hub, flashed to Pybricks, used the syntax as I was used to, but I can't start the internal Motors by Script. I tried a lot, but I miss something I guess. Is is possible to give me a short example of Code, so that I'm able to see my mistake? Any good web adress with sample codes? I looked the Internet up myself, but I couldn't find anything useful and I'm stuck in my Problem and highly confused, because with Spike and Mindstorms eveything is working fine. Thanks!

  • @thorbjrnhellehaven5766
    @thorbjrnhellehaven57665 ай бұрын

    ❤❤❤ Analog controller for the win!!! The LEGO remote is just so limited with only digital controls.

  • @vedran.kapetanic
    @vedran.kapetanic5 ай бұрын

    Been waiting for this. Thank you for the amazing work, as always! :D

  • @SaperPl1
    @SaperPl15 ай бұрын

    I would suggest making different profiles and setups for different types of steering for tracked vehicles :)

  • @pybricks
    @pybricks5 ай бұрын

    Totally! Example for the Liebherr crane is coming soon!

  • @SaperPl1
    @SaperPl15 ай бұрын

    @@pybricks Well, my point was that there are different types of steering in tanks that make them behave differently and implementing them mechanically is complicated, while turning in place (neutral steering) and fully locking one track is not always historically accurate. Also 1:1 connection of sticks to the motor input is not ideal in some cases where you'd also like to have two stick steering.

  • @kajakmanmitch
    @kajakmanmitch5 ай бұрын

    Can you share this code with us, or is it secret? ;)

  • @kajakmanmitch
    @kajakmanmitch5 ай бұрын

    I have made it work with the Audi set, thanks a lot! :) I will try to program extra features, such as switch off based on button combination, maybe stuck motor detection, etc. Thanks a lot for your work! :)

  • @pybricks
    @pybricks5 ай бұрын

    Glad to hear it!

  • @TimmeyTV
    @TimmeyTV5 ай бұрын

    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.

  • @joelOnDrugs
    @joelOnDrugs5 ай бұрын

    can this robot work on only four legs

  • @KevinVanDenHaute
    @KevinVanDenHaute5 ай бұрын

    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
    @pybricks5 ай бұрын

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

  • @paulharris4256
    @paulharris42565 ай бұрын

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

  • @pybricks
    @pybricks5 ай бұрын

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

  • @paulharris4256
    @paulharris42565 ай бұрын

    @@pybricks what browser do I need to use?

  • @paulharris4256
    @paulharris42565 ай бұрын

    @@pybricks Also; what about Raspberry Pi?

  • @pybricks
    @pybricks5 ай бұрын

    @@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
    @pybricks5 ай бұрын

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

  • @paulharris4256
    @paulharris42565 ай бұрын

    Can I use Pybricks to talk to a Lego City (train) hub using an Apple computer? I want to program my trains but don’t have a Windows computer

  • @pybricks
    @pybricks5 ай бұрын

    Yes, Mac is supported! You can try it out to be sure. (In fact Windows was not even used to record this video!)

  • @CastleWolf17
    @CastleWolf176 ай бұрын

    Will this work for the hubs that come in LEGO City Train sets as well?

  • @pybricks
    @pybricks6 ай бұрын

    Yes! See 6:46.

  • @CastleWolf17
    @CastleWolf176 ай бұрын

    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
    @pybricks6 ай бұрын

    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
    @CastleWolf176 ай бұрын

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

  • @pybricks
    @pybricks6 ай бұрын

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

  • @CastleWolf17
    @CastleWolf176 ай бұрын

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

  • @MonsieurCaron
    @MonsieurCaron6 ай бұрын

    This is fantastic.

  • @remedioscamara4489
    @remedioscamara44896 ай бұрын

    Great😊

  • @fugatechlego
    @fugatechlego6 ай бұрын

    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
    @pybricks6 ай бұрын

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

  • @pybricks
    @pybricks6 ай бұрын

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

  • @bencarney
    @bencarney6 ай бұрын

    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
    @bencarney6 ай бұрын

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

  • @pybricks
    @pybricks6 ай бұрын

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

  • @Xolotlcraft
    @Xolotlcraft6 ай бұрын

    hi, i´ve used lego mindstorms for a while now, but now im more into arduino and the code behind it, is it possible to connect an arduino and a lego mindstorms hub with an hc-05 module using pybricks and transfering data from both sides?, i would like to use mindstorms again using more advance code and more sensors for crazy machines, thank you for reading!

  • @pybricks
    @pybricks6 ай бұрын

    Sure, you could make an arduino that has BLE support broadcast and observe the same data as the hubs!

  • @Xolotlcraft
    @Xolotlcraft6 ай бұрын

    Thanks for replying!!! Do you have any examples of how that could be done?@@pybricks

  • @pybricks
    @pybricks6 ай бұрын

    @@XolotlcraftNot yet - our focus is on the LEGO hubs for now :)

  • @Xolotlcraft
    @Xolotlcraft6 ай бұрын

    Ok, thanks!!!

  • @1Cygapb1
    @1Cygapb16 ай бұрын

    Cool stuff! Is it possible to send bluetooth data not from another pybricks hub, but from computer? Like python program on a laptop sends data and pybricks hub reads it?

  • @pybricks
    @pybricks6 ай бұрын

    Yes, we've published the protocol. Anything that can scan/broadcast will work. For example an Arduino or Raspberry Pi will work too.

  • @1Cygapb1
    @1Cygapb16 ай бұрын

    @@pybricks is it just a protocol description or ready-to use lib or code example?

  • @pybricks
    @pybricks6 ай бұрын

    @@1Cygapb1 just the protocol. We'll post an arduino example at some point.

  • @thorbjrnhellehaven5766
    @thorbjrnhellehaven57666 ай бұрын

    ​​​@@pybricks how about the BBC microBit? That's a common device for education here, and would be nice to utilize it with joysticks and buttons as a remote, rather than the LEGO remote, with only digital input. Would love some examples for microBit to build upon. My "dream remote": microBit + 2x joysticks + 2x analog triggers + 8x buttons + 20x4 LCD i2c

  • @pybricks
    @pybricks6 ай бұрын

    @@thorbjrnhellehaven5766Anything with Bluetooth Low Energy should work. I think the MicroBit V2 has that! Would you mind asking your question over at github.com/orgs/pybricks/discussions That will allow us to post a proper example code and allow others to learn from it too :)

  • @thorbjrnhellehaven5766
    @thorbjrnhellehaven57666 ай бұрын

    Really cool!!! I have RI hub, Prime,hub and Boost hub. Now, I want the Essential hub. To have the option for two remote I/O. 😊

  • @matsu9790
    @matsu97906 ай бұрын

    I am looking forward to see a sale discount for block diagram functionality :)

  • @pybricks
    @pybricks5 ай бұрын

    We have one this week! Check our Facebook page :)

  • @strider3438
    @strider34386 ай бұрын

    Fantastic, hope this channel blows up soon🎉

  • @Sergeichxenon
    @Sergeichxenon6 ай бұрын

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