haptic3 2.0.0.0
|
Haptic 3 Click is a compact add-on board that uses advanced vibration patterns and waveforms to convey information to a user. This board features the DA7282, a linear resonant actuator (LRA), and an eccentric rotating mass (ERM) haptic driver from Dialog Semiconductor. The DA7282 features LRA or ERM drive capability with automatic closed-loop LRA resonant frequency tracking, guaranteeing consistency across LRA production tolerances. It also offers wideband operation that fully utilizes the capabilities of newer wideband and multi-directional LRAs, alongside three external general-purpose inputs for triggering up to six independent haptic sequences.
We provide a library for the HAPTIC 3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for HAPTIC 3 Click driver.
haptic3_cfg_setup
Config Object Initialization function. haptic3_init
Initialization function. haptic3_default_cfg
Click Default Configuration function. haptic3_set_vibration_level
This function sets the motor vibration level. haptic3_get_vibration_level
This function reads the motor vibration level. haptic3_write_register
This function writes a desired data to the selected register by using I2C serial interface. This example demonstrates the use of HAPTIC 3 click board by controlling the attached motor vibration level.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the motor vibration level every 2 seconds from MAX to MIN, and displays the currently set level on the USB UART.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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 MikroElektronika compilers.