Closed beicnet closed 5 years ago
It's a value calculated to give a known output voltage in the above formula, compared to my (inexpensive) multimeter. You can adjust the value for you own circuit if required.
Okay @PaulRB so how did you calculate it and by what formula any explanation?!
Thank you
I calculated it with basic School maths!
Connect a voltage to the analog pin (via the 180K resistor). Measure that voltage with your multimeter, let's say that's 3.27V for example. Take the raw analogRead() value, let's say that's 686. Divide one by the other, you get 209.66.
What is it represents?
double battLevelNow = analogRead(BATT_LEVEL) / 209.66; // assumes external 180K resistor
209.66
Measured resistor value by multimeter or?