Here is a post that I put on the Raspberry Pi forum about using the Pulse Width Modulation feature to create a (static) output voltage. The result is more accurate than most would expect.
I wrote a post on the Raspberry Pi forums about adding an analog input to the Pi by using an ADC. The application I used to describe it was to measure the 5V supply to the Pi, which is still a major source of problems and confusion.