controlling a motor real-time by embedding pybricks into python code #2121
Unanswered
GeorgeZ-ML4NS
asked this question in
Q&A
Replies: 1 comment
-
|
If you want to bypass the Pybricks motor control and implement your own, you can use the Motor.dc() method to directly control the voltage of the motor. To achieve real-time control, you will need to make your Python code Pybricks-compatible so that it can run on the hub itself. There is generally too much latency for real-time control if you try to implement the control on another device and use Bluetooth to communicate with the hub. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi there,
We're planning to integrate the pybricks system into a research experiment: we want the lego motor to be a real-time output, responding to input signals from other sources integrated in our main python code.
Can this can be feasibly done with pybricks in vscode environment? When you run the vscode script, does it connect with the hub in real time, or does it only download to the hub a offline version of it?
Beta Was this translation helpful? Give feedback.
All reactions