Skip to content

Electronic components: Buzzers

New Course Coming Soon:

Get Really Good at Git

Buzzers are components that can generate a sound.

Well, I’d call it a noise rather than a sound but I don’t mean to be harsh to buzzers, so let’s call it a sound.

A sound that can have a frequency, so you can generate various musical notes.

Buzzers are also sometimes called speakers.

There are 2 kinds of buzzers. Active buzzers and passive buzzers.

On the left you can see a passive buzzer, and on the right an active buzzer:

They can be distinguished by the seal on the active one, and the circuit visible on the passive one.

Active buzzers are more expensive because they have some additional logic compared to the passive buzzer.

In particular, active buzzers work with direct current. You connect a 0V wire and a signal wire, alternating between high and low with a different frequency based on the sound you want to play.

Passive buzzers on the other hand need a PWM signal, which we issue in Arduino with the analogWrite() function.

Passive buzzers are cooler because they can play little songs, using the tone() function provided by the Arduino language.

Are you intimidated by Git? Can’t figure out merge vs rebase? Are you afraid of screwing up something any time you have to do something in Git? Do you rely on ChatGPT or random people’s answer on StackOverflow to fix your problems? Your coworkers are tired of explaining Git to you all the time? Git is something we all need to use, but few of us really master it. I created this course to improve your Git (and GitHub) knowledge at a radical level. A course that helps you feel less frustrated with Git. Launching May 21, 2024. Join the waiting list!

Here is how can I help you: