sainsmart 3.2 TFT display help !

I just got a Sainsmart 3.2 TFT display ( ref TFT_320QVT) and a TFT LCD mega shield V1.0 to connect to a MEGA 2560 board

the problem is that I cannot find any graphic library which works with this !

I tried UTFT, u8glib, itdb02 but nothing except a white screen

does anyone know how to declare and use this shield ?

Thank YOU

gchatre:
the problem is that I cannot find any graphic library which works with this !

I tried UTFT, u8glib, itdb02 but nothing except a white screen

That's a pretty broad ranging statement!

Specifically what did you try with those libraries?

I can confirm UTFT DOES work with your stated hardware :sunglasses:

Regards,

Graham

EDIT: If you mean the rubbish Sainsmart shield with the variable resistor....... Did you try turning that when you thought you had working code? :wink:

Hi Graham,

Yes it is the sainsmart shield with the variable resistor and on top of that I bought 2 of them :frowning:

here is my test code which compiles and runs on UNO with a different screen . I use arduino IDE 1.0.6
on mac .

on Mega I still do not see the rectangles ( only a black or white screen depending on the backlight voltage). I guess i tried all possible controllers !

Any idea ?

Regards,
Gilles

//=================================
// TFT 7
//=================================

#include <UTFT.h>

//UTFT TFTS(ITDB24,A5,A4,A3,A2); // for UNO

UTFT TFTS(ITDB32S,38,39,40,41); // for Mega

//UTFT TFTS(ITDB24,38,39,40,41);
//UTFT TFTS(ITDB24D,38,39,40,41);
//UTFT TFTS(ITDB28,38,39,40,41);
//UTFT TFTS(TFT01_24_8,38,39,40,41);
//UTFT TFTS(TFT01_24_16,38,39,40,41);
//UTFT TFTS(TFT01_28,38,39,40,41);
//UTFT TFTS(ILI9325C,38,39,40,41);
//UTFT TFTS(ILI9325D_8,38,39,40,41);
//UTFT TFTS(ILI9325D_16,38,39,40,41);
//UTFT TFTS(ILI9325D_16ALT,38,39,40,41);

extern uint8_t BigFont[];

void setup()
{
TFTS.InitLCD();
TFTS.setFont(BigFont);
TFTS.clrScr();

TFTS.drawRect( 0 , 0, 319, 239);
TFTS.drawRect( 10 , 10, 309, 229);
TFTS.drawRect( 20 , 20, 299, 219);
TFTS.drawRect( 30 , 30, 289, 209);
TFTS.drawRect( 40 , 40, 279, 199);
TFTS.drawRect( 50 , 50, 269, 189);
TFTS.drawRect( 60 , 60, 259, 179);
TFTS.drawRect( 70 , 70, 249, 169);
TFTS.drawRect( 80 , 80, 239, 159);
TFTS.drawRect( 90 , 90, 229, 149);
TFTS.drawRect( 100 , 100, 219, 139);
TFTS.drawRect( 110 , 110, 209, 129);
TFTS.print( "TFT7" , CENTER, 112);
}

void loop()
{
}

TFT7.ino (1.56 KB)

//==========================================
//           TFT 7
//==========================================
#include <UTFT.h>
UTFT TFTS(ITDB32S,38,39,40,41);  // for Mega

extern uint8_t BigFont[];

void setup() 
{
  TFTS.InitLCD();		             
  TFTS.setFont(BigFont);	
  TFTS.clrScr();			                

  TFTS.drawRect(   0 ,   0, 319, 239);
  TFTS.drawRect(  10 ,  10, 309, 229);
  TFTS.drawRect(  20 ,  20, 299, 219);
  TFTS.drawRect(  30 ,  30, 289, 209);
  TFTS.drawRect(  40 ,  40, 279, 199);
  TFTS.drawRect(  50 ,  50, 269, 189);
  TFTS.drawRect(  60 ,  60, 259, 179);
  TFTS.drawRect(  70 ,  70, 249, 169);
  TFTS.drawRect(  80 ,  80, 239, 159);
  TFTS.drawRect(  90 ,  90, 229, 149);
  TFTS.drawRect( 100 , 100, 219, 139);
  TFTS.drawRect( 110 , 110, 209, 129);
  TFTS.print( "TFT7" , CENTER, 112);	
}

void loop()  
{
}

Compiled and run on IDE V1.0.6 for windows on Sainsmart TFT Shield V1.0 and TFT_320QVT

My pot is turned clockwise as far as possible....

The correct display type is ITDB32S..

I can't really advise much else........... try IDE V1.5.8? It cures some problems, but I know nothing of the MAC....

Regards,

Graham

Edit: UTFT V2.78

OK I think that the only explanation is that my screen are bad.... I guess that it what is called the "learning curve" : do not ever buy sainsmart f.... displays

Anyway thanks a lot for spending your time helping me and merry Christmas
GC

At the risk of suggesting the obvious, have you tried both of your shields?

Unfortunately you are not the first, and you definitely wont be the last to buy Sainsmart stuff, have more trouble than you should when you are just starting out, come here, and see all the lovely compliments aimed towards Sainsmart....

My very first setup was Sainsmart MEGA2560, Sainsmart MEGA TFT Shield, Sainsmart 3.2" TFT, bought at a bargain price. THEN discovered this forum.... :slightly_frowning_face: Then bought Coldtears Shield, Coldtears CPLD display, Arduino DUE ;D (non of it Sainsmart! :wink: )

If your display does not work on either of your shields, then I can only agree with your guess that the display is dead, but if you have not had it very long.......... Send it back for refund/replacement.....

Happy New Year ;D

Best Wishes,

Graham