User Manual
46
Lesson 3 Flowing LED Lights
Introduction
In this lesson, w e w ill learn how to make eight LEDs blink in various effects as you w ant 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
lev el. So in this experiment, set B17, B18, B27, B22, B23, B24, B25, and B4 to low lev el in turn by
programming, and then LED0-LED7 w ill light up in turn. You can make eight LEDs blink in
different effects by controlling their delay time and the order of lighting up.
Experimental Procedures
Step 1: Build the circuit
SunFounder