Analog Piezo Disk Vibration Sensor (SKU:DFR0052)
From Robot Wiki
ContentsIntroductionThe DFRobot Vibration Sensor buffers a piezoelectric transducer that responds to strain changes by generating a measurable output voltage change which is propotional with the strength of vibration.
Specification
TutorialConnection 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);
}
ResultWhen pressure is applied not to the piezoelectric ceramics, the analog output of 0; when pressure is applied to the piezoelectric ceramics, the analog output will send the change, but as the pressure increases.
More |

