vibromotor4 2.0.0.0
|
Vibro Motor 4 Click is a compact add-on board that makes an ideal solution for adding simple haptic feedback in any design. This board features the G1040003D, a coin-sized linear resonant actuator (LRA) that generates vibration/haptic feedback from Jinlong Machinery & Electronics, Inc. Driven by a flexible Haptic/Vibra driver, the DRV2605, G1040003D vibrates in the Z-axis, which is perpendicular to the face of the vibration motor. It draws a maximum of 170mA while producing the highest G force/vibration energy of 2 GRMS.
We provide a library for the VibroMotor4 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 VibroMotor4 Click driver.
vibromotor4_cfg_setup
Config Object Initialization function. vibromotor4_init
Initialization function. vibromotor4_default_cfg
Click Default Configuration function. vibromotor4_set_mode
Vibro Motor 4 sets the desired mode function. vibromotor4_set_duty_cycle
Vibro Motor 4 sets PWM duty cycle. vibromotor4_pwm_start
Vibro Motor 4 start PWM module. This library contains API for Vibro Motor 4 Click driver. The library initializes and defines the I2C bus drivers to write and read data from registers and PWM module.
The demo application is composed of two sections :
The initialization of I2C and PWM module, log UART, and additional pins. After successful driver init, executes a default configuration and configures Vibro Motor 4 Click boardâ„¢.
This is an example that shows the use of Vibro Motor 4 Click boardâ„¢. Changing duty cycle results in different vibrations. Results are being sent to the Usart Terminal where you can track their changes.
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.