Hi,
A few months ago I purchased a couple of these for a project:
Sainsmart Due + TFT + Shield (eBay)
So now that 'life' has granted me a bit of spare time I am starting work on it...
After trawling the internet for tips and help I downloaded the UTFT Library, uncommented the CTE shield definition and entered the model as follows (which seemed to have worked for others):
UTFT myGLCD(ITDB43,25,26,27,28);
I then uploaded various of the example files to the Due and to my amazement, they all ran without any problems.
Impressed with my progress I then downloaded the UTouch Library and set about trying to calibrate the touch side of things...
... and here's where things got a bit less impressive.
I used the UTFT model details from above and set the pins as suggested by the instructions in the file, namely:
UTouch myTouch(6, 5, 4, 3, 2);
I then uploaded the calibration sketch to the Due.
When I touched the initial screen the crosshairs screen came up but would not respond to touches.
Resetting the Due resulted in no change. No touches were being registered (at least not apparently).
I then went for a hunt for a power adapter (thinking it may be underpowered from the USB).
Disconnecting from the USB and now powered from the wall socket (7.5v 1A) I was able to complete the calibration and the Due returned these values:
Displaytype : ITead Studio - ITDB02-4.3
Your CAL_X : 0x00000000UL
Your CAL_Y : 0x00000000UL
Your CAL_S : 0x801DF10FUL
However they appear to be incorrect (according to this link)
I have tried several times to repeat the calibration but each time I am unable to complete all the crosshairs. Sometimes I get no touches at all, sometimes I manage only to proceed past the initial screen, occasionally I get half way through the crosshairs.
I have tried this will all combinations of Displays / Shields / Dues from both sets with the same results each time.
I have had a very close look at all of the soldering on the shields and all appears to be good. Nothing messy or missing that I can see.
It seems that the longer I leave it unplugged the longer the touch functions work. Eventually it stops working each time.
I have learnt since my purchase that maybe this is not the best brand out there... but it's what I have and I would quite like to be able to use the touch functionality if possible.
Can anyone shed any light on what may be the root of the problem? (Human Error expected in one form or another)
Also can anyone recommend a better replacement option if all else fails?
Thanks.
Just to add - I'm using version 1.6.9 - in case that makes a difference.