TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136545 times)
  2. FAT32 Library (69739 times)
  3. Network Ethernet Library (55844 times)
  4. USB Device Library (46180 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40990 times)
  7. GSM click (28923 times)
  8. PID Library (26385 times)
  9. mikroSDK (26285 times)
  10. microSD click (25299 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: 3885 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

ADC 18 click

0

ADC 18 Click is a compact add-on board that contains a high-performance data converter. This board features the MAX22005, an SPI-configurable twelve-channel 24-bit analog-to-digital converter (ADC) from Analog Devices.

[Learn More]

Rotary G click

5

Rotary G click carries a 15-pulse incremental rotary encoder with detents, surrounded by a ring of 16 LEDs. It’s a perfect solution for adding a precision input knob to your design. The encoder outputs A and B signals (out of phase to each other); the knob also acts as a push-button which sends an interrupt to the target board MCU.

[Learn More]

Altitude 5 click

0

Altitude 5 Click is a compact add-on board allowing high-resolution barometric pressure measurement. This board features the KP236, an analog barometric air pressure sensor based on a capacitive principle from Infineon Technologies. The KP236 is primarily developed for measuring barometric air pressure but can also be used in other application fields. It is surface micro-machined with a monolithic integrated signal conditioning circuit implemented in BiCMOS technology. The calibrated transfer function converts pressure into an analog output signal in a range of 40kPa to 115kPa. However, the choice of signal processing is up to the user; more precisely, the user can process the output signal in analog or digital form. The high accuracy and the high sensitivity of the KP236 make this Click board™ suitable for advanced automotive applications and industrial and consumer applications.

[Learn More]