I have set up the circuit below.
My problem is using the Arduino as the signal source. If I send a PWM signal (using analogWrite) it controls the brightness of all the LEDs, instead of controlling how many are turned on. If I replace the Arduino with a pot hooked on a 5v source, the chip behaves as it should. Is this a current issue?