13
The Light Emitting Diode (LED)
1.
LED is short for Light Emitting Diode and is shown in simple circuit in Figure 2.4.
Figure 2.4
2.
The LED conducts electricity only in one direction. If the polarity of the diode is reversed, it will
not damage the LED, it will simply not emit light. What will damage the LED is too much current.
The LEDs included in the robot kit are .020 amps, commonly referred to as 20 ma (milliamps).
Therefore, a limiting resistor is needed in series with the LED, as shown in Figure 2.4.
3.
Ohm’s Law is used to determine the current flow through the circuits:
I =
𝑉
𝑅
or V = IR or R = =
𝑉
𝐼
V – the voltage across the component
I – the current flowing through the component
R – the resistance of the circuit
4.
In circuitry, ohms is a unit of electrical resistance and is represented by the symbol Ω.
5.
In our case, the LED will be connected on a digital I/O pin which has a HIGH output of 5 V. By
placing a 220Ω resistor in series, you are limiting the circuit through the resistor and LED to
about 20 ma. Let's connect the circuit shown in Figure 2.4 to your STEM Board microprocessor.
For this, we will need to use the breadboard.
Содержание Pi-Bot v2.00
Страница 67: ...67 Figure 6 15 ...
Страница 78: ...78 UltraSonicSensorTestwithLED Program ...
Страница 80: ...80 ObstacleAvoidance Program ...
Страница 82: ...82 ObstacleAvoidancewithLED Program ...
Страница 83: ...83 ObstacleAvoidancewithLED Program CONTINUED ...
Страница 90: ...90 Download and run the following program LineFollowing Program ...
Страница 91: ...91 LineFollowing Program CONTINUED ...
Страница 94: ...94 AdvancedLineFollowing Program CONTINUED ...
Страница 95: ...95 AdvancedLineFollowing Program CONTINUED ...
Страница 96: ...96 AdvancedLineFollowing Program CONTINUED ...
Страница 110: ...Appendix B Complete Pi Bot Wiring Schematic ...