# espFoC simple demo: This example demonstrates how to setup a PMSM motor using the espFoC in its closed loop position control, 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 advance 100 turns and stop.
To create a project from this example, run:
idf.py create-project-from-example "ulipe/espfoc=1.2.3:simple_servo"