HapticΒΆ

The haptic module controls a high current driver to power a motor or buzzer (or similar devices).

In the MMR+ model, the coin vibration motor provides haptic feedback by vibrating using the haptic module.

Functions are defined in the haptic.h header filer. Circuit diagrams for the driver pin are in section 8 of the product specification.

// Run buzzer for 500ms
MetaWear.mbl_mw_haptic_start_buzzer(device.board, 500);

// Run motor at 50% strength for 1000ms
MetaWear.mbl_mw_haptic_start_motor(device.board, 50.0, 1000);

The haptic module does not provide PWM (pulse-width modulation) capability.