Random sound generator

In this project, I used a piezo speaker to randomly play certain notes which i arrayed form 0 – 9.

soundgenerator

This is one of the simplest project to be done, as little parts are required. (Ignore the LED in the video, as it is not suppose to be part of this project.)

 

Demo:

 

Code:

 

Share this post:

You may also like...