Go Down

Topic: LCD display with ILI9341 driver on Arduino (Read 245441 times) previous topic - next topic

david_prentice

Your Fritzing looks clear.   The connections look fine to me.

Providing your constructor() is accurate,   Marek's ILI9341_due.h,  Bodmer's TFT_ILI9341.h, Adafruit's Adafruit_ILI9341.h, ... should all work.

In fact most of these libraries will make some form of diagnostic report on the Serial Terminal.  (you need to connect MISO line to #12.   you do not need the 4050)

David.

bodmer

@Atomic_Sheep

Have you identified pin 1 correctly and plugged the 4050 in the correct way around?

Is the backlight LED working?  If it is, you should see some white light leaking out around the edges of the display.
Formerly Rowboteer (now a broken user profile!)

Atomic_Sheep

#317
Oct 31, 2016, 02:42 am Last Edit: Oct 31, 2016, 04:18 am by Atomic_Sheep
In fact most of these libraries will make some form of diagnostic report on the Serial Terminal.  (you need to connect MISO line to #12.   you do not need the 4050)
Will have to look into this.

@Atomic_Sheep

Have you identified pin 1 correctly and plugged the 4050 in the correct way around?
Yer pretty sure I'm right in this department.

Pin 1 is bottom right with the red cable.

Is the backlight LED working?  If it is, you should see some white light leaking out around the edges of the display.
No the unit is completely blank.

Bought one of those Logic Level converter modules from Arduino.

https://www.jaycar.com.au/arduino-compatible-logic-level-converter-module/p/XC4486

Maybe there's something wrong with my 4050. I'll use it for the SS signal... see how I go.

TFTLCDCyg

#318
Oct 31, 2016, 03:56 am Last Edit: Oct 31, 2016, 10:15 am by TFTLCDCyg
Try this wiring



Constructor for the ILI9341_due library:

Code: [Select]
#define TFT_RST 8
#define TFT_DC 9
#define TFT_CS 10
ILI9341_due tft = ILI9341_due(TFT_CS, TFT_DC, TFT_RST);

Atomic_Sheep

#319
Oct 31, 2016, 07:29 am Last Edit: Oct 31, 2016, 08:17 am by Atomic_Sheep
Figured it out :), I flipped an already flipped cable diagram, had my LCD connected back to front.

OOOOH I get it, so the SPI connections down one side are for the LCD and on the side for the SD reader?

TFTLCDCyg

... and on the side for the SD reader?
Answer: Yes!

PD: up some pictures of your TFT

david_prentice

@TFTLCDCyg,

I see that you have connected LED to 3.3V.
The Uno has :
Quote
DC Current for 3.3V Pin    50 mA
The Uno's 3.3V regulator is a bit wimpy.   It is safer to connect the LED to 5V via a 47R resistor.
And of course connect MISO to digital#12

Anyway,  it is good that Atomic_Sheep has got the display working.

David.

Atomic_Sheep

#322
Oct 31, 2016, 03:13 pm Last Edit: Oct 31, 2016, 03:18 pm by Atomic_Sheep
Thanks for the help guys.

Here's a happy snap.

tployaert

Hy boys!

I bought a cheap 3.2" tft display from china, but the pin outs is not clever. Can you send me a workable wiring for this pin outs? I have an Arduino Uno. The display contain ILI9341 ic, sd card reader, and resistive touch screen, but my first goal is the screen start to work.

http://postimg.org/image/awbh9l5v5/

I attached a picture from modul's pinout.

Thanks!
Tibor
Hello, have you succeed ?
I have the same and it doesn't seem to be ILI9341 but SSD1289 (see http://www.geeetech.com/wiki/index.php/3.2TFT_LCD)

numlo

Hello,

I bought a 2.4 TFT SPI ILI9341 display from ebay and I don't have a datasheet. I wired it up at 3.3V and turned it on. It works nice. The problem is that the 3.3V voltage regulator gets really hot. I used a variable power supply to power it up and the current draw is 0.13A. 0.03A for the arduino pro mini with 2 tiny LEDs and 0.1A for the display.

Is 0.1A for the display too much? If the display is OK maybe I should change the voltage regulator.

rediculum

#325
Apr 21, 2017, 09:43 am Last Edit: Apr 21, 2017, 09:51 am by rediculum
Hello
Just a feedback after 3 days debuging my problem and having a white screen all the time.
I used the wiring of Post 93 but with a 5V Pro Mini. In oder to gain the 3.3V I used a L78L33 voltage converter connected on the 5V pin. The wiring of Post 93 didn't work as long I had the VCC of the TFT on 3.3V (white screen flickering with LED13 during graphictest.ino). After I connected VCC of the TFT to the 5V pin on the Pro Mini....voila!
The empty InputB on the CD4050 was not necessary to put on GND to make it work.
I hope this info is helpful for others dealing with the same struggle as I did.

PS: I used oli's ucglib. HWSPI was faster than SWSPI.
Regards
ReDiculum

Project:
LASERino

t0r30rs

To make it easier on the folks here I modified the adafruit library.
The result is not as drastic as the parallel displays, but I managed to score a 2.40x speed increase.

The pins are defaulted to the hardware SPI.
9 and 10 are DC and CS. 13 is SCLK and 11 is MOSI. Simple

THE RESET PIN SHOULD BE ATTACHED TO 3.3V OR VCC TROUGH A 10K PULL-UP

The SD card library can be used as usual, with the default pinouts.

https://www.youtube.com/watch?v=9RIKzXANbOY

Modified Library:

Code: [Select]

ILI9341 Test!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark                Time (microseconds)
Screen fill              1522152
Text                     121600
Lines                    921592
Horiz/Vert Lines         126996
Rectangles (outline)     81808
Rectangles (filled)      3160352
Circles (filled)         501916
Circles (outline)        396440
Triangles (outline)      293484
Triangles (filled)       1163048
Rounded rects (outline)  183788
Rounded rects (filled)   3473156
Done!



Sketch uses 19,358 bytes (60%) of program storage space.
Global variables use 596 bytes (29%) of dynamic memory.


Default Library:

Code: [Select]

ILI9341 Test!
Display Power Mode: 0x0
MADCTL Mode: 0x0
Pixel Format: 0x0
Image Format: 0x0
Self Diagnostic: 0x0
Benchmark                Time (microseconds) Performance increase
Screen fill              2561344 1.68x
Text                     319432 2.62x
Lines                    3118828 3.38x
Horiz/Vert Lines         222976 1.75x
Rectangles (outline)     148504 1.81x
Rectangles (filled)      5319692 1.68x
Circles (filled)         1168236 2.32x
Circles (outline)        1357636 3.42x
Triangles (outline)      990332 3.74x
Triangles (filled)       2083636 1.79x
Rounded rects (outline)  511700 2.78x
Rounded rects (filled)   5964712 1.71x

AVERAGE 2.40x faster
Done!


Sketch uses 19,008 bytes (58%) of program storage space.
Global variables use 596 bytes (29%) of dynamic memory.


Loading a BMP file from SD takes about the same time. About 200ms quicker.

The current library only works with arduino UNO, Mini and Nano.
The previous version, posted in May works with the mega. For the Due there is an improved version using DMA.
Greeatings.


I have ILI9488 tft and mega .
I have problem with speed refreshing , I use iLI9488 library spi comunication beetween mcu and tft.
Have you some suggestion how can i speed up my tft have you some idea for this library or i must change hardware configuration ?

Go Up