ulipe/espfoc

3.0.1

Latest
uploaded 1 day ago
Field Oriented Control (FOC) library for PMSM/BLDC motors on Espressif chips with MCPWM, ETM and ADC DMA.

8 examples

  • foc_sensored_gui
    GUI controls a PMSM/BLDC motor with an AS5600 encoder. Supports torque, speed, and position.
    188.51 KB
  • foc_sensored_servo
    A field-oriented PMSM/BLDC position servo with AS5600 feedback and automatic motor commissioning.
    677.73 KB
  • foc_sensored_torque
    Field-oriented torque control of a PMSM/BLDC motor with an AS5600 magnetic encoder. The motor is commissioned automatically.
    575.06 KB
  • foc_sensored_velocity
    Field-oriented speed control of a PMSM/BLDC motor with an AS5600 magnetic encoder.
    615.26 KB
  • foc_sensorless_gui
    Sensorless field-oriented control of a PMSM/BLDC motor driven from a desktop GUI, using a back-EMF observer.
    158.23 KB
  • foc_sensorless_torque
    Sensorless field-oriented torque control for PMSM/BLDC motors, using a flux observer to estimate rotor angle.
    540.47 KB
  • foc_sensorless_velocity
    Sensorless field-oriented speed control for a PMSM/BLDC motor. A flux observer estimates rotor angle and speed.
    591.13 KB
  • unit_test_runner
    Runs Unity suites from test/ on any supported chip, including portable math blocks, OSAL, and stacks against a mock motor.
    2.33 KB