TM6605 Haptic Driver
Overview
This sample cycles through a handful of the TM6605’s pre-programmed haptic
effects, selecting each one in turn and triggering playback via the generic
Haptics API and the device-specific
tm6605_select_effect() helper.
Building and Running
Build the application for the Nucleo F401RE board, and
connect a TM6605 (e.g. the DFRobot Gravity TM6605 module, DRI0056) on the
arduino_i2c bus at the 7-bit address 0x2D.
west build -b nucleo_f401re samples/drivers/haptics/tm6605
When using the DFRobot Gravity TM6605 module on a board with an I2C connector, the DFRobot Gravity TM6605 Haptic Motor Driver Module shield can be used instead of a board overlay:
west build -b adafruit_qt_py_rp2040 --shield dfrobot_gravity_tm6605 samples/drivers/haptics/tm6605
References
TM6605 module: https://www.dfrobot.com/product-3003.html
TM6605 datasheet (Chinese): https://dfimg.dfrobot.com/wiki/23281/DRI0056_gravity-tm6605-haptic-motor-driver-module_datasheet_V1.0.pdf
DFRobot reference library: https://github.com/DFRobot/DFRobot_TM6605