For this lab I’m trying the tone out put using Arduino.
Here are the materials I prepared: breadboard, Arduino, resistors, wires, an 8 ohm speaker, and a force sensing resistor.
Step 1: I connected all the components according to the instruction.
Step 2: I used this code to test the force sensor input. Here is the code and here is a video documenting the number received when pressing the sensor. It worked perfectly.
Step 3: I used this code to test the speaker, but unfortunately, my speaker didn’t make any sound. I tried changing the resistor, but it didn’t work. I’m still trying to solve this problem.