Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Audio
  4. ›Active vs Passive Buzzers

Comparison · Beginner · 3 min read

Active vs Passive Buzzers

Which to Buy and How to Drive Them

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerHow to tell an active buzzer from a passive oneActive vs passive buzzerWiringBeeps and melodiesMaking it louderTry itCommon mistakesFAQsParts and next steps
Short answer

An active buzzer beeps at one fixed pitch as soon as you apply DC, so a digital pin can switch it on and off. A passive buzzer is just a piezo element that needs a square wave: use tone(pin, frequency) and you can play any note or melody. Tell them apart by applying 5 V: the active one sounds, the passive one only clicks. Both are polarised on modules; the longer leg is positive.

Key specs at a glance

Active buzzer
3 to 5 V DC, about 2.3 kHz fixed tone, about 30 mA
Passive buzzer
Needs a driven square wave, 1 to 5 kHz best, few mA
Piezo disc
Bare element, quiet, needs a resonant cavity
Modules
KY-012 (active), KY-006 (passive), 3 pins: S, +, -
Arduino
tone(pin, Hz) and noTone(pin) for passive types
Loud alarms
12 V piezo sirens (100 dB+) through a transistor or relay
01

How to tell an active buzzer from a passive one

  • ✓Connect it briefly to 3 to 5 V. Sounds continuously: active. Clicks once: passive.
  • ✓Active buzzers often have a sticker on top and sealed black epoxy on the underside; passive ones show a green PCB with the piezo disc visible.
  • ✓Measure resistance: active types read a few hundred ohms or more (there is a circuit inside); passive types read as an open circuit or a capacitor.
02

Active vs passive buzzer

ActivePassive
NeedsDC on/offSquare wave at the pitch you want
PitchFixed (about 2 to 3 kHz)Any, melodies possible
CodedigitalWrite HIGH/LOWtone() / ledcWriteTone()
PriceSlightly moreCheapest
Use forAlarms, confirmation beeps, timersMelodies, variable alerts, sound effects
Needs
Active:
DC on/off
Passive:
Square wave at the pitch you want
Pitch
Active:
Fixed (about 2 to 3 kHz)
Passive:
Any, melodies possible
Code
Active:
digitalWrite HIGH/LOW
Passive:
tone() / ledcWriteTone()
Price
Active:
Slightly more
Passive:
Cheapest
Use for
Active:
Alarms, confirmation beeps, timers
Passive:
Melodies, variable alerts, sound effects
03

Wiring

Small 5 V buzzers (under 30 mA) can connect straight to an Arduino pin and GND; on an ESP32 or Pico keep it under about 10 mA or use a transistor. For anything louder or at 12 V, switch it with an NPN transistor or MOSFET and add a flyback diode on magnetic (electromagnetic) buzzers. Modules with three pins take signal, VCC and GND.

04

Beeps and melodies

Active beep and passive melody · Arduino C++Verify & upload in Electrolark
const int ACTIVE = 8;
const int PASSIVE = 9;

void setup() {
  pinMode(ACTIVE, OUTPUT);
}

void loop() {
  digitalWrite(ACTIVE, HIGH); delay(200);         // active: just switch it on
  digitalWrite(ACTIVE, LOW);  delay(800);

  int notes[] = {262, 330, 392, 523};             // C4 E4 G4 C5 for the passive buzzer
  for (int f : notes) { tone(PASSIVE, f, 150); delay(200); }
  noTone(PASSIVE);
  delay(1000);
}
// ESP32 (arduino-esp32 3.x): ledcAttach(PASSIVE, 2000, 8); ledcWriteTone(PASSIVE, 440);
05

Making it louder

Passive buzzers are loudest at their resonant frequency (usually 2 to 4 kHz, check the datasheet). Mount them in a small enclosure with a sound hole. For alarms that must be heard across a room or outdoors, use a 12 V piezo siren (95 to 110 dB) driven by a transistor or relay module, never from a microcontroller pin.

06

Try it: 555 astable calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Using tone() on an active buzzer, which produces a buzzing mess, or writing HIGH to a passive one and hearing only a click.
  • !Reversing the polarity on an active buzzer module.
  • !Driving a 12 V siren from a GPIO pin.
  • !Calling tone() on a pin that shares a timer with other PWM pins and breaking their output (pins 3 and 11 on the Uno).
  • !Expecting a bare piezo disc to be loud without an enclosure.
08

Frequently asked questions

What is the difference between an active and a passive buzzer?

An active buzzer has its own oscillator and beeps at a fixed pitch when powered. A passive buzzer needs a square-wave signal and can play any pitch.

Can I play music on an active buzzer?

No. It only beeps at one frequency. Use a passive buzzer with tone().

Does a buzzer need a resistor?

Small 5 V buzzers do not. A 100 Ω resistor in series with a passive buzzer reduces volume and current if needed. Large buzzers need a transistor.

Does a buzzer have polarity?

Active buzzers do: the longer leg or + marking is positive. Passive piezo buzzers work either way, though modules mark a + pin.

Why does my buzzer sound quiet?

Drive a passive buzzer at its resonant frequency (often around 2.5 to 4 kHz), give it an enclosure, and make sure the pin can supply enough current.

Parts for this guide

  • Buzzer Module 3.3–5V
    ₹27View
  • Piezo Buzzer
    ₹11View
  • 12V Electronic Siren
    ₹159View
  • 5V Relay Module with Optocoupler
    ₹74View
Shop Buzzers & SirensShop Speakers

Calculators

555 astable calculatorTransistor base resistor calculator

Terms in this guide

PiezoA ceramic element that bends when voltage is applied (and makes a voltage when bent), used in passive buzzers and vibration sensors.Resonant frequencyThe frequency at which a piezo element or LC circuit responds most strongly. A passive buzzer is loudest near it, often 2 to 4 kHz.PWMPulse-width modulation: switching a signal on and off quickly so its average sets brightness, speed or position.Flyback diodeA diode placed across a coil (relay, motor, solenoid) to absorb the voltage spike when current is switched off.

Projects that use it

Put this into practice: 413 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourLPG gas leak alarmView projectBeginner · 1–2 hoursSmoke alarm with OLED readoutView projectBeginner · 45 minutesFlame detector fire alarmView project
Browse all 413 projects

Keep learning

Concept explainerBeginnerPWM ExplainedPWM (pulse-width modulation) switches a pin fully on and off very quickly; the share of time it is on, the duty cycle, sets the average power.3 min read · Electronics FundamentalsHow-toIntermediateTransistors and MOSFETs as SwitchesA transistor lets a small microcontroller signal switch a much larger current.4 min read · Semiconductors & ICsComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & MicrocontrollersComponent guideBeginnerPIR Motion Sensor (HC-SR501)A PIR (passive infrared) sensor detects movement of warm bodies by sensing changes in infrared heat across its field of view.3 min read · Sensors

Sources

  • Arduino tone() reference (Arduino)
  • TDK PS1240 piezo buzzer datasheet
  • KY-006 and KY-012 module documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow to tell an active buzzer from a passive oneActive vs passive buzzerWiringBeeps and melodiesMaking it louderTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹271

Buzzer Module 3.3–5V · Piezo Buzzer · 12V Electronic Siren · 5V Relay Module with Optocoupler

Run itChange the inputs and watch the output
Active buzzer (pin 8) 2300 Hz
Passive buzzer (pin 9) silent

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question