Replies: 1 comment
-
Isn't the first parameter of the /**
* Initializes the library by optionally setting additional parameters.
* To obtain the best results use a calibrated reference using the VoltageReference library or equivalent.
*
* @param refVoltage is the board reference voltage, expressed in millivolts
* @param dividerRatio is the multiplier used to obtain the real battery voltage
* @param mapFunction is a pointer to the function used to map the battery voltage to the remaining capacity percentage (defaults to linear mapping)
*/
void begin(uint16_t refVoltage, float dividerRatio, mapFn_t = 0); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm using a LilyGO-T-SIM7000G to measure sensors on a beehive and would like to get a fairly accurate battery measurement as it's a remote location (Solar powered).
The board has 100K voltage dividers on pin 35:
They have an example sketch for calculating the voltage buy using the fuse ref, is this something that could be integrated into the library?
https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/blob/master/examples/readBattery/readBattery.ino
Beta Was this translation helpful? Give feedback.
All reactions