-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Solved: ESP32 ILI9486 - Parallel 8 Bit - Blank Screen & TFT_DC issue #2120
Comments
That is very odd behaviour. List all the connections you have made between the processor and display. Post a picture of the wiring. Run the Read_User_Setup sketch and post the serial output here. |
OK, sounds like the vendors page is wrong. In the 'Read_User_Setup' results, the reset pin should be listed as pin 5. Looks like that is the connected yellow wire so it MUST be defined. Check your setup file is correct and includes: #define TFT_RST 5 If that does not fix it then I would connect the CS line to a pin and define it in the setup, the display can get garbage commands if that is tied low (depending on the EMC noise in your environment). Ideally the regulator on the board needs 5V unless you have added a bypass link on J1. |
OK... done, but sadly, nothing changed What I did and tested in 3 successives steps, adding :
So to be neat, I end with RST -> 5, CS ->18 and VDD -> 5v |
Run Read_User_Setup again and confirm it is listed. The symptoms suggest a bad connection, replace wires. I have just tried an ILI9486 and it is working fine, my setup file:
A possibility is that your display cannot handle the timing of the signals, the ILI9486 has one of the slowest displays interface timings especially during DC switching. There are extra delays that can be switched in on some signals by editing the code, and removing the // here and here. I assume you are using the Arduino IDE. Other than that maybe the display you have needs a slightly different init sequence but that is just a guess. |
These are the test results I get for comparison, adjusting the timings with extra delays will increase the times.
|
Thanks for the big help and wasted time :) OK I m going to try every case, and see what could work. I come back when it is done to provide results, but this time... it will need little while ;) |
OK, I proceed tests with differents steps, once by once, with new wires :
It was nice to play with delays, I looked into the code yesterday, but did not find the init sequence. However, I saw a video with the graphic Adafruit test, between TFT_eSPI and LovyanGFX, and brenchmark were pretty close, so I doubted to add delays could solve the issue, but the test has been done ;) Sadly it seems to confirm that a slightly different init sequence is needed :S current Read_User_Setup results :
|
For info, but I do not think that could change something? The MCU I have is a WROOM-32D I was thinking, maybe just to add some delays at the init sequence? All seems to confirm an issue at this moment, like everything working fine later, after I "played" with the DC ? PS I m working with Arduino IDE |
OK, I modified a bit the code from the init part in "ILI9486_Init.h" and it is working perfect, I am doing some more test and I ll be back to tell about it ;) |
Right I tried, with different pinouts, and different sketches, it is working fine, but I can't try with other display or CMU, I don't have others. Would be nice to perform tests with other hardwares... The modification is in the "TFT_Drivers/ILI9486_init.h" file, at the line 24
to add 2 others commands about Power Control 1, 0xC0 and Power Control 2, 0xC1
Accorded to the Datasheet, Power consumption could been reduced by setting BT for the Power Control2, till 0x70, so we could have 0x71 for the 1st data byte Here the "User_Setup.h" for the last test with VDD to 3.3v :
Here the sketch "Colour_test" lightly modified :
|
Well done for finding the solution. I will try the extra commands in my display and add them to the init sequence. |
Glad if that can help, the change should be secured, I looked at the difference with another driver and also at the datasheet. Thank you for the library, I m gonna play with sprites to relax :) Best regards |
I have tried my display with the following power control init sequence:
And it still works fine. Does your display work OK if the command 0xC2 setting is not commented out? |
With the current values for Power Control 3 (0x44) this is not working with my display. I played a bit further with the values, trying to adjust them better :
Inreasing Control Power 3 will increase current consumption, this why I tried to compensate with Power Control 1, but it was indeed working with the last values
So for Power Control 3, changing 0x44 -> 0x55 is enough for my display to work REF http://www.lcdwiki.com/res/MRB3503/ILI9486_Datasheet.pdf |
Thanks I have updated the Github master with these settings:
|
Dear Sir, I am using ESP32 Uno and ILI9486 shield in 8-bit mode. PJ. |
Hello,
I am facing a strange issue at startup with my screen. I tired the screen with others libraries running ILI9486 in 8bits parallel and it s working fine. So to make it simple, I use the sketch "Color_test.ino" from your library.
May you have an idea for a little help?
The text was updated successfully, but these errors were encountered: