Out Of Stock
Drum Simulate Piezoelectric Sensor
- Stock: Out Of Stock
- Model: DZD006011
- Weight: 5.00g
400.00DA
Ex Tax: 400.00DA
Product Description
Specification
Supply Voltage: 3.3V to 5V
Working Current :<1mA
Working Temperature Range:10°70°
Output Signal:analog signal
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 above diagram and burning the code, after power-on, open the serial monitor, then set the baud rate for 9600 and vibrate ceramic chip, as the graph shown below.
GRBL
Mach3