I am wondering how to control 10 LEDs (common anode) using only three PWM pins (for RBG) and the 5v pins.
For more project context, I have written Arduino code that takes rgb color profiles from a relatively complex but fully functional Java program running on a computer and passes them to an Arduino over USB, which then replicates the color over PWM pins on a common anode LED. Now, I want to apply these color profiles to more than the single LED I’m powering at the moment. Each LED should behave exactly as the others do (or at least, should appear to be doing so to the human eye) at all times.
Some quick reading on shift registers reveals that I do not actually need 30 PWM pins to achieve this, but I am not sure how to implement this. My plan is to mirror RGB signals from the PWM RGB trio pins on the Arduino I have set up to some sort of mirroring system that sends those signals to all 10 LEDs. For power, my plan was to turn remaining pins into 5v supplies and power each LED individually. Is it possible, though, to mirror that common anode pin as well to reduce the number of total pins required?
Thanks for your advice. If you haven’t realized yet, I’m very new to this, so I appreciate your patience.