Introduction
The DFRobot Vibration Sensor buffers a piezoelectric transducer that responds to strain changes by generating a measurable output voltage change. Therefore the volatage is propotional with the strength of vibration.
Specification
Power supply: Not necessary to power the module
Interface: Analog
Supply Voltage: 3.3V to 5V
Current: less than 1mA
Weight: 10g
Tutorial
Connection diagram
Sample Code
void setup()
{
Serial.begin(9600); //
}
void loop()
{
int val;
val=analogRead(0);//Connect the sensor to analog pin 0
Serial.println(val,DEC);//
delay(100);
}
Result
When no pressure is applied to the piezoelectric ceramics, the analog output is 0; when pressure is applied to the piezoelectric ceramics, the analog output will being correlated to the amount of pressure.
FAQ
For any questions/advice/cool ideas to share, please visit DFRobot Forum.