WiFi_Kit_series icon indicating copy to clipboard operation
WiFi_Kit_series copied to clipboard

WIFI Kit 32 Battery to ADC connection

Open garthberry opened this issue 7 years ago • 8 comments
trafficstars

Is there any kind of connection between the battery and one of the ADC pins for monitoring battery level?

garthberry avatar Jan 07 '18 15:01 garthberry

I have the same question. @garthberry: Do you figured it out?

seaser0 avatar Feb 06 '18 21:02 seaser0

I was running some test and it seams to be A4. When I connect a full LiPo the analog read function shows values around 500 and it will drop below 100 when the battery is empty. I hope that helps.

seaser0 avatar Feb 08 '18 12:02 seaser0

@seaser0 I performed the same test with a bench power supply connected to the battery terminal and I can confirm that out of A1-A7, A4 is the only one that reflects the change in battery voltage. The minimum voltage seems to be about 3.3v, anything less and the analog read function returns 0.

At a guess I would say there is a voltage divider connected between the battery + and A4 pin. @Heltec-Aaron-Lee Any chance the schematics could be made available somewhere?

garthberry avatar Feb 12 '18 14:02 garthberry

sorry for a dumb question.... A4 - which PIN number is this? ( I can't see A4 on pinout diagram) thanks Marcel

kovir avatar Feb 27 '18 16:02 kovir

According to this diagram A4 (or ADC1_4) corresponds to GIPO 32.

Heltec Wifi Kit 32 Pinout Diagram: http://esp32.net/images/Heltec/WIFI-Kit-32/Heltec_WIFI-Kit-32_DiagramPinout.jpg

seaser0 avatar Feb 27 '18 18:02 seaser0

Has anyone code for micropython to read the battery level? vcc = machine.ADC(machine.Pin(32)) vcc.read() does not work reliable and gave me values from 500 to under 100 in one minute the 1000mAh battery is connected with the JST-connector and I'm connected via webrepl

walterheisenberg avatar Feb 08 '19 13:02 walterheisenberg

@walterheisenberg have you figured it out? My readings are all over the place too :/

mwargan avatar Jul 23 '19 20:07 mwargan