Put a variable resistor on it, same principle that a servo works on.

I get the impression that Arduino's are quite fragile and designed to be very powerful. For something like that you need a simple dev board with PWM ports. Coding should be fairly straight forward.