Good Tutorial To Learn 7" LCD Screen With Shield For Arduino Mega or Due?

Hi Guys,

I’m trying to learn about the LCD graphic displays. My current level has me to the point that I can work with a 16x2 LCD screen that is directly connected to the arduino. I have little if any experience with shields or the more complex LCD screens. To learn, I just got this 7" LCD screen along with this shield:

Screen: http://www.ebay.com/itm/7-7-0-inch-TFT-LCD-module-CPLD-SDRAM-800x480-arduino-DUE-MEGA2560-4-3-SSD1963/121186426608?_trksid=p2050601.c100272.m3467&_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20140813112422%26meid%3D6d15b18ac3014739999cbf2992d05fd2%26pid%3D100272%26prg%3D20140813112422%26rk%3D2%26rkt%3D4%26sd%3D111393672033%26clkid%3D130143396548825626&_qi=RTM1562570
Shield: http://www.ebay.com/itm/121161179201?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

While I would like to use the shield, I can’t even do the basics, like getting the backlight of the LCD to come on. In searching for a good tutorial or video on this stuff, I’ve come up completely dry.

So can anyone recommend a good LCD tutorial that incorporates the above shield and lcd screen, because I don’t think it exists :frowning:

What library did it come with? Or what library did you download for it?

Did you try the UTFT and UTouch libraries from Henning Karlsen's website?

That's exactly what I tried. It's a bit over my head, but I 'think' that I updated all the settings to what they needed to be when I tried the examples provided with the library.

Do the SD cards have to be in the shield, screen, or both? Or do you even need the SD cards at all?

It also says in the example that you need to update the model parameter to suit my display module. Should I be using the parameter for the Shield as the display module (which is "CTE50"), or should I be using the parameter that the display itself uses, even though it connects to the board through the shield (which is "CTE70CPLD")?

Oh, and in the tutorial it mentions something about using the SPIFlash library. Do you think that's required to get the display to work properly or is that just to display items on the SD cards?

Do the SD cards have to be in the shield, screen, or both? Or do you even need the SD cards at all?

It is usually on the screen, but some shield models can do either or.

It also says in the example that you need to update the model parameter to suit my display module. Should I be using the parameter for the Shield as the display module (which is "CTE50"), or should I be using the parameter that the display itself uses, even though it connects to the board through the shield (which is "CTE70CPLD")?

Try this model "SSD1963_800" it is for 480x800, 16bit screens.

Did I put the parameter in the right place? This is the code I tried, but got nothing :frowning:

// Standard Arduino Mega/Due shield            : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Due       : <display model>,25,26,27,28
// Teensy 3.x TFT Test Board                   : <display model>,23,22, 3, 4
// ElecHouse TFT LCD/SD Shield for Arduino Due : <display model>,22,23,31,33
//
// Remember to change the model parameter to suit your display module!
UTFT myGLCD(SSD1963_800,25,26,27,28);

I think I made a little bit of progress, because I'm at least getting an error code when I use "CTE70CPLD" as the parameter... memory, leaving 7,643 bytes for local variables. Maximum is 8,192 bytes.

Here's what it's saying:

avrdude: ser_open(): can't open device "\.\COM6": The system cannot find the file specified.

avrdude: ser_drain(): read error: The handle is invalid.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.

UTFT myGLCD(SSD1963_800,25,26,27,28);

You need to check the data sheets to see what pins are your RS, WR, CS, and RST.

CTE70CPLD is not a model the library understands.

Making some progress. For the first time, the LCD actually at least lit up…so that’s a start :grin:

The screen has horizontal red and white stripes that look very pixelated …

HazardsMind:

UTFT myGLCD(SSD1963_800,25,26,27,28);

You need to check the data sheets to see what pins are your RS, WR, CS, and RST.

For the shield or on the display?

It should be the shield, but check both.

Shield's connection to the mega has the following:

5V_LCD_RS =19 5V_LCD_WR = 20 5V_LCD_CS = 21 5V_LCD_RST = 22

By the way, what do each of those standfor (the RS,WR,CS,RST I mean?)

Made a little bit more progress....saw a bunch of colored squares on the LCD this time.

This was the configuration I used:UTFT myGLCD(CTE70CPLD,38,39,40,41);

...and that must have been a fluke, because it doesn't work anymore. :~

Change the model and try it again. Open up the UTFT.cpp file or keywords file and try all the models.

Perhaps I missed it but I don't see we're you've identified the processor you are using. So, which is it? A Mega or a Due?

Also:

HazardsMind: CTE70CPLD is not a model the library understands.

Incorrect. That is a valid model and is exactly what the OP should be using. If he has a Mega, the correct UTFT model would be:

UTFT myGLCD(CTE70CPLD,38,39,40,41);

If the type CTE70CPLD is not recognized, you have a older, out of date version of UTFT and you should download the current version from the UTFT website.

Also be sure to select the correct 800x480 demo from the AVR choices, not the ARM versions. Once you have the correct demo sketch open, change the display type from ITDB50 to CTE70CPLD and that should run without further drama. You do not need any SD cards to run the UTFT demo.

Finally, if you are using a Due, you have the wrong shield. You need this version: http://www.ebay.com/itm/TFT-SD-Shield-for-Arduino-DUE-TFT-LCD-Module-SD-Card-Adapter-2-8-3-2-inch-Mega-/121057447668?

I'm using the Mega, and thanks for all the tips. :)

Incorrect. That is a valid model and is exactly what the OP should be using. If he has a Mega, the correct UTFT model would be:

Yea, I haven't updated the library in about 2 months(maybe longer), but the only thing that changes with the models is the screen resolution and mode. The 7" screens are usually 480x800 and 16bit, which should work with the models I told him to use. I can't update the library right now, the site is under maintenance.

I got it working. Turns out the arduino doesn't provide enough power to the screen on it's own, so you have to use the DC power supply. Hooked it up, and the red/white lines vanished, and it ran through the demo.

I’m having the same problem, I’m using the same display(http://www.ebay.it/itm/121186426608) with an Arduino Due and shield(http://www.ebay.com/itm/121057447668).

Tried every driver in the UTFT library, the attached image is the best I can get. Tried external 12v, 7.4v, still the same. Would appreciate some help guys …