espp/bldc_haptics

1.0.22

Latest
uploaded 6 days ago
BLDC Motor Haptics component for ESP-IDF

readme

BLDC (Brushless DC) Motor Haptics Component

Badge

The BldcHaptics class is a high-level interface for controlling a BLDC motor with a haptic feedback loop. It is designed to be used to provide haptic feedback as part of a rotary input device (the BLDC motor). The component provides a DetentConfig interface for configuring the input / haptic feedback profile for the motor dynamically with configuration of:

  • Range of motion (min/max position + width of each position)
  • Width of each position in the range (which will be used to calculate the actual range of motion based on the number of positions)
  • Strength of the haptic feedback at each position (detent)
  • Strength of the haptic feedback at the edges of the range of motion
  • Specific positions to provide haptic feedback at (detents)
  • Snap point (percentage of position width which will trigger a snap to the nearest position)

The component also provides a HapticConfig interface for configuring the haptic feedback loop with configuration of:

  • Strength of the haptic feedback
  • Frequency of the haptic feedback [currently not implemented]
  • Duration of the haptic feedback [currently not implemented]

Example

The example shows the use of the BldcHaptics component to drive a BLDC motor (such as a tiny gimbal motor) as a user input / output device that provides haptic feedback (such as might be used as a rotary encoder input).

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_haptics^1.0.22"

or download archive

Stats

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

Badge

espp/bldc_haptics version: 1.0.22
|