Hi
My son has an Arduino project and he is trying to get 3 RGB LEDs to fade in/out at the same time. The RGB LEDs are 3 colours (i.e. each one is Red/Yellow/Green) so to fade each one would normally need 9 PWM connections and his Aruino only has 6 connections.
The good news is that each RGB LED only needs to light up one of the 3 colours at any one time (e.g. Red-Green-Red).
So what I was thinking was to link up one PWM to one connection (e.g.red) and one connection for the other colours (yellow or green), thus needing total of 6 PWMs. The idea was to use something like a transistor to switch between yellow-green.
Are we on the right track or is there a better way? I really am a nooby as far as electronics so any help would be much appreciated.
TIA
Nick
There is a SoftwarePWM library which might be useful...
Hi Mark
We did look at software solution but my son thought that when you use '#include' that the code was not stored on the Arduino plus there might be issues with downloading code (not on our home PC). Will investigate this as it seems a lot simpler but also looking at hardware (e.g. SPDT relay with transistor).
Any thoughts as to the difference between the two approaches?
Many thanks
Nick
Looks like we will go with the software solution first
Many thanks
Nick