# Piezo Buzzer

**Type:** Product page · **SKU:** CE09240 · **Brand:** [Core Electronics](https://core-electronics.com.au/brands/core-electronics-australia)
**Page:** https://core-electronics.com.au/piezo-buzzer.html ([markdown](https://core-electronics.com.au/piezo-buzzer.html.md))

Add a loud buzzer alarm or indicator to your projects. Drive this using PWM or code to switch between 0 and 3-5V for loud output.

## Pricing

- **Price:** $0.34 (inc GST) — $0.31 AUD, exc GST
- **Quantity discounts:** 5+ $0.30 (exc GST) · 15+ $0.29 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 213 today; more stock is typically available with a 8–12 day lead time.

## Description

Piezo transducers or "buzzers" have a special crystal inside that expands and contracts when you apply a voltage. You can harness this effect by driving using PWM or code to switch between 0 and 3-5V really fast to create quite a loud sound. It's a passive buzzer which means it needs an alternating voltage. Just supplying it with 3-5V constantly won't emit sound.

You can get even louder by connecting to two GPIO to either end and alternating HIGH and LOW on each pin. This is called a "differential drive" and effectively means the Piezo element sees +3V and -3V instead of just +3V and 0.

Plugs right into a breadboard to get started quickly.

### Specifications

- 11mm diameter
- 9mm tall
- 5mm leads
- Use with 3-5V logic
- Passive buzzer design

### Examples

**Raspberry Pi Pico - Micropython**

 ```
from machine import Pin, PWM
from utime import sleep

# Set up buzzer pin and PWM
buzzer_pin = Pin(7, Pin.OUT)
buzzer_pwm = PWM(buzzer_pin)
buzzer_pwm.duty_u16(1000)

for freq in range(500, 1400, 100):
    # Set buzzer frequency
    buzzer_pwm.freq(freq)
    # Wait
    sleep(.3)

# Turn off the buzzer
buzzer_pwm.duty_u16(0)
```

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/C/E/CE09240-1.jpg)
