8 RGB LEDs to light dollhouse - is my schematic correct?

Hi,

This is my first project on Arduino - I want to make some lights for my 2 daughters dollhouse. After looking at some schematics in internet I couldn't find exactly what I wanted so I created mine.
Could you please check if I've done it correctly and didn't miss anything? The last set of 2 LEDs (pins 3, 7, 8) I want to control by software PWM (not sure how to do it yet, but it must be possible).
Is it possible to use pins 2, 1, and 0 in the same way (software PWM)? - pins 0 and 1 are marked TX / RX and I'm not sure if I can use them.
I would really appreciate your help.

Daniel

led_wiring.bmp (106 KB)

With that you can only control the LEDs in 3 groups.
Much better to use shift registers like here:-
http://www.elcojacobs.com/shiftpwm/

Your circuit will not work because you are sharing one resistor with several LEDs. Each needs its own resistor.

Thank you for your advice, I will have a look at shift pwm. Is it easier to wire leds this way? I don't really need to control each single LED separately, but if it's just easier to wire I will use shift registers.

I changed my schematic - is it correct now?

Thanks
Daniel

led_wiring2.bmp (104 KB)

Yes that is correct now. :slight_smile: