

A vibration sensor module is a device designed to detect and measure the intensity of vibrations in its environment. It typically consists of a piezoelectric element or a spring-and-mass mechanism that generates an electrical signal in response to vibrations. These modules are widely used in applications such as security systems, industrial equipment monitoring, robotics, and home automation to detect movement, monitor machinery health, or identify anomalies.
Common use cases include:








Below are the key technical details of a typical vibration sensor module:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Output Signal Type | Digital (High/Low) or Analog |
| Sensitivity Adjustment | Potentiometer (for some modules) |
| Output Current | 15mA (typical) |
| Dimensions | ~32mm x 14mm x 8mm |
| Operating Temperature | -20°C to 70°C |
The vibration sensor module typically has three pins:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Connect to the positive power supply (3.3V to 5V). |
| 2 | GND | Connect to the ground of the power supply. |
| 3 | OUT | Output pin that provides a digital or analog signal based on the detected vibration. |
VCC pin to a 3.3V or 5V power supply and the GND pin to the ground.OUT pin to read the sensor's output. This can be connected to a microcontroller (e.g., Arduino) or an external circuit.Below is an example of how to connect and use the vibration sensor module with an Arduino UNO:
VCC pin of the sensor to the 5V pin on the Arduino.GND pin of the sensor to the GND pin on the Arduino.OUT pin of the sensor to digital pin 2 on the Arduino.// Vibration Sensor Module Example with Arduino UNO
// This code reads the digital output of the vibration sensor and
// turns on an LED when vibration is detected.
const int sensorPin = 2; // Pin connected to the OUT pin of the sensor
const int ledPin = 13; // Built-in LED pin on Arduino
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = digitalRead(sensorPin); // Read the sensor output
if (sensorValue == HIGH) {
// Vibration detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Vibration detected!");
} else {
// No vibration
digitalWrite(ledPin, LOW); // Turn off the LED
}
delay(100); // Small delay to stabilize readings
}
No Output Signal
False Triggers
Output Always HIGH or LOW
Inconsistent Readings
Q1: Can the vibration sensor module detect small vibrations?
A1: Yes, the sensitivity can be adjusted using the onboard potentiometer (if available) to detect small vibrations.
Q2: Can I use this module with a 3.3V microcontroller?
A2: Yes, the module operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V microcontrollers like ESP32 or Raspberry Pi Pico.
Q3: How do I know if the sensor is working?
A3: You can test the sensor by tapping it gently and observing the output signal (e.g., LED turning on or a HIGH signal on the microcontroller).
Q4: Can this module measure the intensity of vibrations?
A4: Some modules provide an analog output proportional to the vibration intensity. Check the module's specifications to confirm this feature.
By following this documentation, you can effectively integrate and troubleshoot a vibration sensor module in your projects.