Look into using Pulse Width Modulation if your voltage range is 0 to 5 Volts. Or you could even modulate a transistor with a higher voltage at the collector. Your PIC might have a built in PWM generator and if so, you can easily control the duty cycle to give you changeable output analog voltage abilities.
Bookmarks