ESP32 - IO33 - levels - 2V

aaantonkaaa
Posts: 9
Joined: Tue Nov 17, 2020 12:19 am

ESP32 - IO33 - levels - 2V

Postby aaantonkaaa » Tue Mar 12, 2024 3:59 pm

Hello all

can someone help me to understand what is happening during the ESP32 start?
lets talk about the IO33

i wrote a simple code to set IO33 to output pin and set high level after start. but on the osciloscope I can see this: picture in attachment

I do not understand why the pin goes to 2V for 8ms and then is set to 3.3V

can anyone help me to understand what is happening here ?
or am I doing something in wrong way ?


code sinippet
void app_main(void)
{

ESP_LOGI(TAG, "startujem");
///////
gpio_reset_pin(33);
gpio_set_direction(33, GPIO_MODE_OUTPUT);
gpio_set_level(33, 1);

ESP_LOGI(TAG, "nastavena uroven 33 ");


BR
Roman
Attachments
1710255478660.jpg
1710255478660.jpg (3.74 MiB) Viewed 729 times

phatpaul
Posts: 109
Joined: Fri Aug 24, 2018 1:14 pm

Re: ESP32 - IO33 - levels - 2V

Postby phatpaul » Fri Mar 15, 2024 1:44 pm

My guess is that the pin is initialized to Hi-Z (floating) at power-on-reset. Then it takes some time for the CPU to start running your code and set the level high.
You could try adding an external pull-up resistor to 3.3V so it goes high when the pin is hi-Z / floating.

User avatar
mbratch
Posts: 299
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP32 - IO33 - levels - 2V

Postby mbratch » Tue Mar 19, 2024 3:23 pm

I have seen this behavior as well. I think phatpaul's explanation and suggested method of handling the pin are correct. I've used the pull-up successfully.

Who is online

Users browsing this forum: Baidu [Spider] and 149 guests