Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 21:38 10 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : New 4 inch LCD

     Page 2 of 12    
Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 10:01pm 15 Mar 2024
Copy link to clipboard 
Print this post

Having bought one of these it prompted me to get out a couple of ILI9488 3.5" displays that I have. I loaded the driver OK and tested both the panels OK, but when I do the GUI CALIBRATE it comes up Portrait no matter whether I set L or P. Then when I touch the second target I get an error Touch Hardware Failure. Both panels are the same, I'm suspecting faulty panels ?
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1652
Posted: 11:40pm 15 Mar 2024
Copy link to clipboard 
Print this post

dunno, only got one 4 inch but got the resistor diode addon. seems necessary for touch and sd card but dunno, mine works with resistor diode combo and ili 9341 is interchangeable pin for pin and works.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3022
Posted: 12:45am 16 Mar 2024
Copy link to clipboard 
Print this post

  palcal said  GUI CALIBRATE ... Touch Hardware Failure


Have you done the resistor + diode + pin clip as shown in Peter's photo?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 02:05am 16 Mar 2024
Copy link to clipboard 
Print this post

@ lizby.......Yes did that
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1805
Posted: 03:40am 16 Mar 2024
Copy link to clipboard 
Print this post

This works well for me.
Note the RLANDSCAPE in the Options. See if that makes a difference.
Edit
Another thing to try is copy my calibration first then re-calibrate if needed.
GUI CALIBRATE 0, 3820, 408, -1306, 946

Edited 2024-03-16 13:52 by phil99

Footnote added 2024-04-15 11:52 by phil99
The 4" IPS ILI9488 is different to the panel above. The resistors near the SD socket are 4.7k pull-ups. R8 on SDO must be removed if the SD card sharing SPI with the LCD panel. Otherwise the 10k (can be 4.7k to 10k) is unable to pass SDO to MISO.

You can use other diodes provided they have sufficient junction capacitance.
eg 1N400x series rectifiers work but 1N914 and 1N4148 don't unless you add 22pF to 150pF in parallel.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 04:25am 16 Mar 2024
Copy link to clipboard 
Print this post

@ phil99.....tried that, still no go. They have to be dud panels.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
morgs67
Regular Member

Joined: 10/07/2019
Location: Australia
Posts: 71
Posted: 05:23am 16 Mar 2024
Copy link to clipboard 
Print this post

This is another of phil99 solutions-
https://www.thebackshed.com/forum/ViewTopic.php?TID=11419&PID=191429
tony
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1805
Posted: 06:03am 16 Mar 2024
Copy link to clipboard 
Print this post

Yes, that does work and used it for quite a while but further down that thread I found just 10kΩ and 1N5819 works the same.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8600
Posted: 07:29am 16 Mar 2024
Copy link to clipboard 
Print this post

  Quote  @ lizby.......Yes did that


Did you remove the T_CS pin as in my picture?
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 815
Posted: 07:47am 16 Mar 2024
Copy link to clipboard 
Print this post

Have you connected the LCD to 3V3 or 5V? I operate mine at 3V3 and first had to close the solder jumper J1. Otherwise the TOUCH chip and the SD card holder are not supplied with voltage.

Can you post a picture of your circuit board?

Frank
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 08:24am 16 Mar 2024
Copy link to clipboard 
Print this post

I'm running on 5V. I have connected other displays to this board and they all work fine.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8600
Posted: 09:03am 16 Mar 2024
Copy link to clipboard 
Print this post

I realised that in the editor, with the exception of SSD1963 displays which support H/W scrolling, it was much quicker to redraw the whole screen rather than the current read/write mechanism that the scroll function uses.

The attached (PicoMite only at the moment) implements this in the editor and makes editing on a ILI9488/ILI9341/ST7789_320 MUCH faster. Please try the attached and let me know how you get on.

Unfortunately, this does nothing for scrolling a SPI screen at the command prompt. This will still be very slow (about 1 second per line on a ILI9488)


PicoMite.zip
Edited 2024-03-16 19:09 by matherp
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 815
Posted: 09:17am 16 Mar 2024
Copy link to clipboard 
Print this post

  palcal said  I have connected other displays to this board and they all work fine.


I meant a picture of the PCB of your LCD display. I first had to close the solder jumper J1 there.

You can see the solder jumper at the bottom left of this picture.

(In this picture, the touch chip is not fitted!)

YOU MAY THEN ONLY CONNECT 3V3 AS VCC!!!

Frank
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 414
Posted: 09:58am 16 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Thanks for the editor scrolling update, unfortunately I don't yet have a 9488 display, should be able to test next week maybe.
Would this update, if implimented fully, do anything to allow 9481 type displays to be used as a console? I'm suspecting not, because you will still need the panel read/write for other functionality.
Regards Kevin.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8600
Posted: 10:03am 16 Mar 2024
Copy link to clipboard 
Print this post

  Quote  Would this update, if implemented fully, do anything to allow 9481 type displays to be used as a console?


No: it works on the ILI9488/ILI9341/ST7789_320 which are the only SPI displays with reliable read which is, as you surmise, needed for full console functionality.

One could envisage having a "ascii" framebuffer in memory holding text but it would take away a biggish chunk of memory and is a pretty complicated bit of code to implement with colour support
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2870
Posted: 10:38am 16 Mar 2024
Copy link to clipboard 
Print this post

Hi Bleep, All,

  Bleep said  Mick, the big one,
Does this screen still need the resistor diode mod to get it working properly.


I, and I think AndrewG, don’t try to read from the display and indeed cut the Miso pin off from the TFT (keep it for touch). We don’t use it for console and for what we use them for super speed is not a requirement.

What I really like about the display is that they seem to be super bright and clear colours compared to many smaller displays. The touch screen also seems more responsive than, say, the 2.8” modules.

For our aging eyes the size is perfect.

For our applications it is brilliant, if you want to play pac kong, or donkey man, then I can’t advise as to its suitability speed wise and whether you can read with the resistor/diode hack.

Kind Regards,

Mick




.
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 414
Posted: 03:58pm 16 Mar 2024
Copy link to clipboard 
Print this post

Hi Peter,
Suddenly realised I do have a ILI9341 panel 240x320, so have tested your new firmware on that, scrolling in editor noticeably faster. :-) Hopefully next week I'll be able to try a ILI9488 panel 320x480, see how that now look. Thanks.
Regards Kevin.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3022
Posted: 04:37pm 16 Mar 2024
Copy link to clipboard 
Print this post

  matherp said  ILI9488 ... MUCH faster. Please try the attached and let me know how you get on.


Super. In the editor, with an ILI9488, single line scroll up or down is about as fast as I can hit the arrow key. With the arrow key held down, it appears to scroll at about 2 lines per second--maybe a little faster.

It was usable before, but this is superior. Thanks.

My options:
> option list
PicoMite MMBasic Version 5.09.00b6
OPTION SERIAL CONSOLE COM1,GP0,GP1
OPTION SYSTEM SPI GP2,GP3,GP4
OPTION SYSTEM I2C GP10,GP11
OPTION CPUSPEED  252000 'KHz
OPTION LCDPANEL CONSOLE
OPTION DISPLAY 26, 60
OPTION LCDPANEL ILI9488, LANDSCAPE,GP20,GP19,GP18
OPTION GUI CONTROLS 40
OPTION TOUCH GP21,GP22
GUI CALIBRATE 0, 3950, 3882, -1244, -859
OPTION SDCARD GP5
OPTION RTC AUTO ENABLE
>


~
Edited 2024-03-17 02:40 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8600
Posted: 05:16pm 16 Mar 2024
Copy link to clipboard 
Print this post

Here is another experimental tweak - try things like LIST, LIST COMMANDS, LIST FUNCTIONS

Then there is a new optional setting for OPTION LCDPANEL CONSOLE - "NOSCROLL"

OPTION LCDPANEL CONSOLE [,font [,foregroundcolour] [,backgroundcolour] [,defaultbacklightsetting] [,NOSCROLL]]


e.g.
OPTION LCDPANEL CONSOLE 1,,,,NOSCROLL

If NOSCROLL is set whenever text gets to the bottom of the display rather than scrolling the screen will be cleared and output will continue at the top of the display. This will work in a program or at the command prompt.

Together with the edit mod this option will allow displays that don't support reading their framebuffer to act as console devices. This isn't implemented yet and won't be for a few days as I'm away from home and can't test.

Have a play and let me know what you think.


PicoMite.zip
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 815
Posted: 05:38pm 16 Mar 2024
Copy link to clipboard 
Print this post

Peter, that's really cool!      

Can you also create a USB version? Then I can test it!

Frank
 
     Page 2 of 12    
Print this page
© JAQ Software 2024