Differents boards, differents reads of ADC !?!?!?!?
Posted: Mon Apr 08, 2019 8:25 am
I made a simple code to analog read on GPIO32 and GPIO33.
Well, all is ok... BUT, when I change my ESP32 DEVKIT V1 with another one, values are different.
I changed again with another DEVKIT and other values....
Three ESP32 DEVKIT V1 with three different reads on GPIO32 and GPIO33 !!!
I checked the voltage on pin 3v3: one has 3,29, the other one has 3,28 and the last has 3,31.
This is normal for AMS1117 (min. 3,20 and max 3,99 V).
I tryed with USB power supply and with VIN power supply (8, 9 and 11.5 Volt): nothing change.
Can you tell me WHY ?
Well, all is ok... BUT, when I change my ESP32 DEVKIT V1 with another one, values are different.
I changed again with another DEVKIT and other values....
Three ESP32 DEVKIT V1 with three different reads on GPIO32 and GPIO33 !!!
I checked the voltage on pin 3v3: one has 3,29, the other one has 3,28 and the last has 3,31.
This is normal for AMS1117 (min. 3,20 and max 3,99 V).
I tryed with USB power supply and with VIN power supply (8, 9 and 11.5 Volt): nothing change.
Can you tell me WHY ?
Code: Select all
int x = 0;
int y = 0;
void setup() {
Serial.begin(115200);
adcAttachPin(32);
}
void loop() {
for (int i = 0; i <= 255; i++) {
x = analogRead(32);
y = y + x;
}
y = y / 255;
Serial.println(y);
delay (200);
}