speed_control

Example of the component ulipe/espfoc v1.1.0
# espFoC simple demo:
This example demonstrates how to setup a PMSM motor using the espFoC in
its closed loop speed conntrol, that is it 3 PWM output plus I2C encoder
sensor.

## Getting started:
* You must wire your ESP32 board to an driver breakout board which supports
 3 PWM driving such as: L6234, L6230 or DRV8301;

* Install the ESP-IDF and export it;
* Configure this project if needed by:
```
$ idf.py menuconfig
```
* On terminal, inside of this folder type:
```
$ idf.py build flash monitor
```
* The motor should start to moving with a 1 turn/sec

To create a project from this example, run:

idf.py create-project-from-example "ulipe/espfoc=1.1.0:speed_control"

or download archive (~3.05 KB)