voltageCalibrationCorrection

This commit is contained in:
richonguzman 2024-07-10 09:49:13 -04:00
parent 26e2dec2b2
commit ddb83d1368
2 changed files with 1 additions and 3 deletions

View file

@ -38,7 +38,7 @@ ________________________________________________________________________________
#include "A7670_utils.h"
#endif
String versionDate = "2024.07.08";
String versionDate = "2024.07.10";
Configuration Config;
WiFiClient espClient;

View file

@ -14,7 +14,6 @@ float adcReadingTransformation = (3.3/4095);
float voltageDividerCorrection = 0.288;
float readingCorrection = 0.125;
float multiplyCorrection = 0.035;
float adcVoltageCorrection = 0.041;
float voltageDividerTransformation = 0.0;
@ -140,7 +139,6 @@ namespace BATTERY_Utils {
float voltage = esp_adc_cal_raw_to_voltage(sampleSum / 100, &adc_chars);
voltage *= 2; // for 100K/100K voltage divider
voltage /= 1000;
voltage -= adcVoltageCorrection;
return voltage;
} else {
return (2 * (sampleSum/100) * adcReadingTransformation) + voltageDividerCorrection; // raw voltage without mapping