Grove - Piezo Vibration Sensor Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/Grove-_Piezo_Vibration_Sensor Bazaar: http://www.seeedstudio.com/depot/Grove-Piezo-Vibration-Sensor-p-1411.
Document Revision History Revision Date Author Description 1.0 Sep 21, 2015 Victor.
Contents Document Revision History ·······································································2 1. Introduction ······················································································2 2. Features ··························································································3 3. Applications ······················································································4 4.
Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality, such as operating without following manual guide, natural disasters or force majeure, we take no responsibility for that. Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
1. Introduction Grove- Piezo Vibration Sensor is suitable for measurements of flexibility, vibration, impact and touch. The module is based on PZT film sensor LDT0-028. When the sensor moves back and forth, a certain voltage will be created by the voltage comparator inside of it. A wide dynamic range (0.001Hz~1000MHz) guarantees an excellent measuring performance. And, you can adjust its sensitivity by adjusting the onboard potentiometer with a screw.
2. Features Standard grove socket Wide dynamic range:0.
3.
4. Usage 4.1 With Arduino The Grove - Piezo Vibration Sensor outputs a logic HIHG when vibration was detected. We can use any of Arduino pins to read the data. Here is an example of Piezo Vibration Sensor controlling LED. When the vibration was detected, this sensor outputs a logic high signal ( the sensitivity can be changed by adjusting the potentiometer), an LED lights up.
You can directly use a digital pin, take D5 of base shield as an example, and connect LED to Pin 12. const int ledPin=12; void setup() { Serial.begin(9600); pinMode(ledPin,OUTPUT); } void loop() { int sensorState = digitalRead(5); Serial.
else { digitalWrite(ledPin,LOW); } } 4.2 With Raspberry Pi 1. You should have got a raspberry pi and a grovepi or grovepi+. 2. You should have completed configuring the development enviroment, otherwise follow here. 3. Connection Plug the sensor to grovepi socket A0 by using a grove cable. 4. Navigate to the demos' directory: cd yourpath/GrovePi/Software/Python/ To see the code nano grove_piezo_vibration_sensor.
5. Run the demo. sudo python grove_piezo_vibration_sensor.
5.