Code example- Simple sound for passive buzzer module
Upload this code to the arduino and you will hear sound from the passive buzzer. See below for screenshots of my passive buzzer demo. I'm using my Arduino Mega ADK for this demo. If you want to hear some familiar songs, there are many available samples in the internet. Try to get the code from the link and you will hear the fur elise song by Beethoven from the passive buzzer. Enjoy!
|