Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use KY-012 5v buzzer: Examples, Pinouts, and Specs

Image of KY-012 5v buzzer
Cirkit Designer LogoDesign with KY-012 5v buzzer in Cirkit Designer

Introduction

The KY-012 5V Buzzer is a small electronic device that produces sound when an electrical signal is applied. It is commonly used in alarms, notifications, and sound effects in various electronic projects. This passive buzzer requires an external signal to generate sound, making it ideal for applications where specific tones or patterns are needed. Its compact size and ease of use make it a popular choice for hobbyists and professionals alike.

Explore Projects Built with KY-012 5v buzzer

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Voice-Controlled Buzzer System with VC-02 Module
Image of vc: A project utilizing KY-012 5v buzzer in a practical application
This circuit features a VC-02 voice recognition module connected to a buzzer and powered by a 5V battery. The VC-02 module is programmed to listen for specific voice commands and, upon recognizing the command 'can you make a sound', it activates the buzzer for one second. The circuit is designed for voice-activated sound generation, with the VC-02 module handling voice recognition and serial communication, and the buzzer providing audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor with Buzzer Alert System
Image of fire detector: A project utilizing KY-012 5v buzzer in a practical application
This circuit is a sensor-activated buzzer system powered by a battery. An IR sensor detects an object and triggers an NPN transistor, which in turn activates a relay to power a buzzer. The circuit includes a voltage regulator to ensure stable 5V power supply and a rocker switch for manual control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered PIR Motion Sensor Alarm with Relay and Buzzer
Image of motion detector using pir motio0n sensor: A project utilizing KY-012 5v buzzer in a practical application
This circuit is a motion-activated alarm system. It uses a PIR motion sensor to detect movement, which triggers a relay module to activate a buzzer powered by a 9V battery, providing an audible alert.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Reed Switch Alarm with Buzzer
Image of Magnetic_Door_Alarm: A project utilizing KY-012 5v buzzer in a practical application
This circuit is a simple alarm system powered by a 18650 Li-Ion battery, regulated to 5V by a 7805 voltage regulator. It uses a reed switch to detect magnetic fields, which triggers a BC547 transistor to activate a buzzer when the switch is closed.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-012 5v buzzer

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of vc: A project utilizing KY-012 5v buzzer in a practical application
Voice-Controlled Buzzer System with VC-02 Module
This circuit features a VC-02 voice recognition module connected to a buzzer and powered by a 5V battery. The VC-02 module is programmed to listen for specific voice commands and, upon recognizing the command 'can you make a sound', it activates the buzzer for one second. The circuit is designed for voice-activated sound generation, with the VC-02 module handling voice recognition and serial communication, and the buzzer providing audible feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of fire detector: A project utilizing KY-012 5v buzzer in a practical application
Battery-Powered IR Sensor with Buzzer Alert System
This circuit is a sensor-activated buzzer system powered by a battery. An IR sensor detects an object and triggers an NPN transistor, which in turn activates a relay to power a buzzer. The circuit includes a voltage regulator to ensure stable 5V power supply and a rocker switch for manual control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of motion detector using pir motio0n sensor: A project utilizing KY-012 5v buzzer in a practical application
Battery-Powered PIR Motion Sensor Alarm with Relay and Buzzer
This circuit is a motion-activated alarm system. It uses a PIR motion sensor to detect movement, which triggers a relay module to activate a buzzer powered by a 9V battery, providing an audible alert.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Magnetic_Door_Alarm: A project utilizing KY-012 5v buzzer in a practical application
Battery-Powered Reed Switch Alarm with Buzzer
This circuit is a simple alarm system powered by a 18650 Li-Ion battery, regulated to 5V by a 7805 voltage regulator. It uses a reed switch to detect magnetic fields, which triggers a BC547 transistor to activate a buzzer when the switch is closed.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Alarm systems
  • Notification systems
  • Sound effects in electronic projects
  • Arduino-based projects
  • Educational kits and prototypes

Technical Specifications

Below are the key technical details of the KY-012 5V Buzzer:

Parameter Value
Operating Voltage 3.3V - 5V
Current Consumption ≤ 30mA
Sound Frequency Range ~2 kHz
Dimensions 18.5mm x 15mm x 13mm
Weight ~2g
Type Passive Buzzer

Pin Configuration

The KY-012 module has three pins, but only two are used for operation. The pin configuration is as follows:

Pin Label Description
1 Signal Input signal pin to control the buzzer
2 VCC Power supply pin (3.3V - 5V)
3 GND Ground pin

Note: The "Signal" pin requires a PWM (Pulse Width Modulation) signal to produce sound.

Usage Instructions

How to Use the KY-012 5V Buzzer in a Circuit

  1. Connect the Pins:

    • Connect the VCC pin to a 5V power source (or 3.3V if using a lower voltage system).
    • Connect the GND pin to the ground of your circuit.
    • Connect the Signal pin to a microcontroller's PWM-capable pin (e.g., Arduino digital pin with PWM support).
  2. Generate a Signal:

    • Use a microcontroller (e.g., Arduino) to send a PWM signal to the Signal pin. The frequency of the PWM signal determines the tone of the sound produced.
  3. Test the Buzzer:

    • Once connected, upload a program to your microcontroller to generate a tone. The buzzer will produce sound based on the input signal.

Important Considerations:

  • Signal Type: The KY-012 is a passive buzzer, meaning it requires an external signal to produce sound. It will not work if connected directly to power without a signal.
  • Voltage Range: Ensure the operating voltage does not exceed 5V to avoid damaging the component.
  • PWM Frequency: Experiment with different PWM frequencies to achieve the desired tone.

Example Code for Arduino UNO

Below is an example of how to use the KY-012 5V Buzzer with an Arduino UNO:

// KY-012 5V Buzzer Example Code
// This code generates a tone on the KY-012 buzzer using Arduino's tone() function.

#define BUZZER_PIN 8  // Define the pin connected to the Signal pin of the buzzer

void setup() {
  pinMode(BUZZER_PIN, OUTPUT);  // Set the buzzer pin as an output
}

void loop() {
  tone(BUZZER_PIN, 2000);  // Generate a 2 kHz tone
  delay(1000);             // Wait for 1 second
  noTone(BUZZER_PIN);      // Stop the tone
  delay(1000);             // Wait for 1 second
}

Note: The tone() function generates a square wave signal on the specified pin, which is ideal for driving the KY-012 buzzer.

Troubleshooting and FAQs

Common Issues and Solutions:

  1. No Sound from the Buzzer:

    • Cause: The Signal pin is not receiving a proper PWM signal.
    • Solution: Verify the connection to the microcontroller and ensure the correct pin is used. Check the code to ensure a PWM signal is being generated.
  2. Low or Distorted Sound:

    • Cause: Insufficient voltage or incorrect PWM frequency.
    • Solution: Ensure the VCC pin is connected to a stable 5V power source. Adjust the PWM frequency to achieve a clear tone.
  3. Buzzer Not Responding:

    • Cause: Faulty connections or damaged component.
    • Solution: Double-check all connections and test the buzzer with a different microcontroller or circuit.

FAQs:

  • Q: Can I use the KY-012 buzzer without a microcontroller?
    A: No, the KY-012 is a passive buzzer and requires an external signal to produce sound. You can use a 555 timer or similar circuit to generate a signal if a microcontroller is not available.

  • Q: What is the difference between a passive and an active buzzer?
    A: A passive buzzer requires an external signal to produce sound, while an active buzzer has an internal oscillator and produces sound when powered.

  • Q: Can I use the KY-012 with a 3.3V system?
    A: Yes, the KY-012 can operate at 3.3V, but the sound may be quieter compared to 5V operation.

By following this documentation, you can effectively integrate the KY-012 5V Buzzer into your electronic projects and troubleshoot any issues that arise.