Electronic components: Buzzers

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.

👀 Looking for a job? look at DEVJOBS (BETA) 🔥