Skip to content

runger1101001/rp2040-motor-controller-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twisted Fields RP2040 motor controller firmware

⚠️ work in progress, being tested. do not use.

Motor controller hardware

Hardware design on Github: rp2040-motor-controller

Firmware features

  • 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)

Compiling the firmware

⚠️ Current version depends on unreleased changes to the SimpleFOC library. To compile this project before the release of SimpleFOC 2.2.3, please git clone the SimpleFOC dev branch into the lib/ directory of this project.

⚠️ Twisted fields controller uses active-low polarity for low-side switches. Be sure to set -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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published