Battery monitor Firmware for a PIC microcontroller using an INA226 current shunt monitor