I had bad experience with previous nokia 5110 LCD interfacing 3.3v and 5V. I'm wondering if I'm going to have any problem with 3.3v transceiver, and also was thinking to use 74HC541. To do the test I need if you can give me some links to a hello world software and library for this LCD, since I didn't find much on the web. Do you think it's going to work with arduino mini in software SPI emulation? Thanks!
Hello everyone! I bought an LCD based on ILI9341 driver but none of the available arduino examples worked to my Arduino pro mini.
I used the CD4050 level converter (5V -> 3.3V) and a LD33V ( 5V to 3.3V voltage regulator).
Still the LCD denied to work.
So, I examine the source code of TFTv2.cpp and TFTv2.h files. I saw that the LCD's Reset pin was not initialized.
Then I add the following 2 lines to TFTv2.h files:
#define TFT_RST_LOW {DDRD |= 0x10;PORTD &=~ 0x10;} //Added by Vassilis Serasidis (18 Oct 2013)
#define TFT_RST_HIGH {DDRD |= 0x10;PORTD |= 0x10;} //Added by Vassilis Serasidis (18 Oct 2013)
and these 3 lines to TFTv2.cpp:
void TFT::TFTinit (void)
{
TFT_RST_LOW; //Added by Vassilis Serasidis (18 Oct 2013)
delay(200); //Added by Vassilis Serasidis (18 Oct 2013)
TFT_RST_HIGH; //Added by Vassilis Serasidis (18 Oct 2013)
SPI.begin();
...
...
}
This link is posted on the first post of the current topic. I was not member of this forum and I hadn't had access to your ili9341.rar file to download it.
After your last post went back to the first page, I saw your link, I downloaded your library and it worked very good!
Well done nid69ita!
Forgive my complete ineptitude; Do the inputs of the screen sink or source current? I am using a non-inverting 4050B and notice that TheCoolest's post #7 illustration seems to suggest he's using an inverting 4050. If this is correct, am I likely to have blown it up?
The bidiretional level converters based on MOS has a voltage regulator from 5V to 3.3V. Initially I didn't got 3.3v in the output, but finally I discovered that it has and output 0.2v shottky diode after the regulator, so you need to use this output pin to make it work and drains maximum of 150mA.
The LED output I need to conect to a BC337 NPN transistor since the arduino nano+level converter have not enough current fanout.
Finally from the hellow world now one can work in the development.
Tobster86:
And another question regarding the ILI9341 on the red board; I presume Vcc needs 3.3v?
well, in mine there is a voltage regulator to get 3.3v from 5v power supply. But also there are a jumper to do a bridge from Vcc to 3.3v bus trace. In my case both supplies are correct. What is confusing in ebay shops is that they indicate 5 and 3.3v compatibility and one can imagine that it is the same for the serial interface pins, but really not...
I am struggling to with that TFT Display. I not totally new to Arduino, I done various things with a hitachi, even soldering my own shield with a shiftregister for the 2 Wire configuratoin ,but this is way over my experience level.
What I have:
The ILI9341 Display with SD-Card slot and 9 soldered Pins (VCC,GND,CS,Reset,D/C,MOSI,SCK,LED and MISO), similar to the picture in a post in this thread
a 4 Channel Voltage converter with 6 Pins ( 1 bidirectional VCC 5 V <->3,3 V, 1 Ground , 4 5->3,3 V )
a Arduino Pro mini 5V
Wires and bread board.
propably every library from the internet
I tried almost every PIN configuration shown in examples on youtube, inside the scripts,
first I wired it direct, Arduino->TFT, then I tried to wire from Arduino -> Voltage converter-> Display - I downloaded uTFT, GitHub - gmtii/ili9341-arduino: ILI9341 2.2 LCD library, and 2 other libraries. I have the PDF about 3,9MB for the display, but I am to unexpierenced to get it working.
I also tried to follow the guide here -> LCD4 - YouTube , but I don´t own a 5110 Display nor the 1,8" TFT. They don´t use a voltage converter, do they use a 3,3V Arduino Board ?
Could someone give me a start, because this is giving me a headache.
At least I can get the background LED working, with a library, it was with the one from github ( link here in this thread ) , but when I wire it up, just nothing happens, not even a flicker or else.
Do I need to use the voltage converter for the CS/RESET/DC/MOSI ?
Hope somebody can help,
Cheers Andre
EDIT 2 day later (29.10.2013): OK, well I probably sounded like a total noob, asking already answered questions, believe it or not, the pictures in this threat we´re showing up today, first time I am folling it. Now I see what I am did wrong... I hope I get it working tonight ! because all my questions are now answered
xcastelo:
well, in mine there is a voltage regulator to get 3.3v from 5v power supply. But also there are a jumper to do a bridge from Vcc to 3.3v bus trace. In my case both supplies are correct. What is confusing in ebay shops is that they indicate 5 and 3.3v compatibility and one can imagine that it is the same for the serial interface pins, but really not...
Is it the same as this board? (And if so, I presume you refer to jumper J1? To clarify; must I supply 5v if the jumper is not present?)
I'm seeking a little help here with the level convertors. I have on hand some 74HC245 transceivers, they have been used in other projects here but I've never gotten around to actually using them. They are just buffers, the same as the CD4050 used here, but have an extra couple of pins, which I can't figure out despite spending some quality time with the spec sheet. I've had a good look at the diagram on page one of this thread, the buffers in the 245 are of the same kind, non-inverting, I believe, and this should be straightforward except for the extra pins (to/from voltage ?) on the 245. Its datasheet is at http://www.nxp.com/documents/data_sheet/74HC_HCT245.pdf
I'm using the same expected setup everyone is I think, one of the ILI9341 displays and a 5V Uno.
EDIT: I have the 20 pin version, just discovered there's a 24 pin version as well
I´d like to tell everybody how I have done it, maybe it will help:
I had a arduino mini pro 5V, a 5 Channel voltage regulator 5V->3V and the Display, got it from somewhere really cheap with no documentation. I tried so much, but what gave me the start was this setup:
Posted by nid69ita:
nid69ita:
D4 : RESET
D5 : CS
D6 : D/C
D7 : LED -> wired to the VCC of display , not to pin on arduino
D11 : MOSI
D12 : MISO
D13 : SCK
Downloaded the ili9341.rar from that post. Uploeaded the text-example from that lib. I have put Display Vcc and Gnd through voltage regulator (one way), then D4,CS,D/C,SCK through the 4 Channels (bidirectional) of the voltage regulator. MISO was dirctly wired. I wired MOSI directly too (because I didn´t have more channels), resulting in a white screen, I messured a bit, then took a 1kOhms resistor for that, something scrambled showed up, I tried some lower resistors and ended by a 470 Ohms resistor in the MOSI wire.... And hello world.
I just ordered a 4050 to make a little shield. I need by VR for other projects.
Ok , next problem. I can´t get the SD-Card reader to work with the tftbmp example from the ili9341 library, when I start it, it says "failed" in the serial monitor. Did someone get this working, MOSI is connected with a resistor to Pin 12, the card is a 512MB with FAT, I copied the .bmp-files on it in root directory. All other examples work fine.
Dear friends.
I'm lost with ARDUINO 256r3, not that pin works the library, as I connect it to TFT ILI9341 2.2" SPI. Where they connect or connect pin, CS, D/C and RESET? Than You