Week 03: doo doo loo doo, da-da-da 🎵

I didn't run into many problems this week. I wrote a program that uses pressure to control the frequency, producing different pitches.
How transistors work
I learned that a transistor is basically like a switch that uses a small signal to control a larger current. For example, the Arduino can send a small signal to the transistor, and the transistor can control the larger amount of current going to a speaker or motor. One thing I realized is that the transistor doesn't actually create or magically increase the electricity. The power still comes from the power source, such as USB or an external power supply. The transistor just lets the Arduino control that power without having to directly handle the larger current itself.
Getting my hands dirty
Just to play with the different tones, which can really make a song.
Also can control motor, same logic with controlling speaker.