Download What`s a Microcontroller Text
Transcript
Page 142 · What’s a Microcontroller? Vdd Vdd Vin Vss X3 220 Ω Pot 10 kΩ X LED nc Vss + P15 P14 P13 P12 P11 P10 P9 P8 P7 P6 P5 P4 P3 P2 P1 P0 X2 Figure 5-5 Potentiometer-LED Test Circuit Testing the Potentiometer Circuit √ Turn the potentiometer clockwise until it reaches its mechanical limit shown in Figure 5-6. Handle with care: If your potentiometer will not turn this far, do not try to force it. Just turn it until it reaches its mechanical limit; otherwise, it might break. √ Gradually rotate the potentiometer counterclockwise to the positions shown in Figure 5-6 (b), (c), (d), (e), and (f) noting the how brightly the LED glows at each position. (a) (c) (e) (b) (d) (f) Figure 5-6 Potentiometer Input Shaft (a) through (f) show the potentiometer’s wiper terminal set to different positions. How the Potentiometer Circuit Works The total resistance in your test circuit is 220 Ω plus the resistance between the A and W terminals of the potentiometer. This value could be anywhere from 0 to 10 kΩ. As you