Dimming an LED strip

I am sorry you fried your Arduino. You don't need a capacitor; PWM is a pulse, if you add a capacitor it will absobe the pulse and there will be no dimming--full brightness.