Site icon Circuit Ideas for You

Jingle Bell Song Circuit with Arduino and Piezo Buzzer

Christmas time feels more fun when music plays.

This project plays the Jingle Bells tune using Arduino Uno.

With Arduino and small buzzer, we can make Jingle Bells tune at home.

Very easy circuit and with very happy sound.

Good project for beginners and kids.

Arduino Coding:

int buzzer = 10;
int led = 13;

int melody[] = {659,659,659,659,659,659,659,784,523,587,659};
int duration[] = {250,250,500,250,250,500,250,250,250,250,500};

void setup() {
pinMode(buzzer,OUTPUT);
pinMode(led,OUTPUT);
}

void loop() {
for(int i=0;i<11;i++){
tone(buzzer,melody[i]);
digitalWrite(led,HIGH);
delay(duration[i]);
noTone(buzzer);
digitalWrite(led,LOW);
delay(50);
}
}

Code Explanation:

Circuit Working:

Jingle Bell Song Circuit Diagram with Arduino and Piezo Buzzer

Parts List:

ItemQuantity
Resistor 150Ω1
Arduino Uno1
RED LED 5mm 20mA1
Piezo Buzzer Small1
5V DC Power supply1

The above circuit is an easy project one should give it a try.

Arduino sends sound signals to piezo buzzer from pin 10.

Buzzer vibrates and makes musical notes.

LED blinks at the same time from pin 13.

The R1 resistor stops extra current from reaching the LED.

5V powers the LED and buzzer.

GND completes the circuit.

Formulas with Calculations:

General formula for LED resistor in Jingle Bells Arduino circuit:

Red LED forward voltage = 2V

Safe LED current = 20mA (0.02A)

Arduino output = 5V

Resistor formula:

R = (Vsource – Vled) / I

So R = (5V – 2V) / 0.02A

R = 3V / 0.02A

R = 150 ohms

How to Build:

To build a Jingle Bell Song Circuit with Arduino and Piezo Buzzer follow the below steps:

Conclusion:

This project is Jingle Bell Song Circuit with Arduino and Piezo Buzzer.

With easy steps and short code.

Good for beginners and school projects.

We can change melody numbers to play other songs.

Shows how buzzer and LED work with Arduino.

References:

Arduino Uno: Jingle Bells piezo, LEDs (red and green), and LCD Screen

Exit mobile version