Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for more motor controller break configurations #30

Open
noahzemlin opened this issue Mar 10, 2020 · 0 comments
Open

Add support for more motor controller break configurations #30

noahzemlin opened this issue Mar 10, 2020 · 0 comments
Labels
feature New feature

Comments

@noahzemlin
Copy link
Member

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.

@noahzemlin noahzemlin added the feature New feature label Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant