TM6605 Haptic Driver

Browse source code on GitHub

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

See also

Haptics