ADC1 GPIO 32/32 and ADC2 GPIO 13/15 difference?

jsyzthz
Posts: 1
Joined: Sat Oct 10, 2020 7:00 am

ADC1 GPIO 32/32 and ADC2 GPIO 13/15 difference?

Postby jsyzthz » Sat Oct 10, 2020 7:50 am

we desigin a dev board using ESP32 WROOM-32D, we found the same input sensor(AD) 32& 33 value are same, 13&15 are same . 32/33 and 13/15 are difference.
same arduino code:

Code: Select all

...
void setup(){
  ...
  u8g2.drawUTF8(1, 1, String(analogRead(13)).c_str());
  u8g2.drawUTF8(1, 15, String(analogRead(15)).c_str());
  u8g2.drawUTF8(1, 30, String(analogRead(32)).c_str());
  u8g2.drawUTF8(1, 45, String(analogRead(33)).c_str());
  ...
}

void loop(){
//todo
}
the wifi not enable. just turn on bluetooth.
who know what the difference between ADC1 AND ANDC2 when read the AD value ? thx!

lbernstone
Posts: 828
Joined: Mon Jul 22, 2019 3:20 pm

Re: ADC1 GPIO 32/32 and ADC2 GPIO 13/15 difference?

Postby lbernstone » Sat Oct 10, 2020 6:39 pm

ADC2 is not available while the radio is in use.
When not in use, the two ADC channels give reasonably similar response, but should be calibrated separately if you want really accurate results. https://docs.espressif.com/projects/esp ... alibration

Who is online

Users browsing this forum: No registered users and 68 guests