Xinyuan-LilyGO / LilyGO-T-A76XX

LilyGo A7670 A7608 SIM7672 series
MIT License
96 stars 42 forks source link

Power source detector #65

Closed Unicorn7141 closed 6 months ago

Unicorn7141 commented 9 months ago

Hello there, I want to make a device that alerts the user when the device's power is off (ka running from battery). How can I do that, because I assume VBAT is not directly readable and I am not sure if it outputs 3.3v or 5v when running from USB.

HDC67 commented 8 months ago

Connect your supply (i.e. SOLAR_IN with an appropriate voltage divider to a CPU pin?

VBAT is readable on pin 35 if you have version 1.2 (or later of the board) See this issue : https://github.com/Xinyuan-LilyGO/T-A7670X/issues/33

Unicorn7141 commented 8 months ago

Connect your supply (i.e. SOLAR_IN with an appropriate voltage divider to a CPU pin?

VBAT is readable on pin 35 if you have version 1.2 (or later of the board) See this issue : #33

I have V1.1

HDC67 commented 8 months ago

Connect your supply (i.e. SOLAR_IN with an appropriate voltage divider to a CPU pin? VBAT is readable on pin 35 if you have version 1.2 (or later of the board) See this issue : #33

I have V1.1

You could add your own with a simple 100k:100k voltage divider fed back into a pin capable of doing AD conversion. That's all that is on the v1.2 as far as we know (there's no v1.2 schematic but that is what the manufacturer says and what measurements appear to show)

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.