Skip to Content

Buzzer Piezo Ceramic Wafer Plate (Without Cover)

The Piezo Vibration Sensor is a versatile component that can both detect vibrations and generate sound, making it a great tool for various projects. Below is an overview of its features, specifications, and an example project using Arduino.

Features:

  • Dual Functionality: The Piezo Vibration Sensor can both detect physical vibrations (such as knocks or sound waves) and generate sound when a voltage is applied to it. This dual-purpose functionality opens up a range of applications, from detecting external forces to creating audible alerts.

  • Ideal for Beginners: Its simple interface makes it easy for beginners to start experimenting with vibration sensing and sound generation in MCU or Arduino projects.

  • Standalone Potential: The sensor can be used independently, which allows for creating projects without needing additional components. This makes it ideal for DIY and hands-on learning.

Specifications:

  • Resonant Frequency: 4.6 ± 0.5 kHz

  • Resonant Impedance: 300 max

  • Voltage Range: DC 3-24V

  • Material: Copper

Sample Code for Arduino:

This simple Arduino sketch uses the Piezo Vibration Sensor to detect knocks and toggle an LED based on the sensor input. If the sensor detects a vibration or knock (i.e., the reading exceeds a certain threshold), the LED toggles, and a message is sent to the serial monitor.

// Constants that won't change:
const int LED_PIN = 13; // LED connected to digital pin 13
const int KNOCK_SENSOR = A0; // Piezo connected to analog pin 0
const int THRESHOLD = 100; // Threshold value to determine a knock

// Variables that will change:
int sensorReading = 0; // Variable to store sensor pin reading
int ledState = LOW; // Variable to store last LED status for toggling

void setup() {
  pinMode(LED_PIN, OUTPUT); // Declare LED_PIN as OUTPUT
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  // Read the sensor and store the value in sensorReading:
  sensorReading = analogRead(KNOCK_SENSOR);

  // If the sensor reading is greater than the threshold:
  if (sensorReading >= THRESHOLD) {
    // Toggle the status of LED_PIN:
    ledState = !ledState; 
    // Update the LED pin itself:
    digitalWrite(LED_PIN, ledState);
    // Send the string "Knock!" back to the computer, followed by newline:
    Serial.println("Knock!");
  }

  delay(100); // Delay to avoid overloading the serial port buffer
}

Wiring Instructions:

  1. Connect the positive lead of the piezo sensor to analog pin 0 on the Arduino.

  2. Connect the negative lead of the piezo to ground (GND).

  3. Attach a 1-megohm resistor between analog pin 0 and ground. This resistor helps the Arduino read the changes in the sensor more effectively.

Applications:

  • Knock Detection: Detect knocks or taps in a security system or interactive display.

  • Sound Generation: Generate alerts or sounds when certain thresholds are met, such as in alarm systems.

  • Vibration Sensing: Use it to detect vibrations in mechanical or structural applications.

  • Interactive Projects: Integrate the sensor in games, toys, or exhibits to react to user interactions.

5.00 AED 5.00 AED Tax Included
5.00 AED Tax Included

Not Available For Sale

This combination does not exist.

Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days