Looking for solutions to let ILI9341 capacitive touch function work.

lladam
Posts: 44
Joined: Tue Jul 20, 2021 12:14 am

Looking for solutions to let ILI9341 capacitive touch function work.

Postby lladam » Tue Jun 20, 2023 2:35 pm

Hi all.
I tested Arduino + ILI9341, and ESP32 + ILI9341, failed to active its touch function, what can be?
used TFT_eSPI's examples.
few pieces all work well to show, but touching. tested with TFT miso connected and disconnected both rotation(0) and rotation(1).
Thanks for help.
Adam

nochkin
Posts: 8
Joined: Tue Jun 20, 2023 5:04 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby nochkin » Tue Jun 20, 2023 6:14 pm

ILI9341 is not a touch controller, it's just the model of the actual screen controller.
You need to find the touch controller model and use the driver designed for it. If there is not such driver, you will need to create your own based on the datasheet available for that chip.
The touch controller is usually connected using I2C, not SPI.

lladam
Posts: 44
Joined: Tue Jul 20, 2021 12:14 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby lladam » Wed Jun 21, 2023 1:41 am

Thanks.
I should indicated that used XPT2048 controller.
which shown touch fine in many projects online, but mine just can't work on touching.
purchased from:
https://de.aliexpress.com/item/33015586 ... pt=glo2deu

nochkin
Posts: 8
Joined: Tue Jun 20, 2023 5:04 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby nochkin » Wed Jun 21, 2023 3:27 am

That's XPT2046, not XPT2048. It's on SPI bus.
I would just get the touch to work first and make sure it responds without using the screen at all.
And also check how it's actually wired as it may not use the default pins on your ESP.

lladam
Posts: 44
Joined: Tue Jul 20, 2021 12:14 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby lladam » Wed Jun 21, 2023 9:26 pm

Thank you nochkin.
Last edited by lladam on Sat Jun 24, 2023 8:33 pm, edited 1 time in total.

nochkin
Posts: 8
Joined: Tue Jun 20, 2023 5:04 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby nochkin » Thu Jun 22, 2023 7:57 pm

You need to test your touch controller, not SPIFFS. The SPIFFS is a filesystem which does not do anything with the touch controller.
Just create a simple code which uses SPI and communicates with your XPT2046 using some simple commands to make sure XPT responds according to the datasheet.
Make sure you pick the correct MISO/MOSI/CLK/CS pins.

lladam
Posts: 44
Joined: Tue Jul 20, 2021 12:14 am

Re: Looking for solutions to let ILI9341 capacitive touch function work.

Postby lladam » Fri Jun 23, 2023 1:28 am

Thanks.

Who is online

Users browsing this forum: No registered users and 109 guests