Skip to content

Documentation for motor values in misleading #9

@robberwick

Description

@robberwick

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions