Quick question about variable resistors

Have a few 5v DC motors with variable resistors attached to provide positional data. I want to hook this up to my Arduino to try and figure out the rotation of the motor, but someone told me I'd have to connect a 220 ohm resistors and a 1.0 uF capacitor.

Can anyone tell me why a capacitor would be necessary for this? Do I really need that?

Variable resistors? Like the shaft of the motor drives the shaft of the resistor?
Is it a 3-lead variable resistor?
If you put a meter on the resistor between the middle lead and one leg, what resistances do you see as it rotates?
If is a 3-lead device, you can connect 1 leg to +5, one leg to Gnd, and the middle leg to an arduino analog input. The resistance from outer leg to outer leg is important - if too low, say under 1K, you will have to check the power rating on the part, make sure you won't burn it out.

It's a three lead resistor, operating at 5v I think. But yes, the shaft of the motor turns the resistor.

So are you saying the capacitor might be needed so that the voltage doesn't drop too low between the two outer legs?

No, cap would be added from wiper to Gnd to smooth out the level some as it changes.

Sorry, I'm still new to this, so I want to be totally clear.

The resistor would connect to the +5v pin of the VR? And the middle pin of the VR would connect to the capacitor and then go into the analog input of the Arduino board?

Like this

Great! Thanks so much for you help.

Glad to help.