Menu
Your Cart

Drum Simulate Piezoelectric Sensor

Drum Simulate Piezoelectric Sensor
Drum Simulate Piezoelectric Sensor
New
Drum Simulate Piezoelectric Sensor
Drum Simulate Piezoelectric Sensor
Drum Simulate Piezoelectric Sensor
  • Stock: 12
  • 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.

Write a review

Please login or register to review

GRBL


 

Mach3


 

We use Cookies
Dzduino collects cookies to enable the proper functioning and security of our websites, and help us offer you the best possible user experience, you consent to the use of these cookies.