openHASP icon indicating copy to clipboard operation
openHASP copied to clipboard

Any chance we can it work for another esp32-s3 GT911 touch display (ESP32-4848S040)

Open mswaleh opened this issue 1 year ago • 46 comments

I found this cheap display at Aliexpress (https://www.aliexpress.us/item/1005006334976806.html) which appears to be new(er) in the market.

Board: ESP32-S3-N16R8 Display: ST7701, Touch: GT911

This is very close to "GS-T3E v2.3" in specs, which is one from the nightly list (https://nightly.openhasp.com/).

I am able to install it, it even connect to WiFi AP and then to my WiFi via the webUI. I can also see screenshot in the web UI but nothing comes on screen. I was trying to look at the source code but quite new to all this. Anybody can point me right direction or help with this, would be greatly appreciated.

mswaleh avatar Jan 02 '24 09:01 mswaleh

I also have one of these and i managed to setup the pin configuration for the Display. I got the pin mappings out of the 1-Demo/Demo_Arduino/1_1_86switch_onoff/86switch_onoff/86switch_onoff.ino sketch provided with the units documentation.

Everything seems to work except the colors. image expected-1

testimage-image expected-2

tbxMb avatar Jan 02 '24 18:01 tbxMb

wow, that was fast. thanks. I saw and copied your changes. I am also trying to figure out to see if there is anything I can do to make it work. I will share here. I like this display. Couple of binaries they have for demo, work really well. hoping to get it to work like it does in the demos.

mswaleh avatar Jan 02 '24 19:01 mswaleh

Hi, I have the same problem. One more thing, if it helps with the search: It will be red at: #00FFFF instead of #FF0000 . Seems somehow negated.

cleverhomeKK avatar Jan 02 '24 21:01 cleverhomeKK

Here are some tests. The image indeed gets displayed with inverted colors. When inverting the photo of the display in Gimp everything looks Ok. compi

I tried to enable the Invert option in the display settings but that does not work.

tbxMb avatar Jan 02 '24 22:01 tbxMb

@tbxMb great job. It appears, inverted colors are closer to the original. by the way, can you share the env entries you made to make it work. I am trying to build it on another repo (https://github.com/mswaleh/msopenHASP) but my job is failing because of " UnknownEnvNamesError: Unknown environment names 'esp32-s3-4848s050'".

mswaleh avatar Jan 02 '24 23:01 mswaleh

@mswaleh I think you got a typo there its esp32-s3-4848s040

tbxMb avatar Jan 02 '24 23:01 tbxMb

ha. literally saw seconds before your comment :-D. Much appreciated

mswaleh avatar Jan 02 '24 23:01 mswaleh

I manually enabled the hardware invert function via a spi write and managed to get the primary colors looking alright. But gradients still look weird. compi_gradient Im not sure what is causing this but i think i have seen something like this once.

tbxMb avatar Jan 02 '24 23:01 tbxMb

ITS WORKING 🥳

working

I had to change one byte in the setup operations from 0x08 to 0x00, i also merged the display invert command into the setup operations.

Can someone validate that it is also working on their device ?

tbxMb avatar Jan 03 '24 01:01 tbxMb

@tbxMb can you link the artifacts file?

mswaleh avatar Jan 03 '24 02:01 mswaleh

@mswaleh i cant link you one, but here is the commit that you can build yourself :)

7af48cf

tbxMb avatar Jan 03 '24 02:01 tbxMb

I can confirm that it is working smoothly. saweeet.. great job @tbxMb

mswaleh avatar Jan 03 '24 04:01 mswaleh

This looks really nice for the price. Can you confirm the spec, web site is a bit lacking, it seems to have battery input 3 x relays I assume a 240V PSU built in etc ....

smcgann99 avatar Jan 10 '24 15:01 smcgann99

Hi, The device has a 230V power supply (and USB-C on the side) and 1-3 relay outputs (230V). These can of course also be controlled by OpenHasp. However, the back part :-) does not fit into a round EU flush-mounted box.

cleverhomeKK avatar Jan 10 '24 23:01 cleverhomeKK

Hi, The device has a 230V power supply (and USB-C on the side) and 1-3 relay outputs (230V). These can of course also be controlled by OpenHasp. However, the back part :-) does not fit into a round EU flush-mounted box.

Any chance you could post some pictures of the back of the case ? Its very similar to the GS-T3E v2.3, but MUCH cheaper

smcgann99 avatar Jan 11 '24 02:01 smcgann99

It works with 110V too. 3 ways you can power it, USB-C, GPIO pins (5v and gnd), and AC. I think it can take 110-250VAC.

mswaleh avatar Jan 11 '24 02:01 mswaleh

works like a charm on my esp32-4848S040 device. No glitches, no color issues. Thank you

fduch2k avatar Jan 11 '24 04:01 fduch2k

Just checked the download link on product page an its actually a TFT screen not IPS ;-(

smcgann99 avatar Jan 11 '24 11:01 smcgann99

20240114_142400 20240114_142537 20240114_142543 20240114_142707 20240114_142714 20240114_142733 20240114_142921 Apresentação1 20240114_143001 20240114_143039

RednazPublic avatar Jan 14 '24 18:01 RednazPublic

I hope it can help. The board description image has yellow circles and these are zero ohm resistors, the connection between the boards (where I left "?") are L1, L2 and L3. I made a mistake, the correct digital audio is NS4168 and the 4 inch display relay and I2S audio are shared IO ports, IO1, IO2 and IO40. If audio is required, 0 ohm resistors R25, R26 and R27 must be moved to R21, R22 and R23.

RednazPublic avatar Jan 14 '24 18:01 RednazPublic

I hope it can help. The board description image has yellow circles and these are zero ohm resistors, the connection between the boards (where I left "?") are L1, L2 and L3. I made a mistake, the correct digital audio is NS4168 and the 4 inch display relay and I2S audio are shared IO ports, IO1, IO2 and IO40. If audio is required, 0 ohm resistors R25, R26 and R27 must be moved to R21, R22 and R23.

Thanks very much for this. What is the picture quality / viewing angle like with it being a TFT ? Have noticed any ghosting (screen burn etc), that has been reported on cheaper displays ?

smcgann99 avatar Jan 15 '24 02:01 smcgann99

Id say the Image quality is really good, and the viewing angles too you can look at it from almost 90° it gets a bit darker but is still legible. As for burn in i haven't had time to use it longer than a few hours but i did not really notice any Burn In yet.

I'll add some pictures later.

tbxMb avatar Jan 15 '24 12:01 tbxMb

Thanks very much for this. What is the picture quality / viewing angle like with it being a TFT ? Have noticed any ghosting (screen burn etc), that has been reported on cheaper displays ?

I'm sorry, it arrived last Friday and I was just checking the board and connection, I didn't really use it for over an hour. I'm actually going to use it for another project and saw your request for photos.

RednazPublic avatar Jan 15 '24 13:01 RednazPublic

Very good device, all works for me too, the display is also very good thank's for your hard work

it's possible to include the device in the nightly build? https://nightly.openhasp.com/ image

below the link of the build that i have installed https://www.dropbox.com/scl/fi/emfuptraro12qfbw6albs/esp32-s3-4848S040_full_16MB_v0.7.0-rc9_2dce5da.bin?rlkey=xkk4w8g3gxujltxq4mzptnfgo&dl=0

teoconnect avatar Feb 10 '24 10:02 teoconnect

it's possible to include the device in the nightly build?

Please provide a Pull request with the ini file for this device.

fvanroie avatar Feb 10 '24 12:02 fvanroie

I meant the portal https://nightly.openhasp.com/ where currently the entry for esp32-s3-4848s040 is missing, in the .ini file configuration is already present, just select the 2 entries below user_setups/esp32s3/*.ini esp32-s3-4848S040 with this selection the device work propertly

teoconnect avatar Feb 10 '24 15:02 teoconnect

I recently purchased this device and am anticipating its arrival! Pardon my ignorance, where would the pull request be made to get this board added to the nightly build portal? I see the html file that lists the boards: https://github.com/fvanroie/install/blob/main/html/index.html but that doesn't seem to link to the platformio_override.ini file to uncomment the two lines necessary?

kipwittchen avatar Feb 19 '24 14:02 kipwittchen

Very good device, all works for me too, the display is also very good thank's for your hard work

Awesome, thanks, works perfect for me! Does anyone know if it's possible to use the built in bluetooth as a proxy fof HA?

Aleborg avatar Feb 26 '24 17:02 Aleborg

Does anyone know if it's possible to use the built in bluetooth as a proxy fof HA?

openHASP does not support bluetooth as a proxy. You have to use another firmware or another device for that.

fvanroie avatar Feb 26 '24 18:02 fvanroie

@fvanroie thanks for the quick reply! A pity but understandable given that it can interfere with the wifi!

Aleborg avatar Feb 27 '24 06:02 Aleborg