ESP32 - added pull-up to 3.3V but measuring 1.6V

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Sun Apr 10, 2022 7:27 pm

Hi,

I have 3.3V pullup on all ESP32 GPIO pins.
The pull-up resistor value is 1Mohm.
However, I am measuring only 1.6V on the MCU IO pin.
I measured using multimeter.

What could be the reason?

The pull-ups are added on the following IO lines and readin 1.6V on all IOs.
GPIO36
GPIO39
GPIO34
GPIO35
GPIO32
GPIO33
GPIO25
GPIO26
GPIO15

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby tommeyers » Sun Apr 10, 2022 9:49 pm

on the esp32 datasheet pg 28, it says "each digital gpio can be configd with pullups or pulldowns"
There are several kinds of GPIOs: digital only GPIOs, analog enabled GPIOs, capacitive touch enabled GPIOs, etc.
Analog enabled GPIOs can be configured as digital GPIOs. Capacitive touch enabled GPIOs can be configured
as digital GPIOs.
Each digital enabled GPIO can be configured to internal pull-up or pull-down, or set to high impedan


Did you configure the pull up/down in code?

It looks like you don't need pu resistors with this available in code.

1M?
IT Professional, Maker
Santiago, Dominican Republic

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Mon Apr 11, 2022 4:34 am

Hi @tommeyers,

Thanks for your response.
I enabled pull-up and still measuring the same 1.6V.
Code screedhot attached
Attachments
code.png
code.png (27.09 KiB) Viewed 6018 times

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Mon Apr 11, 2022 9:09 am

I removed 1Mohm pull-up resistor on one of the GPIO and read 0V.
As we enabled the pullup resistor, the pin voltage is expected to be 3.3V. I am not sure what would be an issue.

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Mon Apr 11, 2022 9:44 am

Even if i configure the pin as output and make it is HIGH or low, I am reading 1.6V only. Totally weird to me.


void setup() {
// put your setup code here, to run once:
Serial.begin (115200);
Serial.print("Serial Init Success");
pinMode(39, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:

Serial.println("Start");
delay (500);
digitalWrite(39, LOW);
}

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby ESP_Sprite » Tue Apr 12, 2022 7:50 am

Note that pins >34 do not have output or pullup/pulldown capability.

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Tue Apr 12, 2022 11:23 am

Hi ESP_Sprite,

I configured it as general input GPIO and i have an external pull-up resistor 1Mohm, but still measuring 1,6V only?
I added pullup to 3.3V.

Regards.
Velmurugan

velmurugan7kmvs
Posts: 15
Joined: Mon Jun 29, 2020 9:10 am

Re: ESP32 - added pull-up to 3.3V but measuring 1.6V

Postby velmurugan7kmvs » Wed Apr 20, 2022 5:08 pm

Hello All,

It was my multimeter loading the IO lines and reading it as 1.6V instead of 3.3V.
Thanks to all members who commented.

Who is online

Users browsing this forum: Bing [Bot] and 265 guests