Thank you very Much, actually i was trying that code in proton,by mistake i pasted.will delete now.
Since you are a senior member of this forum, and you also understood what code i am searching for, Could you pls help me out. i need to adjust the voltage 0-10 with 2 buttons..
Help would be appritiated..
Warm Regards..
OK, the 555 is good trick, but if you use an LMC66x series op-amp and a single +12 volt supply, you have a 0-10 voltage amplifier with 3 parts! May be 2 more to filter PWM from PIC...
Ioannis
naga
If you use a PIC with Hardware PWM (eg 16F628) then varying the Duty in steps of 10% from 0 to 100% (see HPWM command) will give you your ten steps. A simple filter on the output will then give you ten voltage steps from 0v (0%) to 5v (100%).
I recall posting a circuit for an Op-Amp Voltage Doubler some time back. Do a forum SEARCH, stick that on the end of your filter and presto - you got ten steps of 0-10v.
http://www.picbasic.co.uk/forum/show...hlight=doubler
Is that it? I've got it on my 'hot' list of handy items to keep around...
Bookmarks