espp/mt6701

0.21.0

uploaded 1 day ago
MT6701 Magnetic Encoder component for ESP-IDF

readme

# Mt6701 Magnetic Encoder Component

The `MT6701` magnetic encoder component provides the user a convenient way to
measure

* Raw count
* Raw radians
* Raw degrees
* Accumulated count (since the component was created)
* Accumulated radians (since the component was created)
* Accumulated degrees (since the component was created)
* Speed (rotations per minute / RPM)

It does so by spawning a task which periodically reads the magnetic encoder,
updates the accumulator, and computes the velocity. The component can be
configured to optionally filter the velocity.

The periodicity / update rate of the encoder can be configured at time of
creation.

The encoder is designed to fulfill the needs of the `BldcMotor` API, to provide
closed-loop motor control.

## Example

The [example](./example) shows the use of the `Mt6701` component to communicate
with a MT6701 magnetic encoder chip.

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/mt6701^0.21.0"

or download archive

Stats

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

Badge

espp/mt6701 version: 0.21.0
|