How do I connect ILI9341 Touchscreen to my ESP32
How do I connect ILI9341 Touchscreen to my ESP32
Hello, I am having trouble connecting my ILI9341 Touchscreen to my ESP32-S3-DEVKITC-1U-N8R8. Here is the pin layout of my ESP32: https://docs.espressif.com/projects/esp ... t_v1.1.jpg. As well as the pins on the touchscreen: https://prnt.sc/4WQbVFdnkEtr. The tutorials I’ve found online use different pin layouts than my board, so I’m unsure how to connect the display correctly. Could someone please help me figure out the correct wiring? Thanks a lot in advance for the help.
-
lbernstone
- Posts: 1133
- Joined: Mon Jul 22, 2019 3:20 pm
Re: How do I connect ILI9341 Touchscreen to my ESP32
The ESP32-S3 is very flexible about what pins you use for a screen like this. Stay away from the pins in the 40s, and you should be fine. Check the pinmap to make sure your selections aren't in use by other hardware.
Here's an example using Arduino and the TFT_eSPI library and pins that just happened to be close to the connections. Note that the touch portion (the T_ pins) have nothing to do with output. Touch should be able to use the same SPI pins with a separate CS pin. T_DIN = MOSI, T_OUT = MISO, T_CLK = SCLK.
Here's an example using Arduino and the TFT_eSPI library and pins that just happened to be close to the connections. Note that the touch portion (the T_ pins) have nothing to do with output. Touch should be able to use the same SPI pins with a separate CS pin. T_DIN = MOSI, T_OUT = MISO, T_CLK = SCLK.
Re: How do I connect ILI9341 Touchscreen to my ESP32
Does this look good?The ESP32-S3 is very flexible about what pins you use for a screen like this. Stay away from the pins in the 40s, and you should be fine. Check the pinmap to make sure your selections aren't in use by other hardware.
Here's an example using Arduino and the TFT_eSPI library and pins that just happened to be close to the connections. Note that the touch portion (the T_ pins) have nothing to do with output. Touch should be able to use the same SPI pins with a separate CS pin. T_DIN = MOSI, T_OUT = MISO, T_CLK = SCLK.
T_IRQ
T_OUT GPIO13
T_DIN GPIO11
T_CS GPIO14
T_CLK GPI012
SDO(MISO) GPIO13
LED 3V3
SCK GPIO12
SDI(MOSI) GPIO11
D/C GPIO7
RESET GPIO6
CS GPIO10
GND GND
VCC 5V
Who is online
Users browsing this forum: Bytespider, Qwantbot and 5 guests