TOP Contributors

  1. MIKROE (2654 codes)
  2. Alcides Ramos (352 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 (136746 times)
  2. FAT32 Library (69953 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41887 times)
  6. FT800 Library (41173 times)
  7. GSM click (28986 times)
  8. PID Library (26414 times)
  9. mikroSDK (26363 times)
  10. microSD click (25377 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: 4198 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

OBD II click

0

OBDII click offers a unique opportunity to tap inside the car diagnostic systems. It features the STN1110 Multiprotocol OBD to UART Interface, developed by the ScanTool technologies.

[Learn More]

GNSS3 click

0

GNSS3 click carries SIMCom’s SIM33ELA standalone GNSS module with an integrated antenna (and a connector for an external one).

[Learn More]

Thermo 13 click

5

Thermo 13 Click is a Click board equipped with the sensor IC, which can digitize temperature measurements between -30°C and +95°C so that the temperature measurement data can be processed by the host MCU.

[Learn More]