Closed robojay closed 7 years ago
I've added a fuel gauge. Same as in the SparkFun LiPo Fuel Gauge (https://www.sparkfun.com/products/10617).
Removed voltage divider from battery.
PC5 is now available. We could attach it to the alert interrupt of the fuel gauge, but I don't think it's worth sacrificing a pin.
With the battery voltage divider in place, the charger will always think a battery is installed (look at the data sheet (http://ww1.microchip.com/downloads/en/DeviceDoc/20001984g.pdf) for battery detection method). I don't think this is a problem for the current design, but something to note.
Also, the data sheet says a bypass cap should also be on the regulator's VIN (VDD) pin. You should add one.