Arduino uno Vibration Sensor

A vibration sensor, often referred to as a vibration detector or accelerometer, is a device used to measure or detect vibrations in a system.

It converts mechanical vibrations into electrical signals that can be analyzed or monitored.

Vibration sensors are commonly used in industrial applications for condition monitoring of machinery, in consumer electronics for touch feedback or motion detection, and in various scientific and engineering fields for research purposes.

Components Needed

Hardware Wiring Explanation:

Connect the digital output pin of the Vibration Sensor to digital pin 2 on the Arduino Uno.

Connect the positive (+) terminal of the LED to digital pin 13 on the Arduino through a current-limiting resistor (220 ohms).

Connect the negative (-) terminal of the LED to GND (ground) on the Arduino.

Ensure the vibration sensor module is securely attached to the surface being monitored for vibrations.

Software (Arduino IDE):

Open the Arduino IDE and create a new sketch.

Copy and paste the provided Arduino code into the sketch. Monitor the Output:

Upload the code to the Arduino Uno.

Initialize serial communication at a baud rate of 9600 in the

Set the Vibration Sensor pin as an input and the LED pin as an output using the

Read the digital value from the float switch using the

Store the water level state (HIGH or LOW) in a variable for further processing.

Project Operation

When vibrations are detected by the sensor, the Serial Monitor will display "Vibration Detected!" along with the sensor value.

When no vibrations are detected, it will display "No Vibration Detected."

Applications

Notes

The sensitivity and threshold of vibration sensors may vary, so it's important to calibrate the sensor according to the application requirements.

Ensure that the vibration sensor module is securely attached to the surface being monitored to maximize sensitivity and accuracy.