logo elektroda
logo elektroda
X
logo elektroda

Corrections to ESP32 WROOM 32D pinout: RTC 21, 22, Battery, TFT Touch

domus12 1806 30
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20086468
    domus12
    Level 4  
    Welcome.

    Could someone take a look and see what needs to be corrected to make it work?
    I know the rtc 21, 22. battery and tft touch pins for analog input.
    Greetings and thanks in advance
    Corrections to ESP32 WROOM 32D pinout: RTC 21, 22, Battery, TFT Touch .
  • ADVERTISEMENT
  • #2 20086680
    khoam
    Level 42  
    To start with, I suggest connecting a 10k resistor to the EN pin and on the other side to the 3V3 supply. Such a minimalist circuit looks like the image below.

    Corrections to ESP32 WROOM 32D pinout: RTC 21, 22, Battery, TFT Touch .
  • ADVERTISEMENT
  • #3 20086847
    domus12
    Level 4  
    To what end?
    What does it change?
  • #4 20086864
    khoam
    Level 42  
    A low state on EN shuts down the 'current' in the ESP32. On the other hand, if this pin "hangs" in the air, random and frequent reboots are performed. It is therefore necessary to force a high state on it.
  • #6 20086982
    khoam
    Level 42  
    domus12 wrote:
    Can you help me based on the documentation to match this pin?
    .
    Match to what? To which peripherals?
  • #7 20087053
    domus12
    Level 4  
    Just as if you could tell me where what should go:

    a) RTC would work with RTClib.h on wire SDA/SCL
    b) tx,rx to be the other way around yes?
    c) TFT 6 pins
    d) TFT touch 4 pins x+,x-,y+,y-
    e) pins from diode
    f) battery
    g) photorez.
  • #8 20087118
    inot
    Level 37  
    After all, all connections are marked on the diagram in the first post.
    How you connect depends on the components used.
    Among other things, you have not specified which display you intend to use.
  • #9 20087137
    domus12
    Level 4  
    RTC sda/scl
    TFT ili9341 clk
    do you need anything else?
  • #10 20087618
    inot
    Level 37  
    The ILI9341 is a controller for displays and not the display itself. There are dozens of different displays using this driver.
  • #12 20088278
    inot
    Level 37  
    The link provided above does not work.
  • #13 20088280
    khoam
    Level 42  
    It works and points to a display with SPI interface.

    Corrections to ESP32 WROOM 32D pinout: RTC 21, 22, Battery, TFT Touch .
  • ADVERTISEMENT
  • #16 20088413
    inot
    Level 37  
    If we know the leads of the display, I don't understand what the problem is
    author of the topic.:?:
  • #17 20088422
    domus12
    Level 4  
    I am just not sure. And the project is important to me. Could you check if this type of connection would be correct:

    Tft scl -> sck
    Tft sdo -> sdo
    Tft ssi -> sdi
    Tft reset -> not connected
    Tft dc -> gpio 2
    Tdt cs -> gpio 15
    Rtc sda -> gpio 21
    Rtc scl -> gpio 22
    Photoresistor -> gpio 4
    Battery -> gpio 32
    X -> gpio 25
    X- -> gpio 26
    Y -> gpio 27
    Y- -> gpio 33
    En -> capacitor AND to resistor 10k
    Diode -> gpio 17,18,19 (diode at 5V is there, won't this burn esp32?)

    I am not an electronics engineer. The board is being designed by someone else who has a problem checking the pins. I would be very grateful if someone could give advice to check this quickly.
  • #18 20088424
    inot
    Level 37  
    Where did you get the diagram from post no.1 ?
  • #19 20088428
    domus12
    Level 4  
    This is what the wise ones designed (the contractor). But it seems wrong to me, I prefer to make sure.
  • #20 20088441
    inot
    Level 37  
    domus12 wrote:
    this is what the wise ones designed (the contractor).

    And who is the principal ?
    I don't think this is a complete scheme.
  • #21 20088442
    khoam
    Level 42  
    domus12 wrote:
    the diode at 5V is there, won't this burn up the esp32?
    .
    With series resistors on the order of 100Ω this is quite likely. I don't understand why these diodes are powered from 5V, with such a high current.
  • #22 20088446
    domus12
    Level 4  
    khoam wrote:
    domus12 wrote:
    the diode at 5V is there, won't that burn up the esp32?
    .
    With series resistors on the order of 100Ω this is quite likely. I don't understand why these diodes are powered from 5V, with such a high current.


    Well here's the problem. How do I calculate it so that the resistors are selected so that the same power at 3.3V ?

    Added after 2 [minutes]:

    inot wrote:
    domus12 wrote:
    this is what the wise designed (the contractor).

    And who is the principal ?
    This is probably not a complete scheme.


    I have written a priv as to how poor the situation is. I would really appreciate your help
  • #23 20088451
    inot
    Level 37  
    5V is not the problem, just the resistors incorrectly selected.
  • #24 20088454
    khoam
    Level 42  
    inot wrote:
    5V is not the problem,
    .
    I would not make this type of statement. The pins on the ESP32 are not 5V tolerant contrary to the rumours circulated by various jutubers.
  • #25 20088461
    domus12
    Level 4  
    inot wrote:
    5V is not the problem, just the resistors incorrectly sized.


    This is how it was tested on the nano with no problems it worked. And this is also the light output of the diode needed. It can only be stronger, weaker certainly not.

    Added after 46 [seconds]: .

    khoam wrote:
    inot wrote:
    5V is not the problem,
    .
    I would not make this type of statement. The pins on the ESP32 are not 5V tolerant contrary to the rumours spread by various jutubers.


    and with these pins what I have given the rest is correct?
  • #26 20088465
    inot
    Level 37  
    khoam wrote:
    I would not make such statements. The pins on the ESP32 are not 5V
    .
    5V even advisable,because the blue and green LEDs would not light up.
    5V is not an issue (unless you short-circuit the diodes), as the voltage drop on the red diode is 2.2V, on the green and blue 3.2V.
    I have not found specific data for this diode, but it is probably a 20 mA LED and therefore these resistors do not fit (23-28 mA current).

    Tft reset -> Pin 17 as on the schematic.

    Battery -> gpio 32 on the schematic GPIO 21
    Used for voltage measurement , but GPIO21 does not work as ADC.

    X+ -> gpio 25 in the schematic of gpio 32
    X- -> gpio 26
    Y+ -> gpio 27 on gpio 33 schematic
    Y- -> gpio 33 in gpio 27 schematic

    In the full schematic, the display backlight will not work either (Cathode and anode connected to each other):
  • #27 20088717
    khoam
    Level 42  
    inot wrote:
    5V is even advisable, because the blue and green LEDs would not light up.
    .
    RGB LEDs of slightly higher power are not controlled directly from the ESP outputs. MOSFET transistors are used for this. Admittedly, the maximum load capacity of a single GPIO in the ESP32 is 40 mA, but this is no reason to make a heater out of the ESP.
  • #28 20088741
    domus12
    Level 4  
    These are the parameters I found for the diode:
    2V-2.2V(R) 3V-3.2V (G/B) Volt 20 mA

    Added after 1 [minute]:

    inot wrote:
    khoam wrote:
    I would not make such statements. The pins on the ESP32 are not 5V
    .
    5V is not even advisable, because the blue and green LEDs would not light up.
    5V is not an issue (unless you short-circuit the diodes), as the voltage drop on the red one is 2.2V, on the green and blue 3.2V.
    I have not found specific data for this diode, but it is probably a 20 mA LED and therefore these resistors do not fit (23-28 mA current).

    Tft reset -> Pin 17 as on the schematic.

    Battery -> gpio 32 as on the schematic GPIO 21
    Used for voltage measurement, but GPIO21 does not work as ADC.

    X -> gpio 25 in the schematic of gpio 32
    X- -> gpio 26
    Y -> gpio 27 on gpio 33 schematic
    Y- -> gpio 33 in gpio 27 schematic

    In the full schematic, the display backlight will not work either (Cathode and anode connected to each other):


    I'll get an editable version of this schematic from them and send it to you. It is a drama that things like this come out at this stage.
  • ADVERTISEMENT
  • #29 20088749
    inot
    Level 37  
    khoam wrote:
    RGB diodes of slightly higher power are not controlled directly from the ESP outputs. MOSFET transistors are used for this. Admittedly, the maximum load capacity of a single GPIO in the ESP32 is 40 mA, but that's no reason to make a heater out of the ESP.

    Correct, but unfortunately this is how the circuit was designed.
  • #30 20088792
    domus12
    Level 4  
    I sent you a message with the schematic for Altium. If you could please correct it so that I can upload the code.

    Added after 5 [hours] 25 [minutes]: .

    I just checked this diode on ESP32 Wroom DA with 5V on the diode from the Nano and nothing heats up. So it's giving the advice.

Topic summary

The discussion revolves around correcting the pinout for the ESP32 WROOM 32D, specifically addressing connections for RTC pins (21, 22), battery, and TFT touch display. Users suggest connecting a 10k resistor to the EN pin to prevent random reboots. The conversation includes inquiries about the correct pin assignments for various components, including RTC (using RTClib.h), TFT display (ILI9341), and touch inputs. There are concerns about the power supply for LEDs and the necessity of using resistors to ensure compatibility with the ESP32's GPIO limits. The importance of verifying the schematic design and ensuring proper connections for functionality is emphasized throughout the discussion.
Summary generated by the language model.
ADVERTISEMENT