GPSRaw.begin(9600, SERIAL_8N1, 13, 14);// GPS init
Thanks a lot. It works. I small hint in the documentation would be nice.
@felmue It seems to me that I measure not the battery voltage. The voltage is always around 4.8 V and this could be the voltage after the SY7088. So I can use that voltage as an indicator for enough battery voltage only. If I have schematics then I have the chance to a little bit deeper. Until now I did not find the schematics, yet.
I want to use the PowerC as a backup battery for the small internal.
I use your program example and it works.
After switching on the PowerC I can see the external Vbat and seconds later PowerC switches off and I can see the internal Vbat. This is not the expected behavior. Additionally, the switch loses its membrane already (after 20 presses).
If I connect the SIM800L module to the M5Stack Basic Core I get always Resets as in the screenshot shown
Is there enough power over the USB connector to source that combination? SIM800L can have spikes till 2 A.
I have connected a GoBottom w/ 600mAh LiPo but that's not enough. What can I do in this case?
Here is a working code example:
// initialize the M5Stack object
Wire.begin(); // required to access IP5306
M5.Lcd.printf("IP5306 Function Test\r\n");
M5.Lcd.printf("No communication with IP5306 chip");
uint8_t bat = M5.Power.getBatteryLevel();
if (M5.Power.isCharging()) M5.Lcd.printf("Battery is charging\r\n");
else M5.Lcd.printf("Battery is not charging\r\n");
M5.Lcd.printf("Battery Level %d", bat);
M5.Lcd.progressBar(0, 220, 360, 20, bat);