Open johnwcha opened 1 month ago
Johnwcha, I don't think that function will work because the 1.91 touch does not have a battery power management unit/PMU like the 1.47 lite version. SteveC
On Tue, Apr 9, 2024 at 1:13 PM johnwcha @.***> wrote:
all sample code compiles and runs fine running fine on a 1100 mAh Lipo battery amoled.getBattVoltage() seems to work fine either via usb or on battery
However, trying to detect if device is running on battery power, amoled.isBatteryConnect() would always return 0 amoled.isCharging() always returns 0 even though the battery is charging
would appreciate any help. Thanks
— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-AMOLED-Series/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6NLMR7IBFORLVI5VAPVSLY4QOVNAVCNFSM6AAAAABF6662LOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTGOJTGU2DGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I see. Thanks, Steven.
On the website, it says The module is equipped with a built-in battery management system. Is there any function to work with battery status/charging?
Take a look at the 1.91" version schematic. It only has a TP4065 based charging circuit. It's a dumb charger with no control/status interface to the processor. So no status feedback is possible, The ESP32 can only read the BAT_VOLT voltage on GPIO4. The 1.47" version has a smart interface.
Thanks. You're super !!!
Surprised it didn't throw an error. Those functions should only work for BOARD_AMOLED_147 and BOARD_AMOLED_2417 versions. No problem, glad it helped!
Forgot to mention that amoled.getBattVoltage() does work for 1.91". It just uses the ESP32 S3 built in ADC. Gives millivolts.
This issue is stale because it has been open for 30 days with no activity.
all sample code compiles and runs fine running fine on a 1100 mAh Lipo battery amoled.getBattVoltage() seems to work fine either via usb or on battery
However, trying to detect if device is running on battery power, amoled.isBatteryConnect() would always return 0 amoled.isCharging() always returns 0 even though the battery is charging
would appreciate any help. Thanks