adafruit / Adafruit_DRV8830

This is a library for the Adafruit DRV8830 I2C motor driver
Other
0 stars 1 forks source link

CircuitPython Driver for the DRV8830 #1

Open CedarGroveStudios opened 3 years ago

CedarGroveStudios commented 3 years ago

I designed and tested a Feather Wing board using the DRV8830 I2C motor driver chip. The code folder of the repo contains a CircuitPython driver with a UI that is functionally the same as _adafruit_motor using the throttle control value of -1.0 (reverse) to +1.0 (forward), 0.0 for braking, and None to coast. In addition, the driver allows throttle settings to be entered as motor voltage, compatible with the DRV8830's underlying motor voltage control scheme. The docs folder contains a "pseudo readthedocs" document showing the UI.

When the Adafruit board becomes available, feel free to use any or all of the CircuitPython driver code as needed.

caternuson commented 3 years ago

The link above appears to be broken. Looks like the repo is here? https://github.com/CedarGroveStudios/DRV8830_I2C_Motor_Controller_Wing

This looks like something that might be good to have added to the Community Bundle: https://github.com/adafruit/CircuitPython_Community_Bundle

Try opening an issue there as a way to start the discussion.

CedarGroveStudios commented 3 years ago

Fixed the link https://github.com/CedarGroveStudios/DRV8830_FeatherWing_PCB/blob/main/code/cedargrove_drv8830.py . Thanks for the suggestion regarding the community bundle. If this board doesn't gel as an Adafruit product before the pandemic is over, I'll submit it. ;)

Giving Adafruit the first shot at it for a pending product is based upon a similar approach I discussed with @ladyada regarding the NAU7802 CircuitPython driver.

CedarGroveStudios commented 2 years ago

The Community Bundle pull request for adding the cedargrove_drv8830 CircuitPython driver was submitted yesterday.