Go Down

Topic: 3.5" TFT display problem (Read 4183 times) previous topic - next topic

prateekvhegde

Why did you remove the sketch.zip attachment?
Please post the sketch you are using.

I kept both image and sketch in the zip folder.

prateekvhegde

Why did you remove the sketch.zip attachment?
Please post the sketch you are using.

I kept both image and sketch in the zip folder.
Can you provide a link in the proper tags to the TFT display?

Waiting on the circuit diagram.
Waiting on the sketch in a zip archive.

I directly mounted the TFT display on the arduino uno.
What link you want?
If required I can send you the TFT display shield picture.

artisticforge

I kept both image and sketch in the zip folder. I directly mounted the TFT display on the arduino uno.
What link you want?
If required I can send you the TFT display shield picture.
The TFT shield has a manufacturer and a model number. That is what I would like to have.

In looking at the sketch in the zip archive. Why is
PaletteDepth set to Zero?

#define PALETTEDEPTH   0     // do not support Palette modes

The image labeled Figure1.bmp, is that the actual image or is that a photograph taken of the original image? To me Figure1.bmp does not look like the actual image copied to the SD card.
This looks like a photograph of the image.


><>

artisticforge

The image labeled Figure1.bmp, is that the actual image or is that a photograph taken of the original image? To me Figure1.bmp does not look like the actual image copied to the SD card.
This looks like a photograph of the image.

Okay, I found the original Tiger image.
Arduino/libraries/MCUFRIEND_kbv/extras/bitmaps/tiger_320x200x24.bmp

That tells me that Figure1.bmp is a photograph of the original tiger image, that it it NOT the original image copied to the SD card.

So no closer to understanding the problem.

May have to pull out the Newhaven Display and try it with this library and tiger image.
I should have a spare Arduino UNO around here somewhere.


><>

artisticforge

Okay, I found the original Tiger image.
Arduino/libraries/MCUFRIEND_kbv/extras/bitmaps/tiger_320x200x24.bmp

That tells me that Figure1.bmp is a photograph of the original tiger image, that it it NOT the original image copied to the SD card.

So no closer to understanding the problem.

May have to pull out the Newhaven Display and try it with this library and tiger image.
I should have a spare Arduino UNO around here somewhere.



Okay
I could not get MCUFRIEND_kbv to work with the NewHaven Display International
http://www.newhavendisplay.com/nhd43ctpshieldn-p-9520.html

MCUFRIEND_kbv would just not see the "SD" card.

Using the FTDI_FT801_master library example FT_AppImageviewer.ino and converting the original tiger BMP to a jpg using Imagemagick (Debian Stretch)

Arduino UNO
Arduino IDE 1.8.5
Debian Linux Stretch
Imagemagick

The Tiger displays very nicely on the Newhaven Display.

The NewHaven Display is the display friends gave me for my Birthday back in December 2017.
I have not decided what to do with it yet.
It has come in handy today.

None of this helps solve the issue that he is having.


><>

david_prentice

#20
Jan 04, 2018, 12:00 am Last Edit: Jan 04, 2018, 12:03 am by david_prentice
I have never made any attempt to support FT801 screens.

The clue is in the name: MCUFRIEND_kbv

You asked about PALETTEDEPTH.   A 256-colour palette takes 512 byte of SRAM.   That is too risky for a Uno running the SD library.    A 16-colour palette is fine PALETTEDEPTH = 4.  (but not any good for photos)

In practice,   you use 24-bit colour BMP or 16-bit colour BMP with an SD Card.    Colour Palettes do not offer any advantage when you have GB of storage.

David.

artisticforge

The clue is in the name: MCUFRIEND_kbv

David.
Sorry, I do not see the clue.
><>

artisticforge

The clue is in the name: MCUFRIEND_kbv

David.
i found this http://forum.arduino.cc/index.php?topic=292777.0

long read. need to look at the libraries he modified.
><>

prateekvhegde

TFT display part no I am using is : HX8357C. It is 320 * 40 display.
Is there any way I can improve the image quality???

david_prentice

You could start by explaining how you got a 200x200 BMP.
Please post the actual photo that you took of your screen displaying the tiger_320x200x24.bmp file.
Please post a photo of the pcb side of the shield.

I have never supported a HX8357C controller.   I only support HX8357-B and HX8357-D.

Please confirm that you have a HX8357-C  e.g. by pasting the output from LCD_ID_readreg sketch.

David.

artisticforge

You could start by explaining how you got a 200x200 BMP.
Please post the actual photo that you took of your screen displaying the tiger_320x200x24.bmp file.
Please post a photo of the pcb side of the shield.

I have never supported a HX8357C controller.   I only support HX8357-B and HX8357-D.

Please confirm that you have a HX8357-C  e.g. by pasting the output from LCD_ID_readreg sketch.

David.
I am curious. what are the differences between the three controllers?

your library may work with this display?
3.5 inch 480 x320 TFT LCD Touch Panel Display Module for Arduino Uno Mega2560
><>

david_prentice

The registers vary in address and funtionality.

The shield in your link should work out of the box with MCUFRIEND_kbv library.

If not,  post the output from the LCD_ID_readreg sketch

David.

prateekvhegde

You could start by explaining how you got a 200x200 BMP.
Please post the actual photo that you took of your screen displaying the tiger_320x200x24.bmp file.
Please post a photo of the pcb side of the shield.

I have never supported a HX8357C controller.   I only support HX8357-B and HX8357-D.

Please confirm that you have a HX8357-C  e.g. by pasting the output from LCD_ID_readreg sketch.

David.
LCD_ID_readreg.

Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 01 01   ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 80 00   Manufacturer ID
reg(0x0009) 00 00 61 00 00   Status Register
reg(0x000A) 00 08   Get Power Mode
reg(0x000C) 00 06   Get Pixel Format
reg(0x0061) 61 61   RDID1 HX8347-G
reg(0x0062) 61 61   RDID2 HX8347-G
reg(0x0063) 61 61   RDID3 HX8347-G
reg(0x0064) 65 65   RDID1 HX8347-A
reg(0x0065) 65 65   RDID2 HX8347-A
reg(0x0066) 65 65   RDID3 HX8347-A
reg(0x0067) 65 65   RDID Himax HX8347-A
reg(0x0070) 00 53   Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00   RD_DDB SSD1963
reg(0x00B0) B1 B1   RGB Interface Signal Control
reg(0x00B4) B5 B5   Inversion Control
reg(0x00B6) B5 B5 B5 B5 B5   Display Control
reg(0x00B7) B5 B5   Entry Mode Set
reg(0x00BF) BD BD BD BD BD BD   ILI9481, HX8357-B
reg(0x00C0) C1 C1 C1 C1 C1 C1 C1 C1 C1   Panel Control
reg(0x00C8) C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9 C9   GAMMA
reg(0x00CC) CD CD   Panel Control
reg(0x00D0) D1 D1 D1   Power Control
reg(0x00D2) D1 D1 D1 D1 D1   NVM Read
reg(0x00D3) D1 D1 D1 D1   ILI9341, ILI9488
reg(0x00D4) D5 D5 D5 D5   Novatek ID
reg(0x00DA) 00 00   RDID1
reg(0x00DB) 00 80   RDID2
reg(0x00DC) 00 00   RDID3
reg(0x00E0) E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1   GAMMA-P
reg(0x00E1) E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1   GAMMA-N
reg(0x00EF) ED ED ED ED ED ED   ILI9327
reg(0x00F2) F1 F1 F1 F1 F1 F1 F1 F1 F1 F1 F1 F1   Adjust Control 2
reg(0x00F6) F5 F5 F5 F5   Interface Control

prateekvhegde

TFT shield image. Please find the attached file.
Please help me in solving the problem guys.

The tiger image that I sent is not the original image because the original image is more than 1 mb so I am resizing it and converting to 24 bit bitamp from the paint and posting it.

david_prentice

#29
Jan 04, 2018, 07:11 pm Last Edit: Jan 04, 2018, 07:21 pm by david_prentice
What does the pcb look like?   
Can you post a photo?   
Is it red? 
Does it say "mcufriend.com" ?

Your readreg output looks a bit different to me HX8357-D output.

What ID is reported by my examples?
0x9090 means HX8357-D

David.

Edit.   Your photo is  a blue pcb.   I thought the blue 3.5 inch Uno shields always contain an ILI9481.   The Red 2.4, Blue 2.8, Red 3.5, Red 3.6 shields might contain any controller.    Hence the purpose of the library:  to work with many different controllers.

Why do you think it is HX8357-C ?

Most PC Paint programs can convert JPG or PNG photos.  e.g. reduce resolution, size, ...
People often change hi-res photos to a medium resolution for email or website.



Go Up