Fundamentals of Physical Computing: Analog Input Lab
The potentiometer's middle wire connects to the ANALOG input pin #3 on the Arduino board. No need to add resistors, becaue the potentiometer itself acts like 2 resistors, in a self-contained voltage-divider circuit. When an LED is added with a 330 Ohm resistor, and the program is uploaded to the Arduino board, we can see the LED dim and brighten with a twist of the knob.
Trying other variable resistors
If the fixed resistor is changed, for example from a 10K to a 1K, there is less resistance. Therefore, using Ohm's law, R (Resistance) = V (Voltage) / I (Current), the voltage reads higher numbers on the serial output.
Invent Something! "The Muscle-o-meter"
I used the flex resistor to make a "muscle meter" which measured flexibility of the user's arm as they lift a heavy weight. Using the code helpers on the Arduino site, the result was measured in a print line displayed on the serial output monitor.
zero flexibility = no weight lifted = "Olive Oyl"
slight flexibility = some weight lifted = "Wimpy"
75% flexibility = weight almost fully lifted = "not too shabby"
full flexibility = weight completely lifted = "Popeye the Sailor man!"
My model could not lift the weight any further, so she did not get the ultimate reading of: