Page 1 of 1

Looking for solutions to let ILI9341 capacitive touch function work.

Posted: Tue Jun 20, 2023 2:35 pm
by lladam
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

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

Posted: Tue Jun 20, 2023 6:14 pm
by nochkin
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.

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

Posted: Wed Jun 21, 2023 1:41 am
by lladam
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

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

Posted: Wed Jun 21, 2023 3:27 am
by nochkin
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.

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

Posted: Wed Jun 21, 2023 9:26 pm
by lladam
Thank you nochkin.

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

Posted: Thu Jun 22, 2023 7:57 pm
by nochkin
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.

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

Posted: Fri Jun 23, 2023 1:28 am
by lladam
Thanks.