Site icon Circuit Ideas for You

Arduino Chirping Bird Sound Circuit

This small Arduino project make cute bird sound like real chirping and also which make our room feel like forest; with only one button press and tiny speaker sing like little bird, sound is clear and fun, anyone can make in few minutes.

Therefore, this Arduino Chirping Bird Sound Circuit has a very low cost, uses very simple wiring and is perfect for students who want to learn about sound generation.

Arduino Code:

int speaker = 9;
int button = 2;
int val = 0;

void setup() {
pinMode(speaker, OUTPUT);
pinMode(button, INPUT_PULLUP);
}

void loop() {
val = digitalRead(button);
if(val == LOW){
for(int i = 1000; i < 2000; i = i + 20){
tone(speaker, i, 10);
delay(10);
}
for(int i = 2000; i > 1000; i = i - 20){
tone(speaker, i, 10);
delay(10);
}
}
else{
noTone(speaker);
}
}

Code Explanation:

Circuit Working:

Arduino Chirping Bird Sound Circuit Diagram

Parts List:

ComponentsQuantity
Resistor1
10k 1/4 watt
Semiconductors
Arduino Uno1
Transistor BC547 1
Push Button Switch1
Loud Speaker1
Power Supply 5V USB or Arduino power1

Arduino pin 9 send sound signal to base of transistor BC547 through wire, then transistor work like amplifier and drive a 8Ω speaker.

After that, connect the push button to pin 2.

When we press the button, the Arduino detects a LOW signal and starts the sound, then resistor R1 pulls the button line HIGH when we do not press the button.

Finally, connect the speaker between the collector of the transistor and the positive supply.

How to Build:

To build a Arduino Chirping Bird Sound Circuit follow the below steps for connection:

Conclusion:

This Arduino Chirping Bird Sound Circuit is a simple and fun project that creates bird sounds with an Arduino and a few components, also we an use this project to learn sound generation and Arduino programming.

If required we can also, modify the code to create different bird sounds and effects.

Exit mobile version