Download What`s a Microcontroller Text

Transcript
Chapter #2: Lights On – Lights Off · Page 43
√
Plug the resistor’s other lead into one of the sockets labeled Vdd.
Direction does matter for the LED, but not for the resistor. If you plug the LED in
backward, the LED will not emit light when you connect power. The resistor just resists the
flow of current. There is no backwards or forwards for a resistor.
√
√
Reconnect power to your Board of Education or HomeWork Board.
Check to make sure your green LED is emitting light. It should glow green.
Vdd
Vdd
X3
470 Ω
LED
Vss
Vin
Vss
+
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
Figure 2-6
LED On
Schematic (left) and
Wiring Diagram (right)
If your green LED does not emit light when you connect power to the board:
√
√
Some LEDs are brightest when viewed from above. Try looking straight down
onto the dome part of the LED’s plastic case from above.
If the room is bright, try turning off some of the lights, or use your hands to
cast a shadow on the LED.
If you still do not see any green glow, try these steps:
√
Double check to make sure your cathode and anode are connected properly. If
not, simply remove the LED, give it a half-turn, and plug it back in. It will not
hurt the LED if you plug it in backwards, it just doesn’t emit light. When you
have it plugged in the right direction, it should emit light.