Loading...
Pages: [1]   Go Down
Author Topic: SainSmart Mega2560+3.2" TFT LCD Shield+Touch Screen  (Read 4832 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I recently purchased this LCD/Touch screen from Ebay (http://www.ebay.co.uk/itm/280931953825?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649) but am having trouble setting it up.  When everything is connected and I upload the demo ITDB02_Graph16 all I get is a blank white screen.

My question is this: has anybody else bought and successfully used one of these displays?  I'm trying to work out if the sample code they provided is wrong or if the device itself is faulty.  I've tried contacting the seller but am still awaiting a response smiley-sad

Any help would be appreciated.

Thanks!
Logged

UK
Offline Offline
Full Member
***
Karma: 0
Posts: 128
mini mini mini
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Use this lib - http://henningkarlsen.com/electronics/library.php?id=52
Using this - UTFT myGLCD(ITDB32S,38,39,40,41);

And you should get something, sainsmart are completely useless, cheap gear, but you have to put the effort in to get em working.
Logged

France
Offline Offline
God Member
*****
Karma: 19
Posts: 615
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What beige said is correct.

And to add to that, for the touchscreen use this library:
http://www.henningkarlsen.com/electronics/library.php?id=35
with code:
Code:
ITDB02_Touch  myTouch(6,5,4,3,2);

And for the SD slot, you need both these two libraries:
http://www.henningkarlsen.com/electronics/library.php?id=37
http://www.henningkarlsen.com/electronics/library.php?id=53

But I can't say more about this, I haven't tried the SD slot yet..

Good luck smiley

sainsmart are completely useless, cheap gear, but you have to put the effort in to get em working.
I have posted few questions on their forum more than a month ago...still no reply! smiley-sad
« Last Edit: October 23, 2012, 06:32:00 am by guix » Logged

Corvallis, Oregon, USA
Offline Offline
Newbie
*
Karma: 1
Posts: 2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The drivers and sample code they link is for Arduino v 0023. 
I just started playing with mine tonight and finally have all the samples working, but I wanted to use the current build.
If you are using V1.0.1 then you might like my newbie notes from today:

Running the SainSmart 3.2" TFT 320*240 display and touch screen on a Mega2560 and Arduino 1.0.1. Howto by a Arduino Newbie.

I download the latest UTFT library from http://www.henningkarlsen.com/electronics/ (this was V1.3 as best I can tell) and put the lower level UTFT folder in arduino/libraries so the .h files are just one level down.

Opened up the sketch: Arduino/libraries/UTFT/examples/Arduino/UTFT_Demo_320x240/UTFT_Demo_320x240.pde

Adjusted comments in these next two lines as shown by commenting out (//) the first one and removing the comment on the second. I then compiled and uplaoded sketch and it worked.

// Uncomment the next line for Arduino 2009/Uno
//UTFT myGLCD(ITDB32S,19,18,17,16);   // Remember to change the model parameter to suit your display module!

// Uncomment the next line for Arduino Mega
UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

This worked fine for display, but the ITDB02_Touch V1.21 library and examples are not yet updated for the new setup. I made a few mods to is so it runs with Arduino 1.0.1 and the UTFT library and posted them here: https://dl.dropbox.com/u/68998630/arduino/ITDB02_Touch_Mod.zip

I hope this helps,
-Otmar
Logged

-Otmar
Arduino Newbie

Oslo, Norway
Offline Offline
Full Member
***
Karma: 5
Posts: 104
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This worked fine for display, but the ITDB02_Touch V1.21 library and examples are not yet updated for the new setup. I made a few mods to is so it runs with Arduino 1.0.1 and the UTFT library and posted them here: https://dl.dropbox.com/u/68998630/arduino/ITDB02_Touch_Mod.zip

This modification WILL NOT WORK with all display modules. It will compile and upload OK, but the calibration sketch will not calculate the correct values without more modifications.

I have a new touch library working on Arudino. I just have to make it work on chipKit as well.
I am considering running an open beta for this library, and if I do so the beta period will hopefully start in a week or two.

/Henning
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the responses and links guys that's great.  I have it working now at last!

Many thank!

Dan
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there! I am having some issues with the SainSmart Mega2560+3.2" TFT LCD Sheild+Touch Screen as well. As far as I am aware, I have placed the library in the correct place, but when I try to verify the code it spits out the following error:

UTFT/UTFT.cpp.o: In function `UTFT::LCD_Writ_Bus(char, char, unsigned char)':
/Users/Gav/Documents/Arduino/libraries/UTFT/HW_AVR.h:2: multiple definition of `UTFT::LCD_Writ_Bus(char, char, unsigned char)'
UTFT.cpp.o:/Users/Gav/Documents/Arduino/libraries/UTFT/HW_AVR.h:2: first defined here
/Users/Gav/Documents/Arduino/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
UTFT/UTFT.cpp.o: In function `UTFT::_set_direction_registers(unsigned char)':

There is a lot more to the error message but I've held back from putting the whole thing up. Does any body recognise what could be the problem here?

Any help would be very much appreciated. Thanks!  smiley
Logged

Anaheim CA.
Offline Offline
Edison Member
*
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

... While the error message (s) are most important so is the sketch that generated them.
Henning Karlsen Provides the UTFT lib AND a Very complete manual for using the Library, Most errors are caused by improper use of the command set followed by improper library installation.

Bob
Logged

“The solution of every problem is another problem.” -Johann Wolfgang von Goethe

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This worked fine for display, but the ITDB02_Touch V1.21 library and examples are not yet updated for the new setup. I made a few mods to is so it runs with Arduino 1.0.1 and the UTFT library and posted them here: https://dl.dropbox.com/u/68998630/arduino/ITDB02_Touch_Mod.zip

YES!! You saved me so much heartache! I don't know how, but using your ITDB02_Touch files everything just worked the first time, the way it should have been all along. Also, I noticed that you left the UTFT myGLCD(ITDB32S,38,39,40,41)  on the 32s... It would be fantastic if SainSmart could at least tell us that so people like me don't look at their spec where it says SSD1289. smiley-razz

Thanks!
Chris
Logged

France
Offline Offline
God Member
*****
Karma: 19
Posts: 615
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In fact "ITDB32S" is just the name that Itead Studios gave to "their" display, which also use the SSD1289 controller.

If you looked at the UTFT documentation pdf "supported displays" you could have found that by yourself smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In fact "ITDB32S" is just the name that Itead Studios gave to "their" display, which also use the SSD1289 controller.

If you looked at the UTFT documentation pdf "supported displays" you could have found that by yourself smiley

Oh wow, you told me!! smiley-roll I actually started with that as the model name, as the first place I looked was in the documentation. I believe there is a problem with my particular TFT, as it exhibits erratic behavior. Its best performance was with the model name of TFT01_32 but I consider that a coincidence. I do believe I will not purchase from Sain Smart in the future.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got mine up and running with very little complications...although I did read a bunch of these threads first, and got a push in the right direction from guix.

You get what you pay for...what we saved in money we're paying for in twice the headaches.

But, for the $28 I spent for the Mega board, screen, and shield I can't complain.

Now, I just have to learn how to bang out code for the touchscreen and I'll be a happy man!
Logged

Pages: [1]   Go Up
Print
 
Jump to: