TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (348 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136229 times)
  2. FAT32 Library (69498 times)
  3. Network Ethernet Library (55712 times)
  4. USB Device Library (45997 times)
  5. Network WiFi Library (41640 times)
  6. FT800 Library (40804 times)
  7. GSM click (28789 times)
  8. PID Library (26333 times)
  9. mikroSDK (26061 times)
  10. microSD click (25148 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Haptic click

Rating:

2

Author: MIKROE

Last Updated: 2019-01-10

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Haptic

Downloaded: 4083 times

Followed by: 6 users

License: MIT license  

Haptic click carries a Haptic Driver for ERM and LRA vibration motors.
The board carries screw terminals for connecting said motors,
as well as an audio interface (3.5mm jack).
Haptic click communicates with the target MCU through mikroBUSâ„¢ I2C (SCL, SDA), EN (CS) and PWM pins. The board is designed to use either a 3.3V or 5V power supply.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Haptic click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Haptic click" changes.

Do you want to report abuse regarding "Haptic click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Haptic Click Board

Haptic Click Board

Front and back view of the Color2 Click Board designed in mikroBUS form factor.

View full image

Library Description

The library covers all the necessary functions to control Haptic Click board. 
Library have drivers for generic write and read, for enable/diasble the device,
sets desired mode function, resets all register, for getting status, 
sets the desired library of vibrating patterns to read, starts reading the desired pattern and moving the motor function, etc.

Key functions:

  • void haptic_enable() - Enable the device function.
  • void haptic_setMode( uint8_t selMode )- Sets the Haptic click to desired mode function.
  • void haptic_startMotor() - Starts reading the desired pattern and moving the motor function.

Examples description

The application is composed of three sections :

- System Initialization - Initializes GPIO, I2C and LOG structures,
     sets CS and PWM pins as output.
- Application Initialization - Initialization driver enable's - I2C,
     first, we enable the device, set soft reset, set calibrating and start the engine.
     After that, we set Audio-to-Vibe mode, Minimum Input level ( ~ 1.35V ),
     enable AC coupling, select input mode for Analog input and start write log.
- Application Task - (code snippet) This is a example which demonstrates the use of Haptic Click board.
     Results are being sent to the Usart Terminal where you can track their changes.

void applicationTask()
{
    if ( startStatus )
        mikrobus_logWrite( " START ", _LOG_LINE );

    startStatus = 0;
}

Other mikroE Libraries used in the example:

  • I2C
  • UART

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

WiFi NINA click

5

WiFi NINA click is a powerful standalone WiFi module, equipped with the state-of-the-art NINA-W132 module from u-blox, that can be easily configured with the u-blox s-center software, using AT commands.

[Learn More]

Buck 5 click

0

Buck 5 Click is a high-efficiency buck (step-down) DC/DC converter, which can provide digitally adjusted step-down voltage on its output while delivering a considerable amount of current. Buck 5 click accepts a wide voltage range on its input - from 5V to 30V.

[Learn More]

Pressure 4 click

5

Pressure 4 click is an absolute barometric pressure measurement Click board, which features a low power consumption, high precision barometric pressure sensor.

[Learn More]