pulse width modulation (PWM)
In-class notes:
LAB 1: TONE OUTPUT
At first, with the right wiring and codes, I couldn’t get any sounds. I later realized that the Serial part of the code needed to be initiated, and it worked.
I first tried out one sensor as the sole control, and the sound that the speaker produced sounded like a 90s video game background music. After adding three force sensors, I included the pitch library and attached three separate notes to the force sensors.
LAB 2: SERVO MOTOR CONTROL
https://itp.nyu.edu/physcomp/labs/labs-arduino-digital-and-analog/servo-motor-control-with-an-arduino/