SimpleFOClibrary
Simple Field Oriented Control (FOC) library
We live in very exciting times 😃! BLDC motors are entering the hobby community more and more and many great projects have already emerged leveraging their far superior dynamics and power capabilities. BLDC motors have numerous advantages over regular DC motors but they have one big disadvantage, the complexity of control. Even though it has become relatively easy to design and manufacture PCBs and create our own hardware solutions for driving BLDC motors the proper low-cost solutions are yet to come. One of the reasons for this is the apparent complexity of writing the BLDC driving algorithms, Field oriented control (FOC) being an example of one of the most efficient ones. The solutions that can be found on-line are almost exclusively very specific for certain hardware configuration and the microcontroller architecture used. Additionally, most of the efforts at this moment are still channeled towards the high-power applications of the BLDC motors and proper low-cost and low-power FOC supporting boards are very hard to find today and even may not exist.
Therefore this is an attempt to:
- 🎯 Demystify FOC algorithm and make a robust but simple Arduino library: Arduino SimpleFOClibrary
- Support as many motor + sensor + driver + mcu combinations out there
- 🎯 Develop a modular FOC supporting BLDC driver boards:
- Low-power gimbal driver (<5Amps) : Arduino SimpleFOCShield.
- NEW 📢: Medium-power BLDC driver (<30Amps): Arduino SimpleFOCPowerShield .
- See also @byDagor’s fully-integrated ESP32 based board: Dagor Brushless Controller
At this moment SimpleFOC has more than 220 active forks in GitHub, 450 members in its community platform with over 600 discussions and 8000 posts exchanged between its members.
Features
- Arduino compatible:
- Arduino library code
- Arduino Library Manager integration
- Open-Source: Full code and documentation available on github
- Easy to setup and configure:
- Easy hardware configuration
- Easy tuning the control loops
- Modular:
- Supports as many sensors, BLDC motors and driver boards as possible
- Supports multiple MCU architectures:
- Plug & play: Arduino SimpleFOCShield