G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
966 stars 206 forks source link

Wemos lolin 32+epaper 1,54 v2+lipo 3,7v 2000mah battery #226

Closed maik104 closed 1 year ago

maik104 commented 1 year ago

Hello, can you tell me how the formula with the factor: float voltage = analogRead(36) / 4096.0 * 1.63

were? I don't get there somehow. mfg

G6EJD commented 1 year ago

The ADC has a digital range of 0-4095 hence the ratio of reading/4096 this converts the readings to volts now it needs to be scaled (or if you like calibrated) based on the ADC input voltage divider which for this device is the 1.63