Hey,
I'm building a lamp based on an RGB LED and the ATTiny85 microcontroller and would like some feedback on the design. Since the ATTiny85 has 2 PWM channels, only two of the three colours will be active at a time. The following circuit is intended to select which two colours are active with the respective PWM signals. The circuit appears to work in the simulator however I am unsure of the locations of the PNP transistors and how high I can make all base resistor values to reduce power consumption.
Notes on the circuit: 1) The RBG LED has been split into three LEDs which represent a common anode RBG LED. 2) Switches U1 & U2 have been added to the circuit to aid simulation which represent the digital pins of the microcontroller sourcing / sinking current. 3) All transistors are 2N3904 & 2N3906.
Feel free to lecture at your leisure.
Regards,
Mark

I'm building a lamp based on an RGB LED and the ATTiny85 microcontroller and would like some feedback on the design. Since the ATTiny85 has 2 PWM channels, only two of the three colours will be active at a time. The following circuit is intended to select which two colours are active with the respective PWM signals. The circuit appears to work in the simulator however I am unsure of the locations of the PNP transistors and how high I can make all base resistor values to reduce power consumption.
Notes on the circuit: 1) The RBG LED has been split into three LEDs which represent a common anode RBG LED. 2) Switches U1 & U2 have been added to the circuit to aid simulation which represent the digital pins of the microcontroller sourcing / sinking current. 3) All transistors are 2N3904 & 2N3906.
Feel free to lecture at your leisure.
Regards,
Mark
