18
Lesson 3 Dual-color Common-Cathode LED
Introduction
There are two kinds of dual-color Common-Cathode LED in this kit. The only difference is the
package size of the LED, as shown below:
Components
-
1 * SunFounder Uno board
- 1 * USB data cable
- 1 * Dual-color Common-Cathode LED module
- Several jumper wires
Experimental Principle
Control the LED brightness by the digital port. The color of the LED changes from yellow to
red as well as flashes a mixed color.
Experimental Procedures
Step 1:
Build the circuit
Dual-color Common-Cathode LED SunFounder Uno
Y ------------------------------------------- D10
- ------------------------------------------ GND
R ------------------------------------------- D11
Step 2:
Program (Please refer to the example code in
LEARN -> Get Tutorial
on our
website
)
Step 3:
Compile
Step 4:
Upload the sketch to SunFounder Uno
SunFounder