5. Generating a Variable Voltage with a PotentiometerIn this last step, you'll generate a changing voltage using a potentiometer. A potentiometer is a resistor that can change its resistance. A potentiometer (or pot) has three connections. The outer leads are the ends of a fixed value resistor. The center lead connects to a wiper which slides along the fixed resistor. The resistance between the center lead and either of the outside leads changes as the pot's knob is moved.Solder hook-up wires to the pot leads as shown here. Then connect the pot to an LED and a 220-ohm resistor using the following circuit:As you turn the potentiometer from one end to the other, measure the voltage at the center position. The pot is acting as a voltage divider, dividing the 5V into two parts. As the voltage feeding the LED goes up or down, the LED gets brighter or dimmer. The 220-ohm resistor in the circuit protects the LED from overvoltage when the resistance between the pot's 5V lead and its center lead is 0 ohms.You'll learn more about voltage dividers and potentiometers in the analog input lab.