We need to first understand Three kinds of LED in design model systems. were RED , BLUE and GREEN. then we to control LED Module with MCU’ouput pin .
In order to accomplish output job(output different color) they’ll have to work hard and work together. Let’s now look at the connect circuit of the RGB-led to see how this works.
The PWM (Pulse Width Modulation) is very important.. Actually, PWM kept switch(a signal switched between on and off.) . the PWM frequent would take 60Hz at a minimum.
LED pwm drive analysis and design threads.
* A common MCU with a PWM output pin . If there is no PWM output pin. To emulate PWM with MCU timer .
* If the led’ currently (<=200mA)is too small, you may use small power triode. such as S8050
Instead, If the led’ currently is too big , we should adopt big power drive module. such as ULN2003.