ILI9341 can not get to work..

hi there
I have purchased a 2.4" TFT and i can not get it to do anything the back lights are on tho.

this is the example i am using on my arduino pro mini:

#include <SPI.h>
#include <ILI9341_due_config.h>
#include <ILI9341_due.h>

#include "fonts/Arial_bold_14.h"

#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8

ILI9341_due tft = ILI9341_due(TFT_CS, TFT_DC, TFT_RST);

void setup()
{
//Serial.begin(9600);

bool result = tft.begin();

//Serial.print("TFT begin successful: ");
//Serial.println(result ? "YES" : "NO");

tft.setRotation(iliRotation270);
tft.fillScreen(ILI9341_BLUE);

tft.setFont(Arial_bold_14);
tft.setTextLetterSpacing(5);
tft.setTextColor(ILI9341_WHITE, ILI9341_BLUE);
tft.printAligned(F("Hello World"), gTextAlignMiddleCenter);
}

void loop()
{

/* add main program code here */

}

and this is how i have connected it:

GND:
7, 11, 12, 13, 14, 43, 48, 49, 50

3.3V:
1, 6, 8, 9, 35, 40, 41, 42

LED back light:
2, 3, 4, 5 (Through 100R to GND)

ILI9341 Arduino Pro mini (3.3v 8Mhz)
SCL: 37 13
MOSI: 34 11
MISO: 33 12

Reset: 10 8
CS: 38 10
DC: 36 9

pins 15 to 32 i have not connected i presumed this will make no different?
This is the diagram i have been looking at, fourth down on the right.

So what have i done this time?? :slight_smile:

Thanks Joe

A very quick first look and the 4th image on the right does not have pin 6 connected to 3.3V but is connected to GND.
What is in error? Your left/right or the wiring?
Some of the VDD pins are meant to be 2.8V and your connecting to 3.3V.

A very quick first look and the 4th image on the right does not have pin 6 connected to 3.3V but is connected to GND.
What is in error? Your left/right or the wiring?
Some of the VDD pins are meant to be 2.8V and your connecting to 3.3V.

o yes i have got pin 6 and 7 mixed, still not working but i could have damaged it by doing this?
i can not get it to display anything.
yes i did see in a datasheet that the 2.8v pin can go up to 3.3v, would you agree with that?

do you see white backlight (=are the leds lighting)?

Yes

Joes:
o yes i have got pin 6 and 7 mixed, still not working but i could have damaged it by doing this?

yes i did see in a datasheet that the 2.8v pin can go up to 3.3v, would you agree with that?

I don't think getting pins 6/7 mixed up should have damaged the TFT as they are interface mode pins so you would have just set a different mode.
Yes the datasheet does say they will handle 3.3V
I will investigate further and get back to you tomorrow.

Maybe try a different LCD library, I would suggest the Adafruit one here and use the links there to see how the display is wired up. If that works then you know the problem is software and not hardware.
The display they are using seems to use a different backlight configuration but yours is working so no worries there. They also don't seem to bother with pin 10 RESET connected.

If this works and you still want to use your original library then post your config and sketch files here. The library default seems to be for DUE using DMA that the Mini does not have but I assume you must have altered the config else it should fail to compile.

Sorry for the delay.
Right i have tried a different library and still not working so i decided to give up with the pro mini and went back to the uno, i'm aware running a uno at 3.3v that the 16mhz is a bit high but it seemed to work fine and i now have both library working fine :slight_smile: so maybe i have a duff pro mini.
One thing i did do by mistake i plug the uno into the the pc so it was running 5v and it seems to work fine and the display seems fine as well, had it like this for about 1h on and off so i don't no if it will last or not..

Now for my new question:
I have been looking at this Example and i would like to make my own images it does say on the example to use BMP24toILI565Array to covert into a h file but when i try to open it on my mac it does not recognise it and i tried it on a window 7 and i get a black window appear for a very short time and disappears, so am i missing something or is there another way to convert to a h file?

Thanks Joe

The program BMP24toILI565Array is a Windows program so won't work on the Mac.
A quick look at the code and it seems the program is written for console use (CMD). If you run the program without command line arguments then it will look for .BMP files in the same folder as the program and convert them to .h files.
If you supply a filename as an argument then it will convert just that one file (assuming it exists).