[FIXED] Touch calibration problem.

Hi!
I think this is good topic for my problem. I have successesfuly calibrated my screen on TFT LCD Shield v1.0 screen is tft_320qvt, but I have some problems sometimes when I upload programme touch is not always calibrated in that case I have to upload it again an it works, sometime I have to uploade it for 5 times for touch to be calibrated, but my biggest problem is if I unplug arduino from power source and plug it in again there is no way that touch will be calibrated I have try this for many time with no luck, only reuploading program solve the problem. So do anyone know why this is happening? Beacuse when arduino wll be in use if electrical power go off, I will always have to reupload programme.
Sorry for my poor knowledge of englis.
frIXy, Slovenia

I had the same problem. Check out this:

http://forum.arduino.cc/index.php?topic=196133.0

You have to modify the file in libraries\utouch\hardware\avr\hw_avr.inc

Hi,

maybe you can solve this with adding some delay to HW_AVR.inc

word UTouch::touch_ReadData()
{
word data = 0;

for(byte count=0; count<12; count++)
{
data <<= 1;
sbi(P_CLK, B_CLK);
cbi(P_CLK, B_CLK);
delayMicroseconds(1); //// added to get more stable readings?
if (rbi(P_DOUT, B_DOUT))
data++;
}
return(data);
}

It works like a charm!