TOP Contributors

  1. MIKROE (2653 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 (136736 times)
  2. FAT32 Library (69950 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46266 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41170 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25376 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: 4182 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

Balancer 3 click

0

Balancer 3 Click is overvoltage protection device for 2-series cell lithium-ion battery packs that incorporates a high-accuracy precision overvoltage detection circuit and automatic cell imbalance correction.

[Learn More]

Illuminance click

0

Illuminance Click is a compact add-on board that mimics how humans perceive light. This board features ams AG’s TSL2583, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit capable of providing a near-photopic response over an effective 16-bit dynamic range (16-bit resolution).

[Learn More]

Skywire click

0

Skywire click is an adapter click, which hosts NimbeLink/Skywire cellular modules (using stacking headers) to MikroElektronika development boards. It carries MCP1826 Low drop out regulator from Microchip. Skywire click is designed to run either on 3.3V or 5V power supply. The click communicates with the target MCU over UART interface.

[Learn More]