Analog read and TFT display ILI9488 on ESP32

Hi,

I've got an analog joystick witch works with a simple analog read sketch. When i connect this display the values of the analog read are always 4096 and on the pin of the esp I always mesure 3.3V :frowning:

After reading I foud that there schould be a 5v-3.3v converter between the display and esp32. At this point, i'm lost and seeking some help.

Is it correct to understand that I just place a module with a TXS0108E between the lines of the display


Connect the
- GND - GND
- VA to 3.3V
- VB to 5V
- OE - ???

And the lines of the display on this module?

#define TFT_MISO 12
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS   15  // Chip select control pin
#define TFT_DC    2  // Data Command control pin
#define TFT_RST   4  // Reset pin (could connect to RST pin)
#define TOUCH_CS 4     // Chip select pin (T_CS) of touch screen

I'm not an expert on ESP32, but I am aware that some analog inputs are not available in certain configurations. Maybe, in order to use the display, it's library is configuring the ESP32 in a way that makes the analog pins you chose unavailable. Try using other analog inputs.

Reading what? This sounds like a misconception.

Suggest you post a link to the specs of the display, and to the specs of the model of ESP32 you are using, and a schematic to show how you are wiring them together.

The ESP32 is a 3.3V board.

The ILI9488 display is a 3.3V board.

I await a link that demonstrates a need for a 5V-3.3V converter between two 3.3V devices.

OMG...
Where was my head while connecting the tft to the 5V..
I put it on 3.3V like it schould and the joystick value's are back correct. And the display... It is still working after a week on 5V.

Glad this is solved after a few day's of searching and trying...

Thank you all to point out my fault :slight_smile: