After doing a thousand tests I can not calibrate the screen. I've gotten codes calibration and the display of the numbers there is no way that works. I've gotten your codes and go but nothing better. I got in touch with those of itead and i was doing some tests and nothing. Finally they sent me a new screen and I still have the same calibration problem.
I'm starting to be desperate as they are not where the problem is, if the shield or arduino. I put the tube with itead conversation to see if you can help me. This is the response I got:
Hi Piruman75,
Thank for your email.
Did you use UTFT and Utouch library? It has a demo code for calibration.
http://henningkarlsen.com/electronics/library.php?id=51
After you calibrate the screen, you can enter the data in the below link for verification.
http://henningkarlsen.com/electronics/t_cal_verify.php
If your data is not correct, you can try the below data.
Code: Select all
#define CAL_X 0x00430ED8UL
#define CAL_Y 0x002A0EECUL
#define CAL_S 0x000EF18FUL
If it still can't work, try the attachment test code.
I got the codes and go better than giving me to calibrate the screen but it is not calibrated. I made the small town on page enclosing me and the result was this:
Good Morning.
I used the library and UTFT uTouch. After calibrating the screen I went to the uTouch Calibration Data Verification and gave me these errors:
Displaytype : ITead Studio - ITDB02-3.2WD
Your CAL_X : 0x16F6D814UL
Your CAL_Y : 0x419D43FCUL
Your CAL_S : 0x000EF18FUL
Results:
• Orientation is correct...
• Display size parameters are correct...
• CAL_X data sequence is not correct...
• CAL_Y data sequence is not correct...
Suggestions:
• Your CAL_X data seems to have switched left and right. This should not happen on a supported display module. Are you sure you are using a display module on the list of supported modules (See the "UTouch_Supported_display_modules.pdf" document supplied with UTouch)? You can try running the calibration again but I do not think it will help.
• Your CAL_Y data seems to have switched top and bottom. This should not happen on a supported display module. Are you sure you are using a display module on the list of supported modules (See the "UTouch_Supported_display_modules.pdf" document supplied with UTouch)? You can try running the calibration again but I do not think it will help.
Your CAL_X : 0x16F6D814UL
Your CAL_Y : 0x419D43FCUL
Your CAL_S : 0x000EF18FUL
Results:
• Orientation is correct...
• Display size parameters are correct...
• CAL_X data sequence is not correct...
• CAL_Y data sequence is not correct...
Suggestions:
• Your CAL_X data seems to have switched left and right. This should not happen on a supported display module. Are you sure you are using a display module on the list of supported modules (See the "UTouch_Supported_display_modules.pdf" document supplied with UTouch)? You can try running the calibration again but I do not think it will help.
• Your CAL_Y data seems to have switched top and bottom. This should not happen on a supported display module. Are you sure you are using a display module on the list of supported modules (See the "UTouch_Supported_display_modules.pdf" document supplied with UTouch)? You can try running the calibration again but I do not think it will help.
I entered the following, I do not work:
Code: Select all
#define CAL_X 0x00430ED8UL
#define CAL_Y 0x002A0EECUL
#define CAL_S 0x000EF18FUL
After that they gave me a code to test it on my mega introdujese to audition and dashed lines on the screen and do him a video to see the results. I leave the video to what you may see. When making strokes clear that it is wrong, up is left, down is right, left is up, right is down.

After that I did modify the code and that they were to make a video with the result, I leave the answer and then the video with the result:
Hi Piruman75,
Maybe you can try to modify these lines in the 3_2WD_test_code.pde.
Code: Select all
void loop()
{
unsigned int i,j;
while(Touch_DataAvailable() == 1)
{
Touch_Read();
i = Touch_GetX();
j = Touch_GetY();
if(i>239) i = 239;
if(j>399) j = 399;
Serial.print(i);
Serial.print(" ");
Serial.println(j);
//SetXY(i,j,i,j); //old setting
SetXY(j,i,j,i);
Write_Data(0xFFFF);
}
}
Here I leave the result after modifying the code, down is up, up is down, right is left, left is right :

After they answered this:
Hi Piruman75,
No, it's just calibration problem.
Could you use the below code? Then open the serial monitor and tell me what is the coordinate of four corner on the screen.
Code: Select all
void loop()
{
unsigned int i,j;
while(Touch_DataAvailable() == 1)
{
Touch_Read();
i = Touch_GetX();
j = Touch_GetY();
if(i>239) i = 239;
if(j>399) j = 399;
Serial.print("x: ");
Serial.print(TP_X);
Serial.print(" ");
Serial.print("y: ");
Serial.println(TP_Y);
//SetXY(i,j,i,j); //old setting
SetXY(j,i,j,i);
Write_Data(0xFFFF);
}
}
And my answer was this:
Pressing the corner out many coordinates, the first pressing are these:
Top left: x: 208 y: 3796
Lower left corner: x: 192 y: 276
Top right corner: x: 3901 y: 3729
Lower right corner: x:3875 y: 282
After I returned to spend grinding code and that would make another video with the result that this was

Then they said they send me a new screen. I have received the screen, I calibrate again and it happens exactly the same with the new screen'm desperate since there is where the problem is.
Sorry about my English, because I have no idea