1.) Accurate voltage sensing.
Many (most) PIC microcontrollers have built in 10 bit A/D converters,
but the accuracy depends on the stability of the power supply rail,
something we can't rely on since that will be changing. I believe
adding a precision 0.2% 2.5v Vref can increase the accuracy to a usable
level for 3-4v li-ion cells. I've never used a vref before with a PIC
A/D converter, so I'm not sure exactly how thats done. I've looked
around online for tutorials with only a little success. Does anyone
know exactly how to do that? We need to accurately measure the voltage
of the cell that the chip is running from which should be > 3v and less
than 4.5v.)
Chris
Another thing that I think we need to look at is discharge. The
regulator will be constantly consuming power, even if the chip is in low
power standby, as will the thermistor and voltage dividers. For the
thermistor, it could simply have the ground connection be routed back to
an output on the PIC which could be brought low to measure the
thermistor, and high to shut it off so there is no current leaking to
ground while the chip is in low power sleep.
Chris