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:
- Speaker pin is pin 9.
- Button pin is pin 2.
- We use INPUT_PULLUP so button pressed give LOW.
- Tone command create sound frequency.
- First loop make rising chirp.
- Second loop make falling chirp.
- NoTone stop sound.
Circuit Working:

Parts List:
| Components | Quantity |
|---|---|
| Resistor | 1 |
| 10k 1/4 watt | |
| Semiconductors | |
| Arduino Uno | 1 |
| Transistor BC547 | 1 |
| Push Button Switch | 1 |
| Loud Speaker 8Ω | 1 |
| Power Supply 5V USB or Arduino power | 1 |
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:
- First, take all the parts as shown in circuit diagram.
- Next, Arduino pin 9 connect to base of BC547 transistor, emitter of transistor go to ground and collector go to speaker one terminal and also speaker other terminal goes to GND.
- Then push button one side go to +5V and other side to Arduino pin 2.
- Also, connect 10k resistor from pin 2 to and other end to GND.
- Finally, Arduino 5V supply give power to whole circuit.
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.