Lesson 3 Controlling an RGB LED by PWM
Introduction
RGB LED is designed based on the principle of three primary colors. In an RGB LED,
three LEDs in red, green, and blue respectively are packaged together, thus by controlling
the brightness of three LEDs, making the RGB LED flash multiple colors.
Components
- 1 * Raspberry Pi
- 1 * GPIO Extension Board
- 1 * 40-Pin GPIO Cable
- 1 * Breadboard
- 1 * RGB LED Module
- 1 * 4-Pin Wires
Experimental Principle
The Fritzing image:
The Physical picture:
Pin definition:
The schematic diagram: