Originally Posted by
Melanie
Here's a voltage doubler... 0-5v input (use 0-100% PWM from PIC), will produce 0-10v Output. To calibrate, output 5v from PIC (100% PWM) and adjust R2 for exactly 10v Output. For cheapness and to dispense with calibration, replace R1 and R2 with a single 1K5 Resistor, but all Reistor tollerances should in that case be 1% or better. Can't really get any cheaper than this... op-amp is about as low-cost as you can get at around 20 cents. You end up with a spare Op-Amp, configure it as your 5v Regulator to supply the PIC and dispense with the 78L05 or whatever you were planning to use.
Melanie