Right now i try to attach several RGB Leds to my Arduino with the help of 3 mosfet power transistors and a 6V external power supply. Its the first time im working with power transistors, and as always the problems are big.
Diagram looks like this: (same for every color)
Digital output --> 10k resistor ---> G
6V + ---> D
6V - ----> LED cathode ---> 220 resistor ---> S
I hope this is understandable. The Problem is, i dont know where to attach the Arduino ground. Each time i touch one transistor, the colors are changing. It seems not very stable right now..
The problem is, i've got common cathode rgb leds and want to control them with 3 mosfets.
So i think i have to control the anodes of the led with the transistors?!