ESP32 - WROOM Crowpanel 2.4inch - Battery - external connector

Hello , I am looking for some friendly advise how I am able to read battery level on a crowpanel. the Crowpanel has a connector to connect the battery and I am not sure if there is some code I can use to read the battery voltage when it is connecting using the in built connector , I have read the schematics and cant seem to be able to get the correct pins , VBAT , I was wondering if anyone might know a way to read the voltage from the crowpanel .

Thanks in advance.

  • Assume we don’t know what a crowpanel is.

are you already asked the manufacturer?



I am trying to see if I am able to get internal voltage measurements, it looked like pin 7 was for VABT but I can not get any reading , As these are manufacture drawings , I thought that I could try here to see if anyone has any luck with HMI screens with getting voltage from a battery.

As you can see the battery has a plug that is different from a ESP32 chip board where you power to 3V3 pin and able to use a 2 resistor bridge divider to measure voltage. Here is different as battery is direct connection.

was, but in this PCB have no connection
you can attach external resistor divider and measure as usual


you see, between BAT+ and 3V3 (which attached to VBAT pin 7) is p-MOSFET and the regulator

CrowPanel ESP32 Display-2.4-V2.1-SCH-20240314.pdf (78.4 KB)

Hi thanks for the info , I am struggling to find how to code this , is there a pin out that I can choose and add to the code that for example a internal pin that once picked (ADC) for example I can monitor the battery , as the battery has a connector and connects to the board as I cant use any pins as its its all in one HMI board.

the battery will charged (if needed) from USB via 4054A chip, read post#8
otherwise, you can attach external resistor divider and measure as usual

Using a resistor divider is a good solution but it also consumes battery energy,

to prevent discharging of the battery pull its connector from the socket :wink:
TFT display consume much more energy, but if someone will, he can mimic the internal circuitry of XPT2046 and disconnect divider when not in use.

If you 'feel brave' you can also solder the vbat to the r35 lead that is connected to pin 7 of the XPT2046 ( r35 should not be mounted, or you have to remove it ).
Then you have to use the touch panel library to read the vbat voltage ( so first check if it has this capability if you choose this way )