vibromotor 2.0.0.0
|
Vibro Motor click features a compact size Eccentric Rotating Mass (ERM) motor, labeled as C1026B002F. This type of motor is often used for haptic feedback on many small handheld devices, such as the cellphones, pagers, RFID scanners and similar devices. This motor contains a small eccentric weight on its rotor, so while rotating it also produces vibration effect. This kind of motors is sometimes referred to as coin motors, due to its shape.
We provide a library for the VibroMotor 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 VibroMotor Click driver.
vibromotor_cfg_setup
Config Object Initialization function. vibromotor_init
Initialization function. vibromotor_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). vibromotor_pwm_stop
This function stops the PWM moudle output. vibromotor_pwm_start
This function starts the PWM moudle output. This application contorl the speed of vibro motor.
The demo application is composed of two sections :
Configures PWM to 5kHz frequency, calculates maximum duty ratio and starts PWM with duty ratio value 0.
Allows user to enter desired command to control Vibro Motor Click board.
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.