Electronic – Problem controlling common cathode 12V RGB LED

12vledled-driver

I want to be able to control an RGB LED with common cathode and I've used the circuit below for each colour. For some reason there is 12V on the output all the time and I can't control the LED as it's switched on all the time.

Circuit

Any help will be greatly appreciated.

Best Answer

Body diode of Q12 is conducting permanently in your circuit. To avoid such mistakes use schematic symbol with diode drawn inside the mosfet. Link to datasheet of the mosfet.

enter image description here