konradIC13
Member
Hello,
I want to make circuit where 3 ATmega8 outputs will be used to control 3 transistors where each of transistor will control one LED (in fact 3 transistors will work with one RGB LED, they will be just switching on/off appropriate colors of it, Red/Green/Blue, the If of each part of LED is 20mA and the voltage drops are 1.95v/3.3v/3.3v for R/G/B)
I made two schematics, one is using NPN transistors and LEDs are on when the output is set high and in other one with PNP transistors LEDs are on when output is set low.
I now cant decide if i should use the NPN configuration or PNP, what will be better? If the ATmega8 will supply current or sink current?
View attachment 65121 View attachment 65122
I want to make circuit where 3 ATmega8 outputs will be used to control 3 transistors where each of transistor will control one LED (in fact 3 transistors will work with one RGB LED, they will be just switching on/off appropriate colors of it, Red/Green/Blue, the If of each part of LED is 20mA and the voltage drops are 1.95v/3.3v/3.3v for R/G/B)
I made two schematics, one is using NPN transistors and LEDs are on when the output is set high and in other one with PNP transistors LEDs are on when output is set low.
I now cant decide if i should use the NPN configuration or PNP, what will be better? If the ATmega8 will supply current or sink current?
View attachment 65121 View attachment 65122
Last edited: