rzeldent / esp32-smartdisplay-demo

Demo project for esp32-smartdisplay
GNU General Public License v3.0
69 stars 24 forks source link

Adding new 7" RGB display ESP32 EA7013 #37

Open eagl1 opened 2 months ago

eagl1 commented 2 months ago

Hi,

I received this ESP32-EA7013 display from Aliexpreess, I tried to match its settings with the similar RGB display ESP32-8048S043C, as I contacted the manufacturing source:

https://www.eya-display.com/ea7013-s3/

And I asked them for resource files and they gave me the schematic, general manual for the display and ESP-IDF code.

They even didn't tell me what driver IC the display is using and they told me becuase it's RGB display it doesn't need configuration initialization commnads, but from the schematic it's similar to the one used in ESP32-8048S043C.

Now in your platformio, how to copy another board package and edited it to fit the display ?

rzeldent commented 1 week ago

Hi eagl,

Looks like a nice display! I assume https://www.aliexpress.com/item/1005006484114641.html.

It is preinstalled with micro-python, an esp32-s3, tn panel, however at first glance I could not find more specifications/schematics/graphics driver. Adding this board should then (if there is no new display driver required) limited to adding a definition file.

You could just take the ESP32-8048S043C.json and copy this to ESP32-EA7013.json and do some testing in there. Remember to rebuild the library (remove in .pio directory) after making changes to the definitions.

Goog luck and I can add the definition if it is working!

Can you attach the specifications to make a better assessment?

To integrate

eagl1 commented 1 week ago

To me I got it for half the price in the Aliexpress link you provided, and shipped to me to Saudi Arabia.

Yes, I got it to work first in the ESP-IDF, then I copied the pin assignment to the Arduino code and it worked.

One time the module didn't work and also didn't have boot button, so I had to pull IO0 to GND manually and it worked and I was able to reprogram it.

EA7013.pdf 亦亞徽EA7013-S3-TN规格书.pdf

The attached files are all I got from the seller. I think it's very similar to the yellow 7" on Aliexpress.

eagl1 commented 1 week ago

OK, I got the necessary settings to get it to work on Arduino. Based on GFX_Library_for_Arduino-1.4.x:

  1. Install ESP32 board manager from espriff 2.0.17. If you want to work with ESP32_Display_Panel-master then ESP32 3.0.X board package should work.
  2. Enable PSRAM OPI.
  3. CH340 may not be important but CH340 2019 version worked with me.
  4. Maybe you might need to press boot button maybe at least once, in my case I must pull IO0 to GND manaully.

This also will work with ESP32_8048S043 display too.

eagl1 commented 1 week ago

These the pin settings from ESP-IDF:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ESP-IDF IDE RGB setting
// 7"
#define EXAMPLE_LCD_PIXEL_CLOCK_HZ     (15 * 1000 * 1000)
#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL  1
#define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL
#define EXAMPLE_PIN_NUM_BK_LIGHT       1
#define EXAMPLE_PIN_NUM_HSYNC          4
#define EXAMPLE_PIN_NUM_VSYNC          2
#define EXAMPLE_PIN_NUM_DE             5
#define EXAMPLE_PIN_NUM_PCLK           6
#define EXAMPLE_PIN_NUM_DATA0          14 // B0
#define EXAMPLE_PIN_NUM_DATA1          21 // B1
#define EXAMPLE_PIN_NUM_DATA2          47 // B2
#define EXAMPLE_PIN_NUM_DATA3          48 // B3
#define EXAMPLE_PIN_NUM_DATA4          45 // B4
#define EXAMPLE_PIN_NUM_DATA5          46 // G0
#define EXAMPLE_PIN_NUM_DATA6          9  // G1
#define EXAMPLE_PIN_NUM_DATA7          10 // G2
#define EXAMPLE_PIN_NUM_DATA8          11 // G3
#define EXAMPLE_PIN_NUM_DATA9          12 // G4
#define EXAMPLE_PIN_NUM_DATA10         13 // G5
#define EXAMPLE_PIN_NUM_DATA11         7  // R0
#define EXAMPLE_PIN_NUM_DATA12         15 // R1
#define EXAMPLE_PIN_NUM_DATA13         16 // R2
#define EXAMPLE_PIN_NUM_DATA14         8  // R3
#define EXAMPLE_PIN_NUM_DATA15         3  // R4
#define EXAMPLE_PIN_NUM_DISP_EN        -1
rzeldent commented 6 days ago

Hi Eagl1,

I made a definition for the board: https://github.com/rzeldent/platformio-espressif32-sunton/blob/ea7013/esp32-EA7013S3TN.json

If you put this board definition (or do a submodule on the ea7013 branch from https://github.com/rzeldent/platformio-espressif32-sunton) you can use it.

The settings for the display are in there but do not known the display timings. e.g. TIMINGS_HSYNC_PULSE_WIDTH etc... So do not expect it to work. However, you can modify the values there and recompile and tinker a bit. I added the speaker but the touch and TF also need to be defined. As I do not own the board it is hard to help but at least you have a starting point!

Good luck and let me know about your progress!

eagl1 commented 6 days ago

I wish I posted the Arduino ESP32RGGBPanel object, it has the other necessary settings:

Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
    5 /* DE */, 2 /* VSYNC */, 4 /* HSYNC */, 6 /* PCLK */,
    7 /* R0 */, 15 /* R1 */, 16 /* R2 */, 8 /* R3 */, 3 /* R4 */,
    46 /* G0 */, 9 /* G1 */, 10 /* G2 */, 11 /* G3 */, 12 /* G4 */, 13 /* G5 */,
    14 /* B0 */, 21 /* B1 */, 47 /* B2 */, 48 /* B3 */, 45 /* B4 */,    

    0 /* hsync_polarity */, 10 /* hsync_front_porch */, 16 /* hsync_pulse_width */, 32 /* hsync_back_porch */,
    0 /* vsync_polarity */, 15 /* vsync_front_porch */, 3 /* vsync_pulse_width */, 12 /* vsync_back_porch */,
    1 /* pclk_active_neg */, 15000000 /* prefer_speed */);

Anyway I''m working on it.

I compiled it and this is the result:

Environment         Status    Duration
------------------  --------  ------------
esp32-1732S019C     SUCCESS   00:00:12.240
esp32-1732S019N     FAILED    00:00:37.150
esp32-2424S012C     FAILED    00:00:21.772
esp32-2424S012N     FAILED    00:00:21.425
esp32-2432S022N     FAILED    00:00:21.160
esp32-2432S022C     FAILED    00:00:20.015
esp32-2432S024C     FAILED    00:00:19.229
esp32-2432S024N     FAILED    00:00:18.844
esp32-2432S024R     FAILED    00:00:20.040
esp32-2432S028R     FAILED    00:00:20.489
esp32-2432S028Rv2   FAILED    00:00:19.502
esp32-2432S028Rv3   FAILED    00:00:18.780
esp32-2432S032C     FAILED    00:00:19.833
esp32-2432S032N     FAILED    00:00:24.266
esp32-2432S032R     FAILED    00:00:21.680
esp32-3248S035C     SUCCESS   00:00:18.613
esp32-3248S035R     FAILED    00:00:19.805
esp32-4827S043C     FAILED    00:00:18.718
esp32-4827S043R     FAILED    00:00:18.004
esp32-4827S043N     FAILED    00:00:19.959
esp32-4848S040CIY1  FAILED    00:00:19.234
esp32-4848S040CIY3  FAILED    00:00:19.103
esp32-8048S043C     SUCCESS   00:00:08.238
esp32-8048S043N     FAILED    00:00:18.510
esp32-8048S043R     FAILED    00:00:17.936
esp32-8048S050C     FAILED    00:00:18.998
esp32-8048S050N     FAILED    00:00:17.404
esp32-8048S050R     FAILED    00:00:20.766
esp32-8048S070C     FAILED    00:00:24.045
esp32-8048S070N     FAILED    00:00:19.107
esp32-8048S070R     FAILED    00:00:19.068
esp32-EA7013        FAILED    00:00:09.104
=========================== 29 failed, 3 succeeded in 00:10:23.037 ===========================
 *  The terminal process "C:\Users\eagle\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

The ones succeeded are the ones I have except the first one and esp32-EA7013.

I think I will delete it and download a new one.

eagl1 commented 6 days ago

How to only compile specific boards ?

eagl1 commented 6 days ago

Which one I should download ?

image

rzeldent commented 6 days ago

How to only compile specific boards ?

In comment the board at the start of the file platformio.ini

rzeldent commented 6 days ago

Which one I should download ?

image

The demo application but change the sub module reference to the branch ea7013

eagl1 commented 6 days ago

How to only compile specific boards ?

In comment the board at the start of the file platformio.ini

You mean I comment the board I don't want to uncomment the board I want ?

eagl1 commented 1 day ago

Is the esp32-1732S019C, required as a dependency ?

Because when I launch VS code I get this message:

Resolving esp32-1732S019C dependencies...
UnknownBoard: Unknown board ID 'esp32-1732S019C'

image

As it clear I'm commenting all the boards except esp32-8048S043C. Am I on the right path ?

I still don't know how to compile the project at this point ?