Skip to content

Add support for more motor controller break configurations #30

@noahzemlin

Description

@noahzemlin

Currently, the Motor class will write 255 to enpin when speed == 0 as most motor controllers will treat in1pin = in2pin as break or coast regardless of enpin. Some motor controllers, however, determine break vs coast based on the value of enpin.

Example Datasheet with such configuration: https://www.teachmemicro.com/download/l298n-datasheet/?wpdmdl=3366&refresh=5e3f81b45b3cc1581220276 (see page 6)

analogWrite(this->enpin, 255);

analogWrite(this->enpin, 0);

analogWrite(this->enpin, 0);

will need to be changed to have configurable values instead of 255 or 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions