Tap Vibration Sensor SW-18030P Breakout Board
Tap Vibration Sensor SW-18030P Breakout Board
What is it?
This is a nice little tap / vibration sensor breakout board. The board has an M3 hole in which you can use a screw to bolt it to anything. Whatever it is bolted onto (such as an enclosure) will become a tap sensor itself since it will transfer the vibrations of the tap to the sensor. This is a perfect way to make anything a tap-sensitive "button". Just attach it to anything like a casing or a screen, etc.
This tap sensor can be used in a variety of applications, including:
Home automation: This tap sensor can be used to control lights, fans, or other appliances by simply tapping on a surface or object.
Wearable technology: This tap sensor can be integrated into smartwatches or fitness trackers to allow users to control the device without needing to use buttons or touch screens.
Security systems: This tap sensor can be used as part of a security system to detect when someone is trying to break into a building or vehicle by tapping on a window or door.
Musical instruments: This tap sensor can be used to detect when a drum or other instrument is being struck, allowing the player to trigger sounds or effects.
Health monitoring: This tap sensor can be used to monitor the movement and activity of patients, such as in physical therapy or rehabilitation programs.
To use it, simply connect one pin to GND and the other to a digital input pin on a microcontroller with the pin set to input with PULLUP. When a tap is detected, it will pull the pin to ground momentarily. Since the response is rather quick and difficult to catch consistently if polled inside a loop, I recommend setting up an INTERRUPT for the pin, along with denouncing code.