TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136708 times)
  2. FAT32 Library (69917 times)
  3. Network Ethernet Library (55932 times)
  4. USB Device Library (46258 times)
  5. Network WiFi Library (41883 times)
  6. FT800 Library (41144 times)
  7. GSM click (28979 times)
  8. PID Library (26407 times)
  9. mikroSDK (26355 times)
  10. microSD click (25351 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: 3909 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

Stepper 5 click

0

Stepper 5 Click is the complete integrated bipolar step motor driver solution, rich with many features that allow silent operation and optimal working conditions for the connected motor. The specialized TMC2208 IC driver from Trinamic company far exceeds the capabilities of similar step motor drivers that are commonly used. In order to achieve such outstanding performances with a wide range of various step motors, this device features several technologies: stealth Chop2™ - for silent motor operation; spreadCycle™ - highly dynamic, motor current control; microPlayer™ interpolation with 256 microsteps.

[Learn More]

Opto 2 click

0

Opto 2 click is a galvanic isolator Click board™, used to provide an optical isolation of sensitive microcontroller (MCU) pins, when operated by external signals.

[Learn More]

Buck 2 click

0

Buck 2 click is a powerful step down DC-DC switching regulator. It gives a high precision regulated voltage at its output and it can handle an ample amount of current.

[Learn More]