TFT 2.2' SPI 240x320 Display w/ Arduino Nano

preview_player
Показать описание
This is a test of an ebay item 141147721733 in SPI mode with a Nano clone, 328, using the Adafruit libraries; Adafruit_ILI9340.h and Adafruit_GFX.h
Resources used:
// Binary sketch size: 18,538/30,720 bytes (.text + .data + .bootloader)
// Data: 302 bytes (.data + .bss + .noinit)
Рекомендации по теме
Комментарии
Автор

How to use this "usefull" information?

hujsuj
Автор

to Ray:
Thank you for your information very much!!
I have cheked your GPS Clock project,
and I found that my sketch was correct.
But still my LCK shows only white screen...
So I asked to the shop that I bought this LCD.

Thank you very much.

tlabbandit
Автор

Hey man, great to see such nice response times with the little nano. I am looking at getting one of these for a project - however I'd like to know if you have exposed it to sunlight? How well does it work outside?

CJCombrink
Автор

@Daniel: looks can deceive; here is the one I used:


Ray

RayBurne
Автор

For people having code/connection issues with the 2.2" ILI9341, please see one of the many projects that I have posted with code for both Arduino & PSoC (ARM) here:

RayBurne
Автор

Yoichiro:
Check out my blog on hackster (dot) io where I have the code posted in ZIP
The reference project is the GPS Clock

RayBurne
Автор

The backlight is controlled by arduino via PWM? Also, can I use the built-in sd-card slot to display some images. Another question will be how to rotate a graphical object(such as the needle of a tachometer)?, your help will be very appreciated. Cheers!

alexzirnea
Автор

Mr. Burne, are you powering your nano with 3.3v or 5?  I have the same exact setup (nano clone, 2.2 tft ILI9340C) but I have mine wired thru a 4050 hex buffer to drop the voltage in mine from 5 to 3.3.  I read the datasheet which says the signal wires for the tft are 3.3 volts but the datasheet is for the display and not the breakout board it is mounted to...and I cannot find any information on the breakout board to find out if it drops the signal levels down or not.  However, I can get mine to work with all the libraries in software spi, but not hardware.  I've seen some posts which reference the '328 datasheet in saying that the SPI Hardware is 3ma vs 40ma for GPIO and that resistance in the breadboard and the jumper wires can cause the 'whitescreen' which is what is get when i try the adafruit library in hardware spi mode.  Any thoughts?

jewfish
Автор

Hello Ray!
I have got a similer LCD module using ILI9340c,
and I have tried to execute sample sketch of adafruiit_ILI9340.
But my LCD shows only white screen....

If you can, would you please tell me your sketch and detailing of wiring?

tlabbandit
Автор

were i can find a internet page talking about it? a have a equal dysplay, but i cant make it works =/

alanolicheski
Автор

Can u plz post the pin diagram for the connection with nano???nothin is displayed..correct library is imported i think its the connection.Thankyou

abanikumar
Автор

Could you pm me a diagram of how to do with 1.44in adaruit tft screen? Im confused with pins

DoubleDipChipsOfficial
Автор

Hi Ray! your arduino nano is running at 3.3V? I have the same display and the same adafruit libraries, when I try to run the same example the display shows nothing. I thought it was by the 3.3v but I have understood that the arduino nano is = to UNO (5v of logic levels).

reconalt
Автор

Hello I buy this display but it do not works.
can i have the code  and schematic? 
please
thanks

francesconoto
Автор

PLEASE Mr. Ray, i have this screen but don't know how to connect it. also i want to play an sketch just for knowing that my screen works correctly thanks

TheCode-X
Автор

Ray, good afternoon. 
I would ask your assistance, I checked the documentation, but could not replicate your experiment. I have the arduino nano usb, with the same 2.2 TFT possible and send the schema to assemble the circuit?

lineuve
Автор

Does that use hardware or software SPI on nano? I cannot get my nano to use hardware SPI.

angzam
Автор

From within the codebase on Hackster<dot>io
// These are the pins used for the UNO
// for Due/Mega/Leonardo use the hardware SPI pins (which are different)
// J2 header pin # on GLCD from eBay
#define _sclk 13 // 7
#define _miso 12 // 9
#define _mosi 11 // 6
#define _cs 10 // 3
#define _dc 9 // 5
#define _rst 8 // 4

RayBurne
Автор

Good evening! Do you have the TFT connection scheme with Arduino?

gestaoemtecnologiadainform
Автор

Александр Чернобривко
ДОБРЫЙ ДЕНЬ купил дисплей как у вас на видео, на контролере ILI9341 но не получается запустить вы не поможите? мне бы самое элементарное - хоть залить экран каким либо цветом есть МК атмега 8 и 328

Alexander Chernobrivko
GOOD DAY bought the display as you do in the video on the controller ILI9341 but it is impossible to run, you do not help? I would most elementary - though to fill the screen in different colors have MK atmega 8 and 328

Alexander,
When a new display does not work as expected, I always recommend verify the wiring, then use one of Adafruit's demo programs for that display type. This removes any guesswork about software. I have used a "real" ILI9341 with PSoC, Arduino, STM32F103 and ESP8266 ... all work as expected.

Ray

RayBurne