This comment regarding valid motor values is misleading:
|
# values of -127, -128, +127 are treated as always ON,, no PWM |
The actual usable range of motor values is -100 to 100, according to the source for setMotor in PiconZero08.ino -
// Byte received is unsigned, so anything over 128 is actually negative. Convert to signed int first
// Value 0 = OFF (Low-Low)
// Value 100+ = Forward (High, Low) no PWM
// Value -100 = Backward (Low, High) no PWM
// Value 1..99 = Forward (High, Low) with PWM value == value
// Value -1 .. -99 = Reverse (Low, High) with PWM value == -command)
// PWM is applied to the first motor pin for Forward and the second motor pin for Reverse
This comment regarding valid motor values is misleading:
PiconZero/Python/piconzero.py
Line 44 in ffdc9d6
The actual usable range of motor values is -100 to 100, according to the source for
setMotorinPiconZero08.ino-