I'm using PICF877 to make digital voltmeter. I'm using microcontroller's ADC and four switches to change voltage range ( 200mV, 2V, 20V and 200V ) of input voltage. The thing is that I want to make automatic range switch( without the buttons ). Any ideas how can I accomplish this ?
I post the scheme ( I'm using optional voltage source to simulate it in proteus instead of Vin ).
Thanks in advance.
evsource
Joined: 21 Nov 2006 Posts: 129
Posted: Sat Mar 21, 2009 9:52 am
Just a stab in the dark, this is probably not how commercial units do it, but might be one idea.
Set up another ADC channel with a voltage divider designed for the highest allowable voltage you might encounter. The PIC reads this voltage - a low precision reading, and uses it to switch some relays that switch in correct resistors automatically.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum