Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ILI9481 troubles ... not working in SPI 4 wires (or 3 wires) #968

Closed
Koxx3 opened this issue Jan 30, 2021 · 9 comments
Closed

ILI9481 troubles ... not working in SPI 4 wires (or 3 wires) #968

Koxx3 opened this issue Jan 30, 2021 · 9 comments

Comments

@Koxx3
Copy link

Koxx3 commented Jan 30, 2021

Hello !

I am struggling with my ILI9841.
Vendor link : https://fr.aliexpress.com/item/32829704426.html?spm=a2g0s.9042311.0.0.7e9d6c372FZSoE

I am using an FPC adapter.

I wired the screen with this configuration :
image

WARNING : I am not sure about the wiring ... chinese documentation... Is SPI_A0 = TFT_DC ?

I launched the "Read_User_Setup" with this result :
`
[code]
TFT_eSPI ver = 2.3.59
Processor = ESP32
Frequency = 240MHz
Transactions = Yes
Interface = SPI
Display driver = 9481
Display width = 320
Display height = 480

MOSI = GPIO 23
MISO = GPIO 19
SCK = GPIO 18
TFT_CS = GPIO 22
TFT_DC = GPIO 2
TFT_RST = GPIO 17

Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Font 7 loaded
Font 8 loaded
Smooth font enabled

Display SPI frequency = 20.00
[/code]`

Nothing is visible on the screen with this one or another sketch.

Any help please ?

@Koxx3 Koxx3 changed the title ILI9481 troubles ... not working ILI9481 troubles ... not working in SPI 4 wires (or 3 wires) Jan 30, 2021
@Koxx3 Koxx3 closed this as completed Jan 30, 2021
@Koxx3 Koxx3 reopened this Jan 30, 2021
@Koxx3
Copy link
Author

Koxx3 commented Jan 30, 2021

2 more informations :

  • I tested IM1 at 3.3V and GND, no change
  • I use "Setup21_ILI9488" but I forced ILI9481

@Koxx3
Copy link
Author

Koxx3 commented Jan 30, 2021

ok, it finally works. It was a speed issue. I cannot go higher than 15MHz. may be the wire lenght (20cm) ?
or any idea why ?

@Bodmer
Copy link
Owner

Bodmer commented Jan 30, 2021

Well done for finding the solution so fast.

The display data sheet here page 138 indicates a maximum rated speed of 10MHz (100ns write cycle time) so it looks like the ILI9481 cannot be overclocked by much. Some more recently designed displays (ST7796) have a higher rated speed ~25MHz but work reliably at 40MHz (and sometimes up to 80MHz).

Long wires can have an effect and a short (or multiple) GND lines help. IF thet are long (>150mm) try reducing wires to 100mm or less if you can. It may not make much difference though if the limiting factor is the ILI9481 display.

@Bodmer
Copy link
Owner

Bodmer commented Jan 30, 2021

You will be able to update the display faster if you use 8 bit parallel connections since the write cycle is still 100ns (10MHz), then 8 bits are being loaded in the same period instead of 1. The library does not support 16 bit parallel interfaces.

ILI9481 displays are available in UNO format and can be plugged into a UNO style ESP32. If you do this, note the modifications given in the ReadMe.

@Koxx3
Copy link
Author

Koxx3 commented Jan 30, 2021 via email

@Koxx3
Copy link
Author

Koxx3 commented Jan 30, 2021 via email

@Bodmer
Copy link
Owner

Bodmer commented Jan 30, 2021

It looks liek display prices have increased significantly over the las tfew months due parts shortages. This is the ST7796S SPI display I mentioned. Unfortunately these seem scarce these days and the ones that are available have doubled in price. There is a design fault on them but this is quite easily fixed, see discussion here.

The RPi MHS 4.0 display is good too as it has a controller than seems to work at 80MHz SPI rate with the ESP32 (40MHz with ESP8266).

@Koxx3
Copy link
Author

Koxx3 commented Jan 30, 2021

ok, if it's only the touch driver, I don't care, I don't need it ;)
I'll look at the RPi MHS.

thanks for your feedback.

@Bodmer Bodmer added the Solved label Jan 30, 2021
@Bodmer Bodmer closed this as completed Jan 30, 2021
@beckmx
Copy link

beckmx commented Oct 11, 2022

@Koxx3 hello there, the pinout for the IM0, IM1 etc were left as in the original post?, I noticed I bought a screen and I was given the same table u did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants