Problem with TFT ILI9341

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Problem with TFT ILI9341

#1 Post by mra2ko » 08 Feb 2023, 21:16

Hi,
I would like use this LCD, but I have problem...
When I connect the LCD and send example tft,txtfull,120,60,HelloWorld or tft,txtfull,50,50,2,RED,BLUE,%ip% display make what you see in pic...
Any idea, what is wrong ? Wedos D1 mini, TFT working great in other aplication
IMG_4620.JPG
IMG_4620.JPG (31.35 KiB) Viewed 2052 times
IMG_4619.JPG
IMG_4619.JPG (32.2 KiB) Viewed 2052 times

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#2 Post by Ath » 08 Feb 2023, 22:00

Is the "other application" running on that same hardware and wiring, or using another controller?
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#3 Post by mra2ko » 08 Feb 2023, 22:16

Ath wrote: 08 Feb 2023, 22:00 Is the "other application" running on that same hardware and wiring, or using another controller?
The same HW (wemosD1), but different SW - weatherduino

On the LCD are visitable "lines" and refresh rate is too slow, LCD "flashing "

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#4 Post by Ath » 08 Feb 2023, 22:33

mra2ko wrote: 08 Feb 2023, 22:16 The same HW (wemosD1), but different SW - weatherduino

On the LCD are visitable "lines" and refresh rate is too slow, LCD "flashing "
Is the hardware actually an ILI9341 or a different type?
When switching between ESPEasy and weatherduino, was the unit power-cycled? As the weatherduino software may use a different initialization, that may only be reset by a power-cycle.
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#5 Post by mra2ko » 08 Feb 2023, 22:43

Ath wrote: 08 Feb 2023, 22:33
mra2ko wrote: 08 Feb 2023, 22:16 The same HW (wemosD1), but different SW - weatherduino

On the LCD are visitable "lines" and refresh rate is too slow, LCD "flashing "
Is the hardware actually an ILI9341 or a different type?
When switching between ESPEasy and weatherduino, was the unit power-cycled? As the weatherduino software may use a different initialization, that may only be reset by a power-cycle.
Yes, it is ILI9341, I tested 5 the sames LCD but different date of buy, the same issue...
Yes, bettwen flashing was be all switch off
FW is latest...

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#6 Post by Ath » 08 Feb 2023, 23:11

My current ILI9341 is working nicely.
I needed another display, so I ordered a similar 2.8" ILI9341 display from Aliexpress, but it will take a few weeks to arrive. After it arrives I'll do some tests.
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#7 Post by mra2ko » 09 Feb 2023, 07:43

Ath wrote: 08 Feb 2023, 23:11 My current ILI9341 is working nicely.
I needed another display, so I ordered a similar 2.8" ILI9341 display from Aliexpress, but it will take a few weeks to arrive. After it arrives I'll do some tests.
Can you post setup page of lcd ? Maybee somethig have wrong..
Thank

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#8 Post by Ath » 09 Feb 2023, 08:35

If your hardware setup would be wrong you wouldn't get anything useful on your screen, so I'm quite confident it's not that.
Just be sure the GPIO pins are not (also) configured at another task.
Only the generic SPI pins (MISO, MOSI, CLK) can be shared with other SPI devices, like the XPT2046 touch screen, but they both require separate CS, DC and RST pins. Backlight can either be controlled from the plugin or pulled high.

There are several options for display type, you could try different options there.
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#9 Post by mra2ko » 09 Feb 2023, 12:43

Ath wrote: 09 Feb 2023, 08:35 If your hardware setup would be wrong you wouldn't get anything useful on your screen, so I'm quite confident it's not that.
Just be sure the GPIO pins are not (also) configured at another task.
Only the generic SPI pins (MISO, MOSI, CLK) can be shared with other SPI devices, like the XPT2046 touch screen, but they both require separate CS, DC and RST pins. Backlight can either be controlled from the plugin or pulled high.

There are several options for display type, you could try different options there.
Problem solved... I try other MCU and working... The same FW, the same wiring, the same LCD, pfff

So one question about rule...

When try this, all working, on lcd is example -8.0C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog]C

But I need make space bettwen [analog2#Analog] and C, when i make this, on LCD show only C without the value before, i would like on LCD -8.0 C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog] C


The same problem is with text before [analog2#Analog]
For example:

tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,Home[analog2#Analog]C

wotking but next one show only value without "home"

tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,Home [analog2#Analog]C



Where is problem ?
Thank

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#10 Post by Ath » 09 Feb 2023, 13:08

mra2ko wrote: 09 Feb 2023, 12:43 Problem solved... I try other MCU and working... The same FW, the same wiring, the same LCD, pfff
I didn't suggest that yet, because of first exploring the more common causes.

Great that it's solved.

mra2ko wrote: 09 Feb 2023, 12:43 So one question about rule...

When try this, all working, on lcd is example -8.0C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog]C

But I need make space bettwen [analog2#Analog] and C, when i make this, on LCD show only C without the value before, i would like on LCD -8.0 C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog] C
You need to add quotes around the part that contains spaces or commas, see: https://github.com/letscontrolit/ESPEasy/issues/2724

Code: Select all

   tft,txtfull,15,210,3, white,black,"[analog2#Analog] C"
   // Alternatively
   tft,txtfull,15,210,3, white,black,"[analog2#Analog]{D}C" // with the degrees symbol included, no quotes required here
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#11 Post by mra2ko » 09 Feb 2023, 14:24

Ath wrote: 09 Feb 2023, 13:08
mra2ko wrote: 09 Feb 2023, 12:43 Problem solved... I try other MCU and working... The same FW, the same wiring, the same LCD, pfff
I didn't suggest that yet, because of first exploring the more common causes.

Great that it's solved.

mra2ko wrote: 09 Feb 2023, 12:43 So one question about rule...

When try this, all working, on lcd is example -8.0C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog]C

But I need make space bettwen [analog2#Analog] and C, when i make this, on LCD show only C without the value before, i would like on LCD -8.0 C
tft,txtfull,40,185,2, white,black,Home
tft,txtfull,15,210,3, white,black,[analog2#Analog] C
You need to add quotes around the part that contains spaces or commas, see: https://github.com/letscontrolit/ESPEasy/issues/2724

Code: Select all

   tft,txtfull,15,210,3, white,black,"[analog2#Analog] C"
   // Alternatively
   tft,txtfull,15,210,3, white,black,"[analog2#Analog]{D}C" // with the degrees symbol included, no quotes required here


I didnt think to change it either, when it worked with another fw, haha :D
Super, thank to info about the " " " " " :)

I have set timer to 10s now, is it normal that the entire page "flashes" when loading the values?

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Problem with TFT ILI9341

#12 Post by Ath » 09 Feb 2023, 15:02

mra2ko wrote: 09 Feb 2023, 14:24 I have set timer to 10s now, is it normal that the entire page "flashes" when loading the values?
That depends partly on the "Text print mode" setting.
But you might want to:
- Use a single command to write the text and the data, instead of label and data separate, that should execute faster, and only clear the line once
- or, only update the display if it has changed
- or, only update the changing parts of the data (the numbers).
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Problem with TFT ILI9341

#13 Post by mra2ko » 13 Feb 2023, 22:50

Ath wrote: 09 Feb 2023, 15:02
mra2ko wrote: 09 Feb 2023, 14:24 I have set timer to 10s now, is it normal that the entire page "flashes" when loading the values?
That depends partly on the "Text print mode" setting.
But you might want to:
- Use a single command to write the text and the data, instead of label and data separate, that should execute faster, and only clear the line once
- or, only update the display if it has changed
- or, only update the changing parts of the data (the numbers).
Ok, I know now, thank !

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests