PDA

View Full Version : Voltage Divider help please



financecatalyst
- 19th November 2010, 19:32
I need some advise on the voltage divider network. I need to monitor the voltage for a 6V Lead Acid battery. I am planning to power my PIC using a suitable voltage regulator. I want such a regulator which is widely available and can provide a fixed voltage to PIC upto until the battery voltage voltage drops to 4.5-4.8V and PIC can monitor the decreasing the supply voltage through a voltage divider.

I also want to know what is MAX resistance values I can use to reduce the current drain.
Thanks

bogdan
- 20th November 2010, 01:43
The resolution of the ADC is 2^10=1024 steps... lets say you want a accuracy reading of 0.25 V from the battery... then the maximum reading voltage to the voltage divider will be 1024*0.25=256 V (that means when the battery will be 256 V then the voltage at the ADC port will be 5 V)
V_sense / V_battery = 5 / 256

... on the other side:
V_sense / V_battery = R2 / (R1+R2) = 10k / (R1 + 10k)
5 / 256 = 10k / (R1 + 10k)
- - - - - - - - - - - - - - - - - - - -
R1 = 502k


... bigger the R1 resistance = lower the current drain = lower the accuracy

The impedance shouldn't be bigger than 10k ohms to the ADC port (check the datasheet for your pic)