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; also buzzer makes sound when we send signal from Arduino pin.

Here, we can use it for alarms, alerts, or simple tones; moreover, we use two versions here: one with individual components and another with a buzzer module.

Arduino Code:

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

Code Explanation:

Parts List:

ComponentsQuantity
Resistor 220Ω1
Buzzer1
Buzzer Module1
Arduino UNO1
Sound with Arduino using Buzzer Circuit Diagram

The above circuit diagram uses a normal buzzer with a 220 Ω resistor; the circuit connects the positive pin of the buzzer to Arduino pin 8 and connects the negative pin to GND through the 220Ω resistor.

Also, this resistor limits current to protect buzzer and Arduino pin.

Sound with Arduino using Buzzer Module Circuit Diagram

In the above circuit diagram, we use a ready-made buzzer module, the module also has three pins: Signal (S), VCC (+) and GND (−).

Signal pin connects to Arduino pin 8, VCC connects to 5V of Arduino and then GND connects to Arduino GND.

Circuit Working:

First, Arduino sends HIGH signal (5V) to buzzer pin; when signal is HIGH, buzzer turns ON and makes sound and when signal is LOW, buzzer turns OFF and becomes silent.

Therefore, this ON and OFF control and 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)

So, 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:

To include, this simple Make Sound with Arduino using Buzzer Circuit helps understand buzzer working with Arduino; also we can use it for alarms, countdowns or sound effects.

Additionally, it is one of the basic and fun Arduino beginner projects.

Exit mobile version