Hello Everyone,
How do you code the Encoder Motor to go at max rpm?
I tried but all of them didn’t work.
motor.set_target_rpm(max_rpm)
motor.max_rpm
motor.max_rpm()
Thanks in advance
Hello Everyone,
How do you code the Encoder Motor to go at max rpm?
I tried but all of them didn’t work.
motor.set_target_rpm(max_rpm)
motor.max_rpm
motor.max_rpm()
Thanks in advance
Here’s an example of how to use the EncoderMotor
You can also use the DriveController class if you are building a two-wheeled robot - we use this in many of the tutorials we have on Further but here is some example code:
from pitop import DriveController
drive = DriveController(left_motor_port="M3", right_motor_port="M0")
drive.forward(1) # set between 0 and 1 for zero to max speed