Package Includes :
1 x?DIP 3 Color LED Module.
Specifications and Features :
- ?the use of plug-in full-color LED.
- ??RGB trichromatic limiting resistor to prevent burnout.
- ??Through the PWM adjusting three primary colors can be mixed to obtain different colors.
- ??With a variety of single-chip interface.
- ??The working voltage: 5V.
- ??LED drive mode: common cathode driver
- ??Size: 24.32 x 15 x 15.7 mm(approx)(LxWxH).
- ??Color: Black.
Experimental Principle :
RGB LED modules can emit various colors of light. Three LEDs of red, green, and blue are packaged into a transparent or semitransparent plastic shell with four pins led out. The three primary colors, red, green, and blue, can be mixed into various kinds of color by brightness, so you can make an RGB LED emit colorful light by controlling the circuit.
In this experiment, we will also use PWM technology to control the brightness of RGB.
Before we talk about PWM, let?s take a look at the applications of PWM first. PWM has been successfully applied in motor speed regulation, steering angle control, light intensity control and signal output. For example, when PWM is applied to a horn, it will make sounds. After we know about its special functions, let?s find out what PWM really is.
PWM in LED :
Pulse Width Modulation commonly refers to PWM. Pulse Width Modulation (PWM) is a digital coding method for analog signal levels. Since a computer cannot output an analog voltage but digital voltage value 0V or 5V, we modulate the duty cycle of square waves to encode a specific level of the analog signal by using a high-resolution counter.
PWM signals are essentially digital signals, for the full amplitude DC power supply is either 5V (ON) or 0V (OFF) at any given time. Voltage or current source is applied to an analog load in the form of ON or OFF repetitive pulse sequence. When it is on, DC power supply will be applied to the load; when it is off, DC power supply will be disconnected. If only the bandwidth is wide enough, any analog value can be encoded by PWM. The output voltage value is calculated by the on and off time. Vout?= (Ton/ T)*Vmax.
We can see from the top oscillogram that the amplitude of DC voltage output is 5V. However, the actual voltage output is only 3.75V through PWM, for the high level only takes up 75% of the total voltage within a period.
Here is the introduction of three basic parameters of PWM:
- The term?duty cycle?describes the proportion of ‘on’ time to the regular interval or ‘period’ of time
- Period?describes the reciprocal of pulses in one second
- ?Upwm?describes the mean value of output voltage (e.g. 0V-5V)
Here we input any value between 0 and 255 to the three pins of the RGB LED to make it flash different colors.
RGB LEDs can be categorized into common anode type and common cathode type. In this experiment, we use common cathode RGB LED.