Hardware design on Github: rp2040-motor-controller
- SimpleFOC - FOC control for 2 motors
- Serial Commander interface for both motors
- Support for MT6701 encoder in SSI mode
- Support for MT6701 encoder in ABZ mode
- Status LED driver (3x Neopixel)
-DSIMPLEFOC_PWM_LOWSIDE_ACTIVE_HIGH=false
in the build or the board will not work properly and something may be damaged.
This project is set up to use PlatformIO. You can try in other environments, your mileage may vary. In particular, the board definition for the Twisted Fields RP2040 motor controller for PlatformIO is included in this project, and its equivalent for other environments would have to be configured first.
To compile the firmware, install PlatformIO, and then PlatformIO's RP2040 support.
The project should compile without further changes.