TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136950 times)
  2. FAT32 Library (70063 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46333 times)
  5. Network WiFi Library (41953 times)
  6. FT800 Library (41264 times)
  7. GSM click (29050 times)
  8. mikroSDK (26472 times)
  9. PID Library (26445 times)
  10. microSD click (25408 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

Vibra sense click

Rating:

5

Author: MIKROE

Last Updated: 2019-03-28

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 3954 times

Followed by: 5 users

License: MIT license  

Vibra Sense click is a low cost micro shock vibration sensor with a digital output which can be set as an Interrupt (mikroBUS INT pin). An onboard potentiometer lets you set the interrupt threshold.
The board is designed to use either a 3.3V and a 5V power supply.

No Abuse Reported

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

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

Do you want to report abuse regarding "Vibra sense click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
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

Vibra sense click board

Vibra sense click board

Front and back side of the Vibra sense Click Board

View full image

Library Description

The library covers all the functions necessary for the use of Vibra sense Click board.
Vibra sense Click uses GPIO and PWM to communicate. This library contains drivers for
enabling or disabling PWM and for enabling, disabling or reseting the device itself and
a function for checking the interrupt pin.

Key functions:

  • uint8_t vibrasense_checkInterrupt() -  Function is used to check for an interrupt that indicates that the device has detected vibrations.
  • void vibrasense_enable()-  Function sets the RST pin.
  • void vibrasense_reset() -   Function resets the device.

Examples Description

The application is composed of three sections:

  • System Initialization - Initializes GPIO and LOG structures, sets RST pin as output and INT pin as input.
  • Application Initialization - Enables GPIO and PWM, sets the frequency and duty cycle and makes an initial log.
  • Application Task - (code snippet) This is a example which demonstrates the use of Vibra sense Click board. It detects vibrations and enables PWM and writes log according to them.
void applicationTask()
{
    if( vibrasense_checkInterrupt() )
    {
        mikrobus_logWrite( "       TILT!!!     ", _LOG_LINE );
        mikrobus_logWrite( "-------------------", _LOG_LINE );
        vibrasense_pwmStart();
        Delay_ms( 100 );
        vibrasense_pwmStop();
        Delay_ms( 200 );
    }
}  

Other mikroE Libraries used in the example:

  • PWM
  • UART

Additional notes and informations

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

Vibra sense click board schematic

Vibra sense click board schematic

Schematics of the Vibra sense click board

View full image

Vibra sense click - Example

Demonstration video - simple example

Watch on YouTube

ALSO FROM THIS AUTHOR

RTC 3 click

0

RTC3 click carries BQ32000, a real time clock with an integrated trickle charge circuit for automatic switchover to a backup power supply (the circuit maintains the backup charge with an onboard super capacitor).

[Learn More]

ADC click

1

ADC Click carries the MCP3204 12-bit Analog-to-Digital converter. The click is designed to run on 3.3V by default. Place PWR SEL SMD jumper to 5V position if used with 5V systems.

[Learn More]

SPI Isolator 8 click

0

SPI Isolator 8 Click is a compact add-on board representing a digital isolator optimized for a serial peripheral interface. This board features the ISOW7743, a quad-channel digital isolator from Texas Instruments. This device has a maximum data rate of 100Mbps and transfers digital signals between circuits with different power domains featuring reinforced isolation for a withstand voltage rating of 5kVRMS for 60 seconds.

[Learn More]