ESP32 to 5V Interface

drsrikanthb
Posts: 3
Joined: Sat Apr 07, 2018 1:04 pm

ESP32 to 5V Interface

Postby drsrikanthb » Sat Apr 07, 2018 1:10 pm

I need to interface my ESP2 to other 5V CMOS inputs. I need to know if ESP IO pins are TTL compatible or CMOS compatible. I believe that if they are TTL level outputs my 5V logic would be able to correctly work without level conversion as I am using ESP for outputs only and not inputs. But if ESP outputs as CMOS logic I may need level conversion for outputs too

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: ESP32 to 5V Interface

Postby Vader_Mester » Fri Apr 13, 2018 6:21 am

drsrikanthb wrote:I need to interface my ESP2 to other 5V CMOS inputs. I need to know if ESP IO pins are TTL compatible or CMOS compatible. I believe that if they are TTL level outputs my 5V logic would be able to correctly work without level conversion as I am using ESP for outputs only and not inputs. But if ESP outputs as CMOS logic I may need level conversion for outputs too
Hello!

Looks like nobody have answered yet, so I decided to do so.

As far as I know, they are TTL compatible. I have a couple of 5V LEDs (similar to Neopixels), that are actually 5V controlled, but work completely fine with my ESP32 connected directly (ESP only outputs), without a level converter.
The maximum voltage you can get out of a pin is about 3.3V, but make sure you don't load them with lot of current. By average you can get 3.2V out most of the times.

There are level converters online that you can check, for very very veeeeery cheap.

The only thing before using the ESP in this way is to check the datasheet of the device you connect it to, and see what the input of the device is like and what are the startup conditions, so you make sure that 5V never reaches the ESP.

Vader[BEN]

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Who is online

Users browsing this forum: arfath, Baidu [Spider], Bing [Bot] and 67 guests