Contents

Interfacing Active Buzzer with Arduino

Active Buzzer Features

A buzzer is a device used to produce sound. There are two types of buzzer: active and passive. In the active model, buzzer starts playing sound only if connected to a power supply, but in the passive model, we need to send a pulse from the microcontroller to play sounds. 

The supply voltage of the buzzer is 3 volts, 5 volts and 12 volts. 

You can download the active buzzer datasheet here.

Active Buzzer Module Pinout

This Module has 3 pins:

  • VCC: Module power supply – 5 V
  • GND: Ground
  • IN: Digital information input from the microcontroller

You can see the pinout of this module in the image below. 

Required Material

Hardwar component

Arduino UNO R3 × 1
Active Buzzer Alarm Module × 1
Male to Female Jumper Wire × 1

Software Apps

Arduino IDE

Interfacing Active Buzzer with Arduino

Step 1: Circuit

Connect the wires according to the following circuit. 

Step 2: Code

Upload the following code to your Arduino Board. 

/*   
modified on Sep 6, 2020
by Arduino Examples from arduino.cc/en/Tutorial/Blink
Home
*/ void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(9, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(9, HIGH); delay(1000); digitalWrite(9, LOW); delay(1000); }
Liked What You See?​
Get Updates And Learn From The Best​

Leave a Reply

Your email address will not be published. Required fields are marked *