Open CedarGroveStudios opened 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.
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.
The Community Bundle pull request for adding the cedargrove_drv8830 CircuitPython driver was submitted yesterday.
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.