battery monitor update

This commit is contained in:
richonguzman 2024-05-24 14:42:39 -04:00
parent 2c71e3ed65
commit 618be275af
2 changed files with 7 additions and 8 deletions

View file

@ -47,12 +47,10 @@ WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
bool isUpdatingOTA = false;
uint32_t lastBatteryCheck = 0;
String batteryVoltage; // ????
bool backUpDigiMode = false;
bool modemLoggedToAPRSIS = false;
bool shouldSleepLowVoltage = false;
std::vector<ReceivedPacket> receivedPackets;
String firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine;

View file

@ -3,12 +3,13 @@
#include "boards_pinout.h"
#include "utils.h"
extern Configuration Config;
extern uint32_t lastBatteryCheck;
extern bool shouldSleepLowVoltage;
extern Configuration Config;
extern uint32_t lastBatteryCheck;
float adcReadingTransformation = (3.3/4095);
float voltageDividerCorrection = 0.288;
bool shouldSleepLowVoltage = false;
float adcReadingTransformation = (3.3/4095);
float voltageDividerCorrection = 0.288;
// for External Voltage Measurment (MAX = 15Volts !!!)
float R1 = 100.000; //in Kilo-Ohms