My problem is when I calibrate my screen its touches fine then the calibration data comes back with 0x00000000 on the x&y lines and any other sketch I try run it on won't even pick it up the screen displays fine bit no touch anyone had a similar problem ? I'm using the libs utouch utft . this is in a mega with Tft shield
What pins are you setting in the UTouch constructor?
They should be these
UTouch myTouch( 6, 5, 4, 3, 2);
If these still don't work then you might need to check your shield's pin layout to find which one you need to use.
HazardsMind:
What pins are you setting in the UTouch constructor?They should be these
If these still don't work then you might need to check your shield's pin layout to find which one you need to use.
I have it set on UTouch myTouch(6,5,4,3,2); and i i can touch the calibiration crosses fine then when i try any other sketch it doesnt want to know its a TFT_320QVT screen
So ive tried different libs and different IDE's different pin configs more calibarations and still no luck apart from the calibiration working then try any other sketch nothing happens
What IDE have you tried? If you haven't already, try 1.5.7.
If that still doesn't work then can you post a link to your display?
The constructor for screen type TFT_320QVT is ITDB32S, but I suspect you already knew that. As HazardsMind has already suggested trying IDE v1.5.7, I will be interested to hear your feedback.
I too have had issues with a TFT_320QVT display and touch functions when used in combination with a MEGA, however the only reliable solution I found was to go further back than HazardsMind suggested, and would recommend you try IDE v1.0.6. I contacted Henning about this, and didn't get very far as the person I was trying to help(and I still have one too) was using the V1.1 Sainshit MEGA TFT/SD shield.
The bizarre symptoms of this particular combination of hardware was that the calibration routine would work, but then was completely hit and miss with the touch, for example you could upload a sketch, it would work, you open the serial monitor, it would not work, you would close the serial monitor, and it would not work, you would upload the sketch again and it would work, you would reset the Arduino and it would not work, you reset, not work, reset it would work, reset it would not work etc etc.... Switch to IDE v1.0.6, reset as often as you like with or without serial monitor open and no problems with touch features.......
I never did get the to bottom of the problem, just happy to have a workaround, interesting point to note, the same screen on a CTE due shield running on a DUE, never has problems with touch functions so it is a quirk of the particular hardware setup and the IDE version.
Regards,
Graham
Thanks for the feedback on the issue ive tried 1.0.6 with no luck the same with 1.5.7 and a few other releases
Heres the link for the screen http://www.aliexpress.com/item/Free-shipping-1-pair-2pcs-3-2-TFT-LCD-Touch-TFT-3-2-inch-Shield-for/32263429200.html ( Im pretty sure its not a saincrap one )
Ok well now you need to find the pin diagram for your display because I'm pretty sure the default pins in the UTouch library are not the ones you seem to need.
That or your touchscreen is defective
The shield in his link looks much like an elecfreaks clone, I am not familiar with the elecfreaks shield, I agree we could do with a picture/schematic of the shield, the display itself is pretty standard.
Regards,
Graham
This might shed some light on the subject I think it might be the same its pdfs in a rar
Besides the fact I have no interest or understanding of Chinese, and this is an English forum....
Good luck with your endeavours .....
Regards,
Graham
Hi, I have same problem...
I use 2.4" TFT 240x320 V2.1 display...
Calibration work but when finished calibration program take me 0x00000000 on X,Y....
I use
UTFT myGLCD(ITDB24,59,58,57,56);
UTouch myTouch(15,10,14,9,8);
myTouch.dataAvailable() == true work fine....
myTouch.read();
x=myTouch.getX();
y=myTouch.getY(); don't work... or take me -1,-1 or 0,0 on X,Y ....
I don't know where is problem...I think that my pins on touch is bad....
Can some body help me ?