How does it work?
Haptic 4 Click is based on the DA7280, a haptic driver designed to drive linear resonant actuator (LRA) and eccentric rotating mass (ERM) actuators from Renesas. The DA7280 stands out with its automatic closed-loop LRA resonant frequency tracking feature, ensuring consistent performance across various conditions, including production tolerances and mechanical coupling effects. Depending on the register configuration, its capability to drive both LRA and ERM actuators originates from its differential output drive architecture and continuous motion sensing, which foster calibration-free operation and reduce software complexity. The DA7280’s architecture is optimized for wideband operation, unlocking the full potential of the latest wideband and multidirectional LRAs. This feature makes it ideal for many applications, from wearables and electronic peripherals to automotive, industrial settings, and AR/VR controllers.
The DA7280’s unique ability to control the drive level across loads connected to the OUT terminal and to sense actuator movement via a current-regulated loop and high-frequency PWM modulation enhances its utility. With support for six independent haptic sequences triggered via the mikroBUS™ pins (GP0, GP1, and GP2) without host interaction and options for external control via I2C or PWM signal, the DA7280 ensures versatile haptic feedback configurations. Using the I2C interface, this Click board™ can communicate with the host MCU supporting frequency up to 1MHz.
The DA7280 is also capable of closed-loop actuator monitoring while driving to enable calibration-free playback, frequency tracking (LRA only), Active Acceleration, Rapid Stop, and actuator diagnostics available on the IRQ pin of the mikroBUS™ socket. Continuous resonant frequency tracking can be enabled while driving an LRA to track the mechanical resonance of the actuator through closed-loop control. This feature maximizes electrical to mechanical energy conversion efficiency for narrowband actuators and is especially useful in applications such as operating system notifications and alarms.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
Haptic
Applications
Ideal for wearables, electronic peripherals, automotive interfaces, industrial controls, and AR/VR controllers
On-board modules
DA7280 – haptic driver designed to drive LRA and ERM actuators from Renesas
Key Features
ERM/LRA motor drive, automatic closed-loop LRA resonant frequency tracking, differential output drive architecture, wideband operation, flexible haptic configuration, external control option (I2C, PWM or GPIO), diagnostics feature, and more
Interface
GPIO,I2C,PWM
Feature
ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Haptic 4 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | PWR SEL | Left | Power Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
Haptic 4 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Maximum Drive Current | – | 250 | 500 | mA |
Software Support
We provide a library for the Haptic 4 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Haptic 4 Click driver.
Key functions
-
haptic4_check_communication
This function checks the communication by reading and verifying the chip ID. -
haptic4_set_vibration_level
This function sets the motor vibration level. -
haptic4_get_vibration_level
This function reads the motor vibration level.
Example Description
This example demonstrates the use of Haptic 4 click board by controlling the attached motor vibration level.
void application_task ( void )
{
float vibration_level;
if ( HAPTIC4_OK == haptic4_set_vibration_level ( &haptic4, HAPTIC4_VIBRATION_LEVEL_MAX ) )
{
if ( HAPTIC4_OK == haptic4_get_vibration_level ( &haptic4, &vibration_level ) )
{
log_printf( &logger, " Vibration level: %.3f rnn", vibration_level );
}
}
Delay_ms ( 2000 );
if ( HAPTIC4_OK == haptic4_set_vibration_level ( &haptic4, HAPTIC4_VIBRATION_LEVEL_MIN ) )
{
if ( HAPTIC4_OK == haptic4_get_vibration_level ( &haptic4, &vibration_level ) )
{
log_printf( &logger, " Vibration level: %.3f rnn", vibration_level );
}
}
Delay_ms ( 2000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Haptic4
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.