Troubleshooting a 3.2" touchscreen with Arduino.

I posted this in a different area and moved it here. Sorry about that confusion.

I have an Arduino mega 2560 R3 (not a clone) and the 1.6.7 IDE on windows 7 (64). I am attempting to get a touchscreen and shield to work. I believe I have a ILI9341. I installed the TFT and UTouch libraries (mentioned in a tutorial below). I'm a bit out of my element with touch screens and I haven't played with my arduino in a little bit. I figured I'd try something new.

What I purchased off of Amazon:
http://www.amazon.com/Display-Module-Shield-Arduino-Mega2560/dp/B01C5ITXPW/ref=sr_1_1?ie=UTF8&qid=1457396754&sr=8-1&keywords=hobbypower+3.2"+TFT+LCD+Display+Module+%2B+LCD+Shield+for+Arduino+Mega2560+R3

Tutorial I am attempting to replicate:

I am getting a white screen after uploading the code. I saw that someone thought to add code to make it work, but I haven't been successful. The only changes I've made so far are below. Can someone give advice on troubleshooting? I'll check back in if I find something first.

UTFT    myGLCD(ILI9341_S5P,38,39,40,41);  //this is at the top
  pinMode(38,OUTPUT); //this is in void setup
  pinMode(39,OUTPUT);
  pinMode(40,OUTPUT);
  pinMode(41,OUTPUT);

What I purchased off of Amazon

Why didn't you buy something that came with instructions and a library?

I already requested documentation. I saw the words "compatible with arduino". It won't blow it up. I'm just trying to get it to work. Any constructive ideas?

I have pictures of my hardware if that helps at all.

Thanks for any assistance. :slight_smile:

Derkatwork:
Any constructive ideas?

Yes.

  1. Buy things that have full documentation so you won't be depending on others for "constructive" ideas.
  2. If you are going to follow a tutorial, and it tells you which part to buy. BUY that part.
  3. Learn how to post clickable links.

How about rather than being a prick, you could offer some useful help towards the topic? I am trying to be polite and post what I know. I know this isn't a tech support website, but I haven't bought too many things and don't post too much. I'm here trying to learn since I am "Newbie" status. You being a prick about it helps no one. >:(

The description says its an ILI9341 in 16 bit parallel mode - so the SPI example won't work.

Does UTFT support 16 bit parallel for that chip? If not you're basically on your own - I'd
not buy 16 bit parallel, SPI is pretty fast at 8MHz SPI clock and much simpler to wire up.

There are many TFT driver chips and most support two versions of SPI, and 8, 9, 16 and 18 bit parallel
mode (though most modules collapse that choice down to one). Hopefully UTFT has support, I haven't
looked at it recently.

Derkatwork:
How about rather than being a prick, you could offer some useful help towards the topic? I am trying to be polite and post what I know. I know this isn’t a tech support website, but I haven’t bought too many things and don’t post too much. I’m here trying to learn since I am “Newbie” status. You being a prick about it helps no one. >:(

You bought something you had no idea how to use, ASSuming it would just be plug-and-pray. And, now, somehow it is our fault?

Don’t let the door hit you in the ass on the way out.

Or do. I don’t care. Personally, I’d kick your ass out of here.

UTFT.h

look there for all the flavors of hardware..and worst case, just try them all till one works...

#define ILI9481 21
#define ILI9325D_16ALT 22
#define S6D0164 23
#define ST7735S 24
#define ILI9341_S5P 25
#define ILI9341_S4P 26
#define R61581 27
#define ILI9486 28
#define CPLD 29
#define HX8353C 30
#define ST7735_ALT 31

#define ITDB32 0 // HX8347-A (16bit)
#define ITDB32WC 1 // ILI9327 (16bit)
#define TFT01_32W 1 // ILI9327 (16bit)
#define ITDB32S 2 // SSD1289 (16bit)
#define TFT01_32 2 // SSD1289 (16bit)
#define CTE32 2 // SSD1289 (16bit)
#define ITDB24 3 // ILI9325C (8bit)
#define ITDB24D 4 // ILI9325D (8bit)
#define ITDB24DWOT 4 // ILI9325D (8bit)
#define ITDB28 4 // ILI9325D (8bit)
#define TFT01_24_8 4 // ILI9325D (8bit)
#define DMTFT24104 4 // ILI9325D (8bit)
#define DMTFT28103 4 // ILI9325D (8bit)
#define TFT01_24_16 5 // ILI9325D (16bit)
#define ITDB22 6 // HX8340-B (8bit)
#define ITDB22SP 7 // HX8340-B (Serial 4Pin)
#define ITDB32WD 8 // HX8352-A (16bit)
#define TFT01_32WD 8 // HX8352-A (16bit)
#define CTE32W 8 // HX8352-A (16bit)
#define ITDB18SP

Solved. Thanks for the help. An additional source of help was this thread: http://forum.arduino.cc/index.php?topic=377962.0

UTFT myGLCD(ITDB32S,38,39,40,41);
//UTFT myGLCD(ITDB32,38,39,40,41);

//UTFT myGLCD(ILI9341_S5P,38,39,40,41); //this is at the top

if u go down the list of all the defines-- u might find one that works better than the others..
several may work..