( _Franko_ | 2021. 03. 08., h – 16:51 )

Bármelyik tápfeszültsége az ESP32-nek legfeljebb 3,6 V lehet. Bármelyik I/O lábán a feszültség legfeljebb 0,3 V-tal lehet magasabb a tápfeszültségnél, így ez messze van az 5 V-tól. Az én olvasatomban maximum 3,9 V-ot lehet kötni az I/O lábakra, de azt is csak akkor, ha 3,6 V-tal megy a táplálás.

Igen, tudom, hogy mi van a dokumentációban, az a hivatalos, régebben benne volt, hogy 5 volt toleráns. Viszont ezeregy példát találni arra, hogy 5v tolerant, többek között én is évek óta így használok több ESP eszközt is, 5 voltos perifériákkal, valahol az Expressif CTO/CEO amúgy kis is mondta, hogy minden GPIO védett és 5 volt toleráns, de nem írják bele a doksiba, mert nem akarnak belőle pereket, ha mégsem.

So Is ESP8266 5V Tolerant?
Well, this is a difficult question to answer because it means different things to different people, and it can be confusing for those who are not into circuits. So what could the possible interpretations of the question be?

  1. the chip runs off only 5V supply
  2. the chip runs off a combination fo 5V and 3.3V supplies; 5V for those supplies connected to IOs that connect 5V interfaces
  3. the chip runs off only 3.3V supply, but the IO connects to 5V interface.
    For ESP8266, case 3 is what we mean when we say that the GPIO pads are 5V tolerant.
    [I was utterly mortified when users read "5V tolerant output" in an early version of our specifications to mean that the chip's power supply should connect to 5V. Well, it wasn't designed to be powered from 5V, although some users have reported success, which makes the problem somewhat worse. Thereafter, we banned any mentions of 5V.]
    (for those who still aren't clear.) So what is the point of the pad being 5V tolerant if the chip is to be powered from 3.3V? Yes, there is a way to do voltage translation by setting the ESP8266 pads to the open drain mode, and adding a pull up resistor connected to 5V supply. voila. The input and output can now interface with 5V systems.
    And then, some sharp eye engineers noticed that the chip also supports CMOS output asked if it would sink current when a 5V signal connects to the pad. What these engineers are asking is if the diode between the PMOS drain and Nwell would be forward biased sink current from the 5V supply to the 3.3V supply.
    For ESP8266, it would not in the open drain mode: the diodes are disconnected in the open drain mode.
    ∆! So, do not use CMOS interfaces with 5V signals in ESP8266. Please use the open drain configuration.
    [If you are still confused, beep me right here, right now!]

Ha nem űrtechnika, amit építesz és nincs jogi következménye annak, hogy megáll (de ugye ekkor miért használnál ESP-ket), akkor nyugodtan engedj rá 5 voltot, menni fog. Sokat lehet spórolni a dologgal, hogy nem kell szintillesztő, se ellenállásosztó.

A 2013-as doksiban amúgy benne volt még (utána szedték ki):

All digital IO pins are protected from over-voltage with a snap-back circuit connected between the pad and ground. The snap back voltage is typically about 6V, and the holding voltage is 5.8V. This provides protection from over-voltages and ESD. The output devices are also protected from reversed voltages with diodes.

Még megvan a verzió nálam, amiben ez volt: https://drive.google.com/file/d/1MXqpKVWYBwvfnmgW4bX-CSoFMbSWW5_d/view

Csodálkoznék, ha kivették volna ezeket a védelmeket. És a gyakorlat azt mutatja, hogy nem vették ki, ott vannak.