Skip to main content

Subsection 6.2.3 Part 3: The Test Circuit

Now we’ll build the test circuit we’ll measure for the rest of the day: a potentiometer wired across the supply, with its wiper feeding the pin we just looked up. Turning the knob sweeps that pin’s voltage between the two rails, which is what gives the ADC something to convert.
You may be able to push the potentiometer’s pins (hard) straight into the breadboard. Otherwise, use three of the pin-to-clip jumpers. Either way the connections are the same: the two outer terminals go to 3.3 V and GND, and the wiper, the middle terminal, goes to the pin labeled A0. Watch which leg is which: 3.3 V and GND on the wiper and one outer leg puts the two rails across part of the track only, which is close to a short at one end of the knob’s travel.
Figure 6.2.5. The potentiometer itself, with the three terminals identified beneath it: GND and 3.3 V go to the outer two, and the wiper, the middle terminal, goes to A0.
Figure 6.2.6. The test circuit. The potentiometer’s fixed track runs between 3.3 V and GND, and the wiper taps off a voltage somewhere between them, set by the knob. That wiper voltage is the analog input to PA0. This is the same circuit you will use for the first part of Lab 4.

Activity 6.2.3. Predict, Then Measure.

Put your digital multimeter (DMM) on the wiper, and answer the questions in order, predicting first and measuring afterwards.

(a)

Predict the wiper voltage with the knob turned fully counter-clockwise, at its center, fully clockwise, and about a quarter of the way up from the counter-clockwise end. Note all four numbers before you measure anything.

(b)

Now measure all four with the DMM. Where do your predictions and measurements disagree, and by how much?

(c)

Convert each of your four measured voltages into the count you expect the ADC to report. Keep these numbers, because we’ll check them against the ADC’s own readings once the program is running.