https://github.com/fake-rick/caw-drive
https://github.com/fake-rick/caw-foc
https://github.com/fake-rick/caw-bus-python
Homemade FOC (Field-Oriented Control) Driver: Python & CAN Bus Control
Functionality | Status |
---|---|
Open-loop speed control | ✔ |
Closed-loop current/torque control | ✔ |
Closed-loop speed control | ✔ |
Closed-loop position control | ✔ |
CAN bus communication | ✔ |
Windows
-
Download arm-none-eabi-gcc
-
Set environment variables
Add the absolute path of
gcc-arm-none-eabi\bin
to the Path variable in the system's environment variables.
Mac
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
Switch to the project's root directory and run mingw32-make
. The [CawFOC.elf | CawFOC.bin | CawFOC.hex] files will appear in the build directory.
Park Transformation:https://zhuanlan.zhihu.com/p/614244367
Clark Transformation:https://zhuanlan.zhihu.com/p/613996592
SimpleFOC:https://github.com/simplefoc/Arduino-FOC