240x320 Screen

0 views
Skip to first unread message

Eryn

unread,
Aug 3, 2024, 5:24:19 PM8/3/24
to tiamenmittro

If you look it's just a white screen, but if you look closer from a side you can see slightly senseless colored lines, actually the colors used in the example that i'm testing (drawCircle).
What's the reason of this behavior?
I used the CD4050BE but same result

If you don't, there are a number of examples that use it or something similar. Just my op, but run one of the sketches that identify the chip and make sure it describes the one that is supposed to be there. One in four displays I bought was broken and wouldn't return the right value no matter what you did. For the others, it would have trouble finding the identifier if there was a secondary problem with which pins were defined for functions.

There's a lot of different manufacturers that produce chips with similar capabilities but different commands and memory layouts. Seems like the eBay sellers are pretty loose in how they describe and support their devices. I wouldn't believe I actually had a ILI9341 chip until I saw it identified as such with the above code snippet.

There may be a demo on Youtube specific to your display. Usually they will have a link to the library and example code on github or some other repository. It may be worth a look there to see if someone has done some of the leg work.

Arduino TFT Display and Font Library: I am quite a fan of the Arduino as there is so much software already available on the internet, this makes completing new projects easier! Recently I bought a few cheap 1.8" TFT displays for a project, initially...

I'll include a sketch by BUHOSOFT with the only change being DEBUG is enabled. It will probably crash badly on your system because of different expectations of screen size let alone colors. It should show your chip on the serial monitor i.e. open Tools>Serial Monitor or M You should have newline or carriage return set for it to work properly.

I didn't notice a '#include SPI' but I think it is contained within the Adafruit libraries. I could be mistaken but I think Adafruit sacrificed some speed for compatibility by moving to SPI so things would work across a wider selection of displays and Arduino platforms.

I don't have the same display to test. I did look on your eBay link and your device does have some of the same signals. I'd guess other then the reset and maybe CS the sketch connections aren't used because you are using SPI rather then one of the parallel transfer modes. Anyway, from the sketch the pins are as attached if I didn't make a transcription error and attached it right.

There are quite a few Youtube videos with that particular device. Most of them are low resolution but you may be able to pick out what pins they are using or contact the author. This link is one of many
ili9341 video

i've used plenty of those displays, always with a CD4050 as a level converter because I initially connected up a couple without it and fried them. I use a 39ohm resistor off the 5V line for the LED backlight. I don't use resistor dividers.

Obviously with the 4050 in the circuit, the Arduino pins don't actually connect to the TFT. Someone else posted circuit wiring in the forum they use. It looks the same as what I use except for the 3.3V, I use 5V (but 3.3 for the 4050).

'graphicstest' example, which is in the ILI9341 library examples folder, and downloaded "Adafruit-GFX-Library" and Adafruit_ILI9341.
All i get is a white screen display,
and this data in the Serial Monitor Output:

For this project I used a 2.4" 240 x 320 TFT Touch screen with SD Card holder the I got on Ebay from this seller for 2.99. The first phase of the is project is to try out the colour display. I used a 3.3V 8MHz Arduino Pro Mini to drive the display - also sourced very cheaply on Ebay. I chose this board because, although the seller of this display claims that it will work at both 5v and 3.3v, the majority of these display will not. So, rather than have to use level shifters of resistor dividers, I made the whole project run at 3.3v.

Thank you for responding quickly.
So all that i need is to connect resistors?
and if so, how to connect them, and what resistors values to use?
Btw i forgot to mention that I'm using Arduino Uno board.

Arduino - TFT Display of Icons and Images From FLASH Memory: In this Instructable you will find a library and sketch to plot images stored in the Arduino FLASH memory onto a TFT screen.Here we use my favorite 2.2" 320 x 240 pixel ILI9341 based TFT...

It's Working perfectly, I used 6.8 and 3.3 resistors instead of 1.2K and 1.8K but its pretty much the same proportions and for the led pin i used 51ohm resistor.
Don't forget to add the reset pin to the programm and connect it as well.
My connections : Screenshot by Lightshot
Thanks you very much guys.

As for the Arduino , I don't understand why I don't have any led working with 3.3V from my regulated supply. I understood that If I supply with 3.3V it's connected to VCC and If I want to supply with 5 V it's on the raw entry.

Depending on your Red 2.8 inch pcb, The regulator is printed I1 and the solder-bridge is printed J1.
This is why I always ask for an accurate link to the actual display on your desk.

The module power comes in on the Vcc pin. The module includes an on-board 3.3V regulator, so the module should normally be operated off of 3.6 to 5.5V power on this pin to feed the regulator. Current is typically 55-60mA

If you would prefer to operate the module directly from a 3.3V power source, there are two solder pads labeled J1. By solder shorting these two pads together, the regulator is bypassed and the module can be powered directly from 3.3V.

In general, it is best to operate the display off of 5V to ensure enough power is available. Be careful of trying to operate the display from the built-in 3.3V available on Arduino and similar microcontrollers since these power sources often have limited current capability and may overheat.

These modules are breadboard friendly with a 14-pin header on the back that can be inserted into a solderless breadboard or a 14-pin female connector can be used to connect to it if the display is to be mounted. The display is mounted on a stiff PCB that provides good support, but be sure to press on the header pins or PCB when applying pressure to insert them into a breadboard and not press on the glass to avoid possible damage.

Though these displays can seem to be a bit intimidating to use at first, just follow these steps to get up and running fairly easily. The pin labeling is on the back only, so we have pictures with the pins labeled on both the front and back to make life a little easier.

Because of the 3.3V I/O requirement, I am using a Teensy 4.1 for easier hookup but any 3.3V MCU can be used. If using an Uno or other 5V MCU, be sure to include level shifters on the data lines going to the display (CS, DC, SDI, SCK, T_CLK, T_CS, T_DIN). It is not required on the SDO or T_DO lines since these are outputs to the MCU.

The program below is a modified version of the Mandelbrot example program that gets installed with the Adafruit_ILI9341 library. It was pruned down in size and basic touch added. The program just calculates the Mandelbrot set and draws it to the screen pixel-by-pixel as it is calculated. The math is fairly intense for each pixel, so it is a good judge of the power of the MCU. The display update speed is thus limited by the MCU that is doing the calculations and is not limited by the display itself.

After drawing the first screen, it waits until the touchscreen is touched and then it zooms in slightly and redraws the screen. It also reports the touch location information out to the Serial Monitor window and also reports how long it took to calculate that screen. If you want to evolve the program as an exercise, it would be interesting to use the touch coordinates to center the new zoom.

ER-TFT028A2-4 is 240x320 pixel 2.8 inch IPS TFT LCD Display Panel with ILI9341 controller IC,optional capacitive touch panel and 4-wire resistive touch panel,superior display quality,super wide viewing angle and easily controlled by MCU such as 8051, PIC, AVR, ARDUINO ARM and Raspberry PI.It can be used in any embedded systems,industrial device,security and hand-held equipment which requires display in high quality and colorful image.It supports 8080 8-bit,9-bit,16-bit,18-bit parallel,3-wire,4-wire serial spi interface. FPC with zif connector is easily to assemble or remove.Lanscape mode is also available.

Add some jazz & pizzazz to your project with a color capacitive touchscreen LCD. This TFT display is big (2.8" diagonal) bright (4 white-LED backlight) and colorful! 240x320 pixels with individual RGB pixel control, this has way more resolution than a black and white 128x64 display. As a bonus, this display has a capacitive single-touch touchscreen attached to it already, so you can detect finger presses anywhere on the screen. (We also have a resistive touchscreen version of this display with a breakout)

This is a screen for advanced hackers who like the look of the TFT screen we've put into the PiTFT, TFT shield v2 and 2.8" TFT breakout with capacitive touch. This display has 320x240 pixels and is driven with the ILI9341 chipset. The touch chip is a FT6236 which communicates over I2C. This is just the display module! No PCB is included! You can talk to this chip with SPI (4 or 3 wire), 8 bit parallel, or 16 bit parallel. It also can be put into "dot clock mode" for raw TTL signal in but we have never done this ourselves so there's no example code for that.

We're selling this module bare for those who want to integrate it into their own project. If this is your first time working with this TFT we suggest our breakout board which makes it easy to use SPI or 8-bit interfacing and also has mounting holes, level shifting, etc.. For the TFT command set, the data sheet is very complete, but we also have some Arduino code you can refer to here to get started

A 50-pin, 0.5mm pitch, top-contact FPC connector is required to connect to this screen. We show one in the photos, but it is not included! You cannot solder this connector directly to a PCB - a matching connector is required, you can pick one up here. Otherwise, you can pick up one of our 50-pin FPC breakouts and an 50-pin FPC connector and manually solder.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages