espp/bldc_motor

0.21.0

uploaded 2 days ago
BLDC Motor component for ESP-IDF

readme

# BLDC (Brushless DC) Motor Component

The `BldcMotor` implements the Field-Oriented Control (FOC) algorithm with
support for multiple transforms to drive voltage (such as Sinusoidal and Space
Vector). It supports the following motion control configurations (which can be
changed dynamically):

* Closed-loop angle
* Closed-loop velocity
* Open-loop angle
* Open-loop velocity

Note: currently the code has some support for Torque control, but that requires
current sense - for which I don't yet have the hardware to support the
development of.

The `BldcMotor` should be configured with a `BldcDriver` and optional `Sensor`
(for angle & speed of the motor), and optional `CurrentSensor` (for measuring
the phase currents of the motor and providing torque control).

## Example

The [example](./example) shows the use of the `BldcMotor` component to drive a
BLDC motor (such as a tiny gimbal motor) using Field-Oriented Control (FOC) in
both open-loop and closed-loop control schemes for both position and velocity
control.

Links

Supports all targets

Maintainer

  • William Emfinger <waemfinger@gmail.com>

License: MIT

To add this component to your project, run:

idf.py add-dependency "espp/bldc_motor^0.21.0"

or download archive

Stats

  • Archive size
    Archive size ~ 25.54 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

espp/bldc_motor version: 0.21.0
|