Help getting Elecrow 7 inch HMI ESP32 display working? #367
Replies: 9 comments 26 replies
-
I think you first need to know why factory image not work |
Beta Was this translation helpful? Give feedback.
-
Hi Jeff The settings Im using for the TFT are :
; Bus Settings The touch screen is working fine with :
GFX Initialisation:
. I get an exception error. Rgs |
Beta Was this translation helpful? Give feedback.
-
Just stumbled across this in the OEM support forum, I'm going to give this a go next as I can easily build with either library, |
Beta Was this translation helpful? Give feedback.
-
Hi Ron For now, I'm just happy that I have something on the screen.
|
Beta Was this translation helpful? Give feedback.
-
Hi Ron I just updated the Elecrow example code for the 7inch, using Ardunio, with the same parameters as used above (LGFX) in the equivalent call to the ArdunioGFX library and I now have the original example application working again on the device. So as we suspected the issue is with the Panel/Video parameters and not the GFX libraries. So the calls that need to be updated are below and I'm using V1.2.8 of the ArdunioGFx library, not the latest version (as per the instructions from Elecrow's Wiki) Arduino_ESP32RGBPanel bus = new Arduino_ESP32RGBPanel( Arduino_RPi_DPI_RGBPanel lcd = new Arduino_RPi_DPI_RGBPanel( |
Beta Was this translation helpful? Give feedback.
-
Just for completeness, the following calls work with the latest version of ArdunioGFX library (1.3.8) Arduino_ESP32RGBPanel bus = new Arduino_ESP32RGBPanel(
|
Beta Was this translation helpful? Give feedback.
-
Thanks and happy that I could assist, noting that I also was very keen to get the 7 inch version working to replace a very expensive 4.3" touch screen in a project that I'm updating at the moment ( http://smartcoop.tech ). Interesting display differences between the 5 and 7 inch versions and I'm no expert on TFT, but from going through the OEMs Wiki several times, I did notice that the 7 inch is using a different Display Driver (EK9716BD3/EK73002ACGB), than the other models, so that may be the cause, but a the same time its quite a large difference in the display characteristics above. Just a suggestion, (I don't have a 5 inch version), may be worth drawing on both displays a series of shapes with different primary and secondary colours, to see if the difference is related to a specific colour and therefore I/O pin assignments. Also may be worth posting to the Elecrow support wifi the above photos and example code and ask if they can explain the differences. When I get a chance, I will load your example code on my 7inch screen and then upload some photos to see if we are getting the same results. |
Beta Was this translation helpful? Give feedback.
-
Hi - Yep that thread would indicate it may not be a H/W limitation, given changing GFX library seemed to resolve the issue. I won't get to do this for at least a week, but I will let you know how I go. |
Beta Was this translation helpful? Give feedback.
-
Hi, For some reason, I still can't get the touch to work with my Squareline Studios UI. Can you point me in the right direction on why the touch might not be working? I can see my home screen of the UI on the Elecrow 7" display, but I can't get any touch functionality to work. I was having the same problem before with the Arduino GFX library... I could get the display to show up, but no touch functionality. Thank you in advance for your help. |
Beta Was this translation helpful? Give feedback.
-
I have the Elecrow 5 inch HMI ESP32 display and it works great. It's listed in the Dev-Device-Declaration under 'Elecrow Wizee-ESP32 WZ8048C050. I liked it so much I bought the 7 inch (WZ8048C070), but after hours of trying, I can't get it to work. Just get a white screen. It did come with their "factory" LVGL demo program and it was working, so I know the unit works. I also wrote small sketches to send info to serial and that works. So it comes down to the video information. It is supposed to be very similar to the 5 inch, but the 5 inch uses ILI6122 & ILI5960 driver and the 7 inch uses EK9716BD3 & EK73002ACGB driver. I've even tried reloading their factory demo program without luck. I had no problem reloading the 5 inch factory demo program on the 5 inch.
I've tried using the information from the factory demo program to recreate the Arduino_ESP32RGBPanel info, but still no luck. I wish they would provide a simple Hello World sketch instead of that bloated, overly edited factory demo.
ESP32 display-7.0 Inch HMI Display 800x480 RGB TFT LCD
https://www.elecrow.com/esp32-display-7-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html
Below is the 5 inch factory demo parameters and the Arduino_GFX dev list parameters. I can get both to work. The factory demo parameters require an older version of Arduino_GFX that comes with their libraries download. So I don't use it, I use the latest GFX_For_Arduino version from the dev list.
From the Elecrow 5 inch factory program (working - with older version of Arduino_GFX)
Arduino_ESP32RGBPanel bus = new Arduino_ESP32RGBPanel(
GFX_NOT_DEFINED / CS /, GFX_NOT_DEFINED / SCK /, GFX_NOT_DEFINED / SDA /,
40 / DE /, 41 / VSYNC /, 39 / HSYNC /, 0 / PCLK /,
45 / R0 /, 48 / R1 /, 47 / R2 /, 21 / R3 /, 14 / R4 /,
5 / G0 /, 6 / G1 /, 7 / G2 /, 15 / G3 /, 16 / G4 /, 4 / G5 /,
8 / B0 /, 3 / B1 /, 46 / B2 /, 9 / B3 /, 1 / B4 */);
Arduino_RPi_DPI_RGBPanel lcd = new Arduino_RPi_DPI_RGBPanel(
bus,
800 / width /, 0 / hsync_polarity /, 210 / hsync_front_porch /, 4 / hsync_pulse_width /, 43 / hsync_back_porch /,
480 / height /, 0 / vsync_polarity /, 22 / vsync_front_porch /, 4 / vsync_pulse_width /, 12 / vsync_back_porch /,
1 / pclk_active_neg /, 16000000 / prefer_speed /, true / auto_flush */);
5 inch from Arduino_GFX Dev list (working with latest version of GFX_For_Arduino)
Arduino_ESP32RGBPanel rgbpanel = new Arduino_ESP32RGBPanel(
40 / DE /, 41 / VSYNC /, 39 / HSYNC /, 0 / PCLK /,
45 / R0 /, 48 / R1 /, 47 / R2 /, 21 / R3 /, 14 / R4 /,
5 / G0 /, 6 / G1 /, 7 / G2 /, 15 / G3 /, 16 / G4 /, 4 / G5 /,
8 / B0 /, 3 / B1 /, 46 / B2 /, 9 / B3 /, 1 / B4 /,
0 / hsync_polarity /, 8 / hsync_front_porch /, 1 / hsync_pulse_width /, 32 / hsync_back_porch /,
0 / vsync_polarity /, 8 / vsync_front_porch /, 1 / vsync_pulse_width /, 8 / vsync_back_porch /,
1 / pclk_active_neg /, 16000000 / prefer_speed */);
Arduino_RGB_Display gfx = new Arduino_RGB_Display(800 / width /, 480 / height /, rgbpanel, 0 / rotation /, true / auto_flush */);
Now here are the 7 inch. Neither work!
From the Elecrow 7 inch factory program NOT working on reload attempts. Demo program was loaded and working when I received the display.
Arduino_ESP32RGBPanel bus = new Arduino_ESP32RGBPanel(
GFX_NOT_DEFINED / CS /, GFX_NOT_DEFINED / SCK /, GFX_NOT_DEFINED / SDA /,
41 / DE /, 40 / VSYNC /, 39 / HSYNC /, 0 / PCLK /,
14 / R0 /, 21 / R1 /, 47 / R2 /, 48 / R3 /, 45 / R4 /,
9 / G0 /, 46 / G1 /, 3 / G2 /, 8 / G3 /, 16 / G4 /, 1 / G5 /,
15 / B0 /, 7 / B1 /, 6 / B2 /, 5 / B3 /, 4 / B4 */);
Arduino_RPi_DPI_RGBPanel lcd = new Arduino_RPi_DPI_RGBPanel(
bus,
800 / width /, 0 / hsync_polarity /, 210 / hsync_front_porch /, 1 / hsync_pulse_width /, 46 / hsync_back_porch /,
480 / height /, 0 / vsync_polarity /, 22 / vsync_front_porch /, 1 / vsync_pulse_width /, 23 / vsync_back_porch /,
0 / pclk_active_neg /, 16000000 / prefer_speed /, true / auto_flush */);
7 inch attempt to recreate from the above information.
Arduino_ESP32RGBPanel rgbpanel = new Arduino_ESP32RGBPanel(
41 / DE /, 40 / VSYNC /, 39 / HSYNC /, 0 / PCLK /,
14 / R0 /, 21 / R1 /, 47 / R2 /, 48 / R3 /, 45 / R4 /,
9 / G0 /, 46 / G1 /, 3 / G2 /, 8 / G3 /, 16 / G4 /, 1 / G5 /,
15 / B0 /, 7 / B1 /, 6 / B2 /, 5 / B3 /, 4 / B4 /,
0 / hsync_polarity /, 210 / hsync_front_porch /, 1 / hsync_pulse_width /, 46 / hsync_back_porch /,
0 / vsync_polarity /, 22 / vsync_front_porch /, 1 / vsync_pulse_width /, 23 / vsync_back_porch /,
0 / pclk_active_neg /, 16000000 / prefer_speed */);
Arduino_RGB_Display gfx = new Arduino_RGB_Display(800 / width /, 480 / height /, rgbpanel, 0 / rotation /, true / auto_flush */);
Beta Was this translation helpful? Give feedback.
All reactions