Hi all,
I'm using a LCD TFT display for an application. It is the quite famous TFT_320QVT, a 3.2" TFT LCD display based on SSD1289 and XPT2046 controllers.
I mount it over an Arduino MEGA 2560 using an adaptor shield (to adjust the voltage level to 3.3 V), the LCD Mega shield v2.2.
SW side i use the UTFT libraries, UTouch and its the example code, UTouch_ButtonTest.
The display work very well but the touch sometimes does not start to work. e.g. if the touch work at start, then it continue to work up to shut down. Likewise, if the touch does not work at start, then it does not begin to work during runtime (I need to power off and on the device but sometimes it still does not work for some minutes). I don't know when it work or doesn't work! It seems random.
Arduino is powered by an external 7.1 V (12 V 1 A regulated to 7.1 V by LM317) and internal regulated +5 V power line is exactly 4.96 V thus it's a good power supply: ripple is <80mV and Vdc is stable.
I measured SPI signal of touch controller (D_CLK, and D_OUT that's probably MISO of XPT2046) with my oscilloscope and I can see some good signals when touch work and I cannot see anything (0V line) when touch does not work.
I try a different Arduino MEGA 2560 (a clone) and a different LCD module but the problem still alive!
I'm quite sure the SW is ok because I use the example's code anyhow the problem still exist with my application custom code.
What is the source of the problem? HW, SW?
Any ideas ?