AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Andy_68
Normal user
Posts: 10
Joined: 29 May 2022, 09:28

AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#1 Post by Andy_68 » 01 Nov 2024, 09:29

I recently bought this interesting device that I wanted to use as a minimal display to manage some devices in my home automation that is currently controlled with Domoticz on Rpi3B+. I tried using the ESP_Easy_mega_20240822_display_ESP32s3 version but although the toutch seems to be alive, I can't see anything on the display.
I read that currently the driver for AXS15231 has not been verified yet.
Has anyone else had a chance to use it yet ?
Attachments
主图07.jpg
主图07.jpg (354.89 KiB) Viewed 1341 times
主图04.jpg
主图04.jpg (134.66 KiB) Viewed 1341 times
JC3248W535-2.png
JC3248W535-2.png (104.12 KiB) Viewed 1341 times
JC3248W535-1.png
JC3248W535-1.png (83.42 KiB) Viewed 1341 times

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#2 Post by Ath » 01 Nov 2024, 11:50

There are many new variations of this type of devices, based on ESP32-S3 and an 8 or 16 bit parallel interface to the display (most likely because of the high number of available GPIO pins on the S3 chip and the potentially fast response-times).
Currently, ESPEasy does not yet support that type of interface. I have started some work on implementation, but that's been stalled... :?

NB: What type of Touch-device did you find on this unit, capacitive or resistive?
/Ton (PayPal.me)

TD-er
Core team member
Posts: 9360
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#3 Post by TD-er » 01 Nov 2024, 11:52

Hmm it is a bit confusing how the display is connected.
The touch part is clearly using I2C with an interrupt pin.
However the display itself seems to be using SPI. The text suggests QSPI (which makes sense as it allows for faster transfers)
But I am not yet sure if the flash is also connected to the same SPI bus.
It looks like it is sharing a clock on pin IO42 (hard to read on the schematic screenshot) with chip U4 which I assume is the flash chip???

If so, then this adds quite a lot of complexity to make it work as you cannot use code which needs access to the flash chip while writing to the display.

So can you tell which pins are connected to the display and what is chip U4 ?

Andy_68
Normal user
Posts: 10
Joined: 29 May 2022, 09:28

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#4 Post by Andy_68 » 01 Nov 2024, 12:37

Hi, from description on user manual i saw.

This LCD module uses ESP32-S3-WROOM-1 module as the main control, the
main control is a dual-core MCU, integrated WI-FI and Bluetooth functions, the main
frequency can reach 240MHz, 512KB SRAM, 384KB ROM, 8M PSRAM,Flash size is
16MB, The display resolution is 320*480, Capacitive touch. The module includes LCD
display screen, backlight control circuit, touch screen control circuit . Reserve the TF
card interface ,Up to 12 IO available, this module supports development in arduino
IDE, ESP IDE, Micropython and Guition.


Probably U4 is the audio power amplifier.

If needed, in Github, also forked on my profile, there are the scripts that they compile in Arduino with platformio.
I haven't started to look inside it yet, but they having diulgated the sources I don't think thet is an impossible
mission to integrate the display, perhaps for a local control, since the device on EspEasy already has web server.

This device is cheaper i paid about €15 on Aliexpress.

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#5 Post by Ath » 01 Nov 2024, 13:10

Ah, the display seems to be SPI, indeed, hadn't looked close enough.
Most likely chance of getting at least something on the display is by using P095, with the ILIxxxx TFT displays, or else try P116 with the ST77xx TFT displays. (NB: There is no auto-detect, you'll need to try all options until one works.

You may need to enable the backlight, the control for that is on GPIO-1, AFAICS, you can try to give a 'gpio,1,1' or 'gpio,1,0' command, to see if it that could help. Configuring it as the Backlight pin in the task and setting that to 50% is also a good way to start.
/Ton (PayPal.me)

Andy_68
Normal user
Posts: 10
Joined: 29 May 2022, 09:28

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#6 Post by Andy_68 » 01 Nov 2024, 17:38

Despite the doubts I tried the video drivers present.
In my opinion different drivers should be used.
I'm investigating I see that in the attached documents they specify QSPI and #include <lvgl.h> for management.
Here only a small part of the code distribuited with device for demo
Attachments
DEMO_LVGL.7z
(27.27 KiB) Downloaded 64 times

TD-er
Core team member
Posts: 9360
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#7 Post by TD-er » 01 Nov 2024, 22:03

Hmm that is a completely different driver from what we use for all the other displays.

Usually other drivers also means a completely different programming interface, so hardly any code re-use over existing plugins.

So Ton probably has to compare those drivers to see if the current one we use can be adapted and how much work this entails.

Andy_68
Normal user
Posts: 10
Joined: 29 May 2022, 09:28

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#8 Post by Andy_68 » 05 Nov 2024, 18:29

Here https://github.com/moononournation/Arduino_GFX there is an interesting library witen for arduino.

TD-er
Core team member
Posts: 9360
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#9 Post by TD-er » 05 Nov 2024, 19:45

Just at first glance, it looks indeed like an interesting library.
As in it claims to support a lot of displays and claims to be derived from a number of existing libraries among which the one we are using for several plugins.

However, I do not see anywhere whether it can be used with Arduino 3.x/ESP-IDF5.x, no idea if it is "better" or "faster" or results in smaller build sizes.
And since we're using the Adafruit library (with some changes of our own to make it work) in quite a few plugins, it still is quite a lot of work to test all those already supported displays to see if they still work.


Just saying, it isn't as simple as download a ZIP file, unzip it and you're done.

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: AXS15231 on JC3248W535EN - ESP32-S3 (wroom-1)

#10 Post by Ath » 05 Nov 2024, 23:14

In another quest I found that same library also, a few weeks ago, and just peeked at it quickly.
Today I've done a more in depth look at the code and the examples, and now I'm starting a PoC to see if I can reasonable use it with ESPEasy, for display support for all currently supported TFT displays... :o :?
It will probably be ESP32-only, as AFAICS, it will add some extra code to the builds, because of all extra supported displays, and possibly some less efficient code for the same reason. But part of the PoC will be to try and use it for ESP8266 builds too, but the ESP8266 Display build is already quit cramped for space, so not much slack there.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests