A vibrational sensor is a device designed to detect and measure vibrations or oscillations in a system. These sensors are commonly used in various applications, including:
Vibrational sensors help in predictive maintenance by identifying potential issues before they lead to system failures, thereby reducing downtime and maintenance costs.
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Operating Current | < 10mA |
Sensitivity | Adjustable via potentiometer |
Output Type | Digital (High/Low) |
Response Time | < 1ms |
Operating Temperature | -20°C to 70°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground |
3 | OUT | Digital output signal (High/Low) |
4 | ADJ | Sensitivity adjustment (potentiometer) |
// Vibrational Sensor Example Code for Arduino UNO
const int sensorPin = 2; // Pin connected to the sensor's OUT pin
const int ledPin = 13; // Pin connected to the onboard LED
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 value
if (sensorValue == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on the LED if vibration is detected
Serial.println("Vibration detected!");
} else {
digitalWrite(ledPin, LOW); // Turn off the LED if no vibration
}
delay(100); // Small delay to avoid serial flooding
}
No Output Signal:
False Triggers:
Inconsistent Readings:
Q1: Can the vibrational sensor detect very small vibrations?
Q2: Can I use the vibrational sensor with a 3.3V microcontroller?
Q3: How do I know if the sensor is working correctly?
By following this documentation, users can effectively integrate and utilize the vibrational sensor in their projects, ensuring accurate and reliable vibration detection.