Pybricks for build hat? In python on pi? #1960
gregorianrants
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
|
Thanks for your note. See #812 for some previous discussion. It would be quite doable to port the Pybricks motors and sensor drivers to the Raspberry Pi Build Hat. However, for some reason loading other firmware seems to require a signing key that we do not have. See also RaspberryPiFoundation/python-build-hat#135 Doing it in Python and interfacing with the existing Build Hat firmware isn't going to give a very good experience, since it would have all the same problems and limitations as the current implementation. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any interest in making a Pybricks for the buildhat?
What about just doing it in python on the raspberry pi?
I have read in other places that there are issues with the rate sensors can be read. There is a new command that allows changing the rate data is output at.
Using selrate(10) with the motors causes data to be output every 10ms
Not sure how it works with other sensors as I don’t have any. I just use gpio sensors.
I have implemented my own attempt at this in python you can find it here
https://github.com/gregorianrants/buildhat-alternative
It only does speed control so far. I haven’t looked at position control. I have played about with stall detection and had success but it hasn’t been pushed to the repo yet, as the code need polish.
I have previously mentioned doing this in another question, but the previous version was in nodejs and was not a standalone library.
The current version is fully in python it loads the firmware its self and can be installed in other projects.
To see it in action you can have a look at this project.
https://github.com/gregorianrants/composed-robot
Beta Was this translation helpful? Give feedback.
All reactions