LilyGo-T-Call-SIM800L - How to detect power source USB-C or BATTERY
Posted: Sun Jul 26, 2020 11:04 pm
Hello everyone,
I'm looking to a way to detect if my LilyGo-T-Call-SIM800L is powered from USB-C connector or if running from battery.
My first option was to add an extra power supply (220VAC to 5V) connected only to a GPIO pin and detect if there is power. I wish to avoid this solution so save a second power suply unit on the project.
My second option was to connect the 5Vdc coming from USB-C to one of the GPIO pin. The problem here is how to get USB-C 5v. USB-C connector has a very small pins and I wan't be able to solder a wire without destroy the whole PCB.
Anyone knows if is possbile to detect power source on LilyGo-T-Call-SIM800L.
Actually I'm using Adafruits_FONA library where I should be able to measure battery capacity but not power source.
many thanks
I'm looking to a way to detect if my LilyGo-T-Call-SIM800L is powered from USB-C connector or if running from battery.
My first option was to add an extra power supply (220VAC to 5V) connected only to a GPIO pin and detect if there is power. I wish to avoid this solution so save a second power suply unit on the project.
My second option was to connect the 5Vdc coming from USB-C to one of the GPIO pin. The problem here is how to get USB-C 5v. USB-C connector has a very small pins and I wan't be able to solder a wire without destroy the whole PCB.
Anyone knows if is possbile to detect power source on LilyGo-T-Call-SIM800L.
Actually I'm using Adafruits_FONA library where I should be able to measure battery capacity but not power source.
many thanks