This is a fork of upstream Arduino-FOC with integration into ESP-IDF build system.
This fork repository is wrapped as an ESP-IDF component, which offers the algorithm implementation of FOC (Field Oriented Control) for BLDC and stepper motors.
To drive the motors, you need to use this component together with esp_simplefoc, which offers the hardware drivers for motors.
The driver supports all ESP chips with LEDC
or MCPWM
peripherals, please refer to esp_simplefoc for details.
Use this component together with esp_simplefoc.
Just add idf_component.yml
to your main component with the following content::
## IDF Component Manager Manifest File
dependencies:
esp_simplefoc: "*"
Or simply run:
idf.py add-dependency "esp_simplefoc"
- Library introduction can be found on README from the upstream Arduino-FOC.
- Full API code documentation as well as example projects and step by step guides can be found on SimpleFOC Docs Website.