Site icon Circuit Ideas for You

Make Sound with Arduino using Buzzer Circuit

This project shows how to Make Sound with Arduino using Buzzer Circuit.

Buzzer makes sound when we send signal from Arduino pin.

We can use it for alarms, alerts or simple tones.

Two versions are used here one with components and one with buzzer module.

Arduino Coding:

int buzzer = 8;
void setup() {
pinMode(buzzer, OUTPUT);
}
void loop() {
digitalWrite(buzzer, HIGH);
delay(1000);
digitalWrite(buzzer, LOW);
delay(1000);
}

Code Explanation:

Parts List:

Component NameQuantity
Resistor 220Ω1
Buzzer1
Buzzer Module1
Arduino UNO1

In above circuit diagram normal buzzer is used with a 220 ohm resistor.

Positive pin of buzzer connects to Arduino pin 8.

Negative pin connects to GND through 220 ohm resistor.

This resistor limits current to protect buzzer and Arduino pin.

In above circuit diagram ready made buzzer module is used.

The module has three pins Signal (S), VCC (+) and GND (-).

Signal pin connects to Arduino pin 8.

VCC connects to 5V of Arduino.

GND connects to Arduino GND.

Circuit Working:

Arduino sends HIGH signal (5V) to buzzer pin.

When signal is HIGH, buzzer turns ON and makes sound.

When signal is LOW, buzzer turns OFF and becomes silent.

This ON and OFF control creates beep or tone sound.

Formulas:

Below is the formula for Sound with Arduino using Buzzer Circuit:

Ohm s Law: V = I × R

Arduino output voltage is 5V

If buzzer uses around 20mA current.

Then resistor = V / I = 5 / 0.02 = 250 ohm (approx)

We used 220 ohm resistor for extra protection and with slightly lower sound.

How to Build:

To Make Sound with Arduino using Buzzer Circuit follow the below steps for connection:

Conclusion:

This simple Make Sound with Arduino using Buzzer Circuit helps understand buzzer working with Arduino.

We can use it for alarms, countdowns or sound effects.

It is one of the basic and fun Arduino beginner projects.

References:

Generating audio at different frequencies using a buzzer and the General Wave Equation

Exit mobile version