Monitoring Lipo

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
flyingbuddy
 
Posts: 8
Joined: Mon Sep 26, 2022 10:14 am

Monitoring Lipo

Post by flyingbuddy »

Hi, I have a Adafruit ESP32 Feather V2 and trying to monitor the attached lipo but without success.
I downloaded the Adafruit_LC709203F demo sketch and it can't find the LC709203F.
I have a fully charged lipo attached and can see 4.16v on BAT pin, pin 13 is reading zero v.
I have tried including the code to turn on the power and tried it without.
My feeling is the batt power is not getting through to the chip, any help, suggestions please.
It would be nice to use this feature as the board is going into a remote control for a 5hp electric outboard.
If I can't get this going I will have to use a voltage divider onto an analogue pin.

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Monitoring Lipo

Post by dastels »

The feather ESP32 v2 doesn't have an LC709203F onboard. It uses a voltage divider on an analog input. See https://learn.adafruit.com/adafruit-esp ... ry-3122383.

The Feather ESP32-S2 and ESP32-S3 have an LC709203F.

Dave

User avatar
flyingbuddy
 
Posts: 8
Joined: Mon Sep 26, 2022 10:14 am

Re: Monitoring Lipo

Post by flyingbuddy »

Arhh that makes sense, getting confused with all the variants, tried the code and gave an answer of 15.84 volts, mrrr not quite right.
So printed the raw analogue reading of 2457, so did a calc.
3.3v div 12 bit adc = 8.05 -4 per bit.
4.2v battery div by two = 2.1v div by the bit value = 2605.

Conclusion I think the sketch maths is off.

Never mind I can take it from here thanks Roger

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”