I want to be able to control 9 RGB leds, each color from a potentiometer. Each color needs 20mA, so when all the colors are present the leds will need 540mA (9*3=27, 27*20mA=540mA).
My RGBs leds are common cathode so between the micro controller and the anode for every color y will put a transistor(TIP31C), with this configuration:
Do you think it will work? or I will need another voltage source? since I am giving just 5v to the micro controller.
Thanks for any advice in this project.