Our project is based on the No.2 design requested by the customer. The customer wants a straightforward way to feel the resistance of the potentiometer, and we made this design so that the frequency of the piezo buzzer directly reflects the resistance. When the resistance of the potentiometer increases, the frequency of the buzzer increases. Since the customer also requires convenience, we added a tilt switch to the design so that by simply tilting the circuit, the customer can stop it from working once they have got an idea of the resistance and don't want the buzzer to buzz anymore.
The Setup of our Breadboard
The 10k resistor is there to prevent the circuit from getting shorted. The launchpad measures the voltage across the potentiometer, and since the power supply of the circuit, the resistance of the resistor, and the voltage across the potentiometer are known, the program could calculate the resistance of the potentiometer using the formula V_out = R_potentiometer * V_potentiometer / (10k + R_potentiometer). The tilt switch is connected in series to the resistor and the potentiometer, and thus it is able to stop the current when it is closed. The detailed schematics can be seen in the schematics section.
The Setup on the Launchpad
We used C language as the coding language and Code Composer Studio as the IDE. The code can be seen in the code section.