RGB LED flickering

Most beginners forget to connect the ground of the 12V power supply to the ground of the arduino.