I did a voltmeter with the Esp32, but 1.4 volts is missing measurement, I know how to fix it.
1k 10k.
can you help me
#define analogInput 36
float vout = 0.0;
float vin = 0.0;
float value = 0;
float R1 = 10000;
float R2 = 1000;
void setup() {
Serial.begin(115200);
pinMode(analogInput, INPUT);
}
void loop() {
value = analogRead(analogInput);
vout = (value * 3.3) / 4096.0;
vin = vout / (R2 / (R1 + R2));
Serial.println(vin);
delay(500);
}