Active Buzzer

Overview

The active buzzer is a typical digital output device that is as easy to use as lighting up an LED!

Two types of buzzers are included in the kit. We need to use active buzzer. Turn them around, the sealed back (not the exposed PCB) is the one we want.

../_images/16_buzzer.png

Required Components

In this project, we need the following components.

It’s definitely convenient to buy a whole kit, here’s the link:

Name

ITEMS IN THIS KIT

LINK

Elite Explorer Kit

300+

Elite Explorer Kit

You can also buy them separately from the links below.

COMPONENT INTRODUCTION

PURCHASE LINK

Arduino Uno R4 WiFi

-

Breadboard

BUY

Jumper Wires

BUY

Resistor

BUY

Transistor

BUY

Buzzer

-

Wiring

Note

When connecting the buzzer, make sure to check its pins. The longer pin is the anode and the shorter one is the cathode. It’s important not to mix them up, as doing so will prevent the buzzer from producing any sound.

../_images/16-active_buzzer_bb.png

Schematic Diagram

../_images/16_active_buzzer_schematic.png

Code

Note

  • You can open the file 16-active_buzzer.ino under the path of elite-explorer-kit-main\basic_project\16-active_buzzer directly.

  • Or copy this code into Arduino IDE.

After the code is uploaded successfully, you will hear a beep every second.