PROJECT 7: ARDUINO MELODY

SO FAR ALL THE PROJECTS HAVE BEEN VISUAL, SO NOW IT’S TIME TO MAKE SOME MUSIC. IN THIS PROJECT WE WILL BE USING A PIEZOELECTRIC BUZZER TO PLAY SOME MELODIES.

image
image

PARTS REQUIRED

• Arduino board

• Piezo buzzer

HOW IT WORKS

The Arduino melody uses a piezo buzzer to create frequencies that resemble recognizable notes. You use the Arduino IDE to give the order, rate, and duration of the notes to play a specific tune.

Piezos are inexpensive buzzers often used in small toys. A piezo element without its plastic housing looks like ...

Get Arduino Project Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.