Go Down

Topic: ITDB02 TFT LCD module is not sensing touch (Read 6628 times) previous topic - next topic


Hello guys,
I've purchased Arduino Uno and explored it for quiet a while. Now recently I purchased a ITDB02-2.8 TFT LCD Module from ITED Studio and ITDB02 Arduino shield v2.0 to connect it with my Uno board. I downloaded ITDB02 library and tried all 3 examples. Everything is working fine except the touch function. It seems that it is not detecting touch at all. By the way, I do not have stylus pen so I'm using good old finger! I'm uploading the code I've used.
Code: [Select]
#include <ITDB02.h>

ITDB02 lcd(0,1,2,3,4,5,6,7,19,18,17,16);

void setup()

void loop()
   char ASCII[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
   char tp;
   unsigned int lx,ly;
   lcd.Dispshowstr(5,5,"Touch Test Demo");
     lcd.Dispshowchar(10,300,' ');
     lcd.Dispshowchar(60,300,' ');

All the texts are displayed fine and the x and y co-ordinate values are showing all zeroes even if I touch the screen anywhere!!! Is the code wrong or is there any kind of initialization issues I'm missing since I'm using the shield to connect it with my Uno? Thanks in advance.


Dec 09, 2012, 05:39 am Last Edit: Dec 09, 2012, 05:43 am by guix Reason: 1
Hello and welcome :),

Try with the UTFT and UTouch libraries:


You display model for UTFT will be ITDB28


Thanks for the prompt response.
But, I'm sorry to say that I tried the following example code provided with UTouch library with no success...  =(
No matter where I touch the screen it draws nothing, It supposed to be drawing pixels at the place it gets touched, right?
Also, touching with fingers should be no prob, right?
Code: [Select]
#include <UTFT.h>
#include <UTouch.h>

// Uncomment the next two lines for the Arduino 2009/UNO
UTFT        myGLCD(ITDB28,19,18,17,16);   // Remember to change the model parameter to suit your display module!
UTouch      myTouch(15,10,14,9,8);

// Uncomment the next two lines for the Arduino Mega
//UTFT        myGLCD(ITDB32S, 38,39,40,41);   // Remember to change the model parameter to suit your display module!
//UTouch      myTouch(6,5,4,3,2);

void setup()


void loop()
  long x, y;
  while (myTouch.dataAvailable() == true)
    x = myTouch.getX();
    y = myTouch.getY();
    if ((x!=-1) and (y!=-1))
      myGLCD.drawPixel (x, y);


I see your problem...sorry to tell you that, but you can't use the touch feature with the "ITDB02 Arduino shield v2.0" :

There is not enough pins on the Arduino UNO to enable both SD card reader and Touchscreen...

You should have purchased an Arduino Mega and the Mega shield :(


currently im having a about same setup on a personal project

i started with

The touch/screen worked fine and had run an SD read/test seeing the sd card fine
i was using something like

UTFT myGLCD(ITDB28,19,18,17,16); //UTFT(Model, RS, WR, CS, RST);
ITDB02_Touch myTouch(15,10,14,9,8); // ITDB02_Touch(TCLK, TCS, TDIN, TDOUT, IRQ);

then  moved due to lack of pins to further evolve my project to

Touch didnt work either for me in this setup.
only after a PORT redirection hack i managed to get touch+screen working but
this might have had an impact to my other pins (still investigating that)
the port involved putting the ITBD02 uno sheild on the mega
as my mega shield is either broken or im missing something to get it work
as supposed to be.


in this setup i initialized with
//UTFT myGLCD(ILI9325D_8,A5,A4,A3,A2);        //Screen initialization
//UTouch    myTouch(A1,8,A0,9,10);         //Touch initialization

due to the hack library.

Touch and screen work flawlessly  but having trouble putting
all my extra to continue (LDP8806 and skm53 gps)

Go Up