ADEEPT AWR Wheeled Robot Manual page 78

4wd smart robot kit compatible with raspberry pi 4 3 model b+ b, opencv target tracking
Table of Contents

Advertisement

69
Control A and B motors to rotate at full speed for 3 seconds
'''
motor_A(1,
100)
motor_B(1,
100)
time.sleep(3)
'''
Control A and B motors to rotate in opposite directions at full speed for 3 seconds
'''
motor_A(-1,
100)
motor_B(-1,
100)
time.sleep(3)
'''
Stop the motor rotation of A and B ports
'''
motorStop()
●The above codes can be used to control the motor movement. The structure of the two functions motor_A and
motor_B is the same, but the control servo port is different. This function requires two parameters, one is the direction
and the other is the speed. 1 or -1. The minimum speed is 0 and the maximum value is 100. Since the speed adjustment
is adjusted by PWM, it is actually equivalent to adjusting the voltage value of the motor port. The motor has a
deceleration mechanism as a load. There will be no rotation, so the speed value should not be too low.
●According to the actual situation, changing the speed value of the robot driven by the motor will only make the
robots starting speed slower, which has little effect on the maximum speed, and when the given speed is too low, it will
cause the motor to stall.
Th
motor_
and the
is adjus
deceler

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AWR Adeept Wheeled Robot and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Picar-b

Table of Contents

Save PDF