Note to self: If you have a speaker connected to an output pin running analogWrite(), you’ll get a changing loudness, but a constant tone. To change the tone, you need to change the frequency. The tone() command does this for you.
----------------------------------------------------------------------------------------------------------------------------------------------------------------

What is a MOSFET?
Why does the threshold level have to be higher than zero to produce the music notes? Is it to cancel out noise below 10? Will the music notes be heard clearer if I raise the threshold assigned?

The breadboard layout used for this part of the exercise is the same layout used in the last part. 
----------------------------------------------------------------------------------------------------------------------------------------------------------------

You may also like

Back to Top