Today we will know how to use a buzzer, we can make any type of songs using this buzzer an Arduino(Microcontroller).
Please support us on YouTube also. Like Share and Subscribe to our channel : https://youtube.com/c/RatnasRoboLab
Components
- Arduino Uno : https://amzn.to/3Axir6R
- Breadboard : https://amzn.to/3HimZBI
- Jumper Wires : https://amzn.to/3V6UlJP
- Buzzer : https://amzn.to/3LysOxu
Circuit Diagram

Buzzer
Buzzer is used in Bicycle or Bike Horn, Aeroplane, Ambulance, Microwave, Fridge and many other things. It is a two pin tiny speaker that can be directly connected to the Arduino.
Code
Here are the codes of some of the popular songs.
Harry Potter
Click the link and download the Code. Here is the link : https://drive.google.com/drive/folders/1Y5jcRQL8UVf3AxtPMnsAKgVn58lsNn9N?usp=drive_link
Super Mario
Click the link and download the Code. Here is the link : https://drive.google.com/drive/folders/1IFyOuDojMabZ3SnCDaodQpM9hLLsHO3e?usp=drive_link
GOT
Click the link and download the Code. Here is the link : https://drive.google.com/drive/folders/1ngBylOF_bxy3-rtxB0TrAV11SWb131Ez?usp=drive_link
Star Wars
Click the link and download the Code. Here is the link : https://drive.google.com/drive/folders/1vh9D6J1Z_75x6CT2E8bvM00nJXbEitRQ?usp=drive_link
Result
In these way we can make any type of songs according to our need.
Further Readings
- Arduino Tutorial 7 :Serial Led controlled by LDR
- Arduino Tutorial 5 : Serial Communication
If you liked this article, then please subscribe to our YouTube Channel. You can also find us on Instagram, Facebook and Twitter.
READ – CONNECT – BOOST – CREATE