feat(motorgo-plink): Add motorgo plink BSP compoenent#636
Merged
Conversation
|
✅Static analysis result - no issues found! ✅ |
…ter and use new bdc driver component rather than using ledc for motors and leds
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds two new components:
bdc_driver: a reusable brushed DC motor driver component built on ESP-IDF MCPWM for dual-PWM / H-bridge style motor control.motorgo-plink: a new BSP for the Every Flavor Robotics MotorGo Plink board.The new
espp::BdcDriverprovides a generic two-output brushed motor interface with signed speed control, direct duty control, enable handling, and duty/raw-duty readback for debugging.The new
espp::MotorGoPlinkBSP provides:lsm6dsodriverThe Plink motor path now uses the new MCPWM-backed
bdc_driver, which allows the onboard LEDs to continue pulsing while the motor outputs are active. This PR also includes the related README, Sphinx/Doxygen, CI, and component registry wiring for both new components.Motivation and Context
This change adds first-class support for the MotorGo Plink hardware and factors its brushed motor control into a reusable component instead of keeping that logic BSP-specific.
It solves two problems:
The new
bdc_driveralso provides a reusable building block for future brushed DC motor boards and applications that use dual-PWM H-bridge drivers.How has this been tested?
The changes were tested by building the new and updated examples with ESP-IDF on
esp32s3:components/bdc_driver/examplecomponents/motorgo-plink/exampleThe MotorGo Plink example was also iterated to validate:
Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
Types of changes
Checklist:
Software
.github/workflows/build.ymlfile to add my new test to the automated cloud build github action.