TOP

Grove - Piezo Vibration Sensor

From Wiki 来自痴汉的爱
Jump to: navigation, search

Contents

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 on-board potentiometer with a screw.

Model: SEN04031P
Piezo Vibration Sensor 01.jpgPiezo Vibration Sensor 02.jpg

Features

  • Standard grove socket
  • Wide dynamic range:0.001Hz~1000MHz
  • Adjustable sensitivity
  • High receptivity for strong impact

Applications

  • Vibration Sensing in Washing Machine
  • Low Power Wakeup Switch
  • Low Cost Vibration Sensing
  • Car Alarms
  • Body Movement
  • Security Systems

Usage

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.
Note: It may output low level even though originally output high level when you increase the threshold voltage by clockwise adjusting the potentiometer.
1. Connect the module to the Analog port 0 of base shield using the 4-pin grove cable and connect LED to Pin 12.
2. Plug the Grove - Basic Shield into Arduino.
3. Connect Arduino to PC by using a USB cable.
 
4. Copy and paste code below to a new Arduino sketch. Please click here if you do not know how to upload.

const int ledPin=12;
void setup() {
  Serial.begin(9600);
pinMode(ledPin,OUTPUT);
} 
 
void loop() {
int sensorValue = analogRead(A0);
 Serial.println(sensorValue);
 delay(1000);
 if(sensorValue==1023)
  {
    digitalWrite(ledPin,HIGH);
  }
 else
 {
  digitalWrite(ledPin,LOW);
  }
}

5. Touch the piezo sensor to make it vibrate, of course, any way to make it vibrate would be OK too. The LED would be on when vibration detected. You can also Open the serial monitor to see the sensor outputs
Grove - Piezo Vibration Sensor.jpg

Resource

Grove - Piezo Vibration Sensor Eagle File
Piezo Vibration Sensor Datasheet

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Navigation
Collections
Toolbox