44
Lesson 3 Flowing LED Lights
Introduction
In this lesson, we will learn how to make eight LEDs blink in various effects as you want based
on Raspberry Pi.
Components
- 1 * Raspberry Pi
- 1 * Breadboard
- 8 * LED
- 8 * Resistor (220Ω)
- Jumper wires
- 1 * T-Extension Board
- 1 * 40-Pin Cable
Principle
Principle
: Judging from the schematic diagram, we can know that a LED and a current-
limiting resistor have been connected to B17, B18, B27, B22, B23, B24, B25, and B4 respectively.
The current-limiting resistor has been connected to the 3.3V power supply on other side.
Therefore, if we want to light up one LED, we only need to set the GPIO of the LED as low
level. So in this experiment, set B17, B18, B27, B22, B23, B24, B25, and B4 to low level in turn by
Содержание Super Kit 3.0
Страница 7: ...4 22 RGB LED 1 23 LED red 8 24 LED white 4 25 LED green 4 26 LED yellow 4 27 NPN Transistor S8050 2 ...
Страница 30: ...27 Also we have drawn a table of the corresponding BCM wiringPi and Name of each pins ...
Страница 78: ...75 Now pull the slide and you can see the two LEDs light up alternately ...