ESP32-S3: Current sink problem on GPIO40, GPIO41, GPIO42

projix
Posts: 2
Joined: Thu Dec 15, 2022 1:31 pm

ESP32-S3: Current sink problem on GPIO40, GPIO41, GPIO42

Postby projix » Thu Dec 15, 2022 1:59 pm

Hello,

Is there any documentation regarding the current sink capability on these pins (IO40/41/42)?
I made a prototype board and I am switching some SSR's through 430 Ohm resistors, and the SSR's connected to these pins do not switch.
If I set the pins low, then I still have 2.9V on them.
No issue on other pins.
I have so far not found anything in the manual regarding this.

I am configuring all the pins like this:

Code: Select all

for (int i = 0; i < SSR_COUNT; i++) {
	gpio_set_direction(SSR[i], GPIO_MODE_OUTPUT);
	gpio_set_drive_capability(SSR[i], GPIO_DRIVE_CAP_MAX);
	gpio_set_level(SSR[i], 0);
}
Is there some thing else that needs to be done?

username
Posts: 507
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32-S3: Current sink problem on GPIO40, GPIO41, GPIO42

Postby username » Sun Dec 18, 2022 5:58 am

Not sure, but this solved some of my issues with GPIO's
Try a gpio_reset_pin(SSR); before you set the direction.

Who is online

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