Why should you put a capacitor around a potentiometer?

petemyster:

gm1mfn:
The capacitor in that schematic is across the supply to the microprocessor. It just happens to be across the supply to the pot as well. If you are using Arduino, the capacitor will be on the board.

Thanks. Why is there 2 potentiometers? If the motor causes an initial drain on the power is the capacitor across the motor not enough on its own?

I don't think the motor is an motor, it's an RC servo (looks so on the picture) and the aurdino feeds the servo with an puls 1ms (midposition)±0,5 ms (right/left)

Pelle