Working voltage: 3.3V or 5V
Operating current: Operating temperature range: -10℃ ~ +70℃
Interface type: analog signal output
Pin definition: S signal output, + power supply (VCC), -ground (GND)
Input: The positive pole of a piezoelectric ceramic plate
Gnd: The negative pole of piezoelectric ceramic plates
Port S is connected to the controller's analog input pin.
5V and GND are respectively connected to +5V and GND of the power supply.
Input and Gnd are already connected with the piezoelectric ceramics' positive and negative.
Sample Code
void setup()
{Serial.begin(9600); //Open the serial to set the baud rate for 9600bps}
void loop()
{int val; val=analogRead(0); //Connect the analog piezoelectric
ceramic vibration sensor to analog interface 0
Serial.print("Vibration is ");
Serial.println(val,DEC);//Print the analog value read via serial port delay(100); }
Result wiring as the diagram and burning the code, after power-on, open the serial monitor, then set the baud rate for 9600 and vibrate ceramic chip,
Package include:
6 x Piezo Ceramic Vibration Sensor