Emulate Potentiometer[RESOLVED]

For my project I need to emulate a potentiometer with one of the UNO’s digital PWMs. The only problem is a PWM isn’t true analog. What is the best way for me to do this? Should I use a digital to analog converter or something else. Any ideas, links, directions or circuits to do so are appreciated.

Why emulate a potentiometer, when you could use a real (digital) potentiomer?

I would rather use as few components as possible.