It is not officially supported by ESPHome, but I wondered if anyone has managed to get it working and could share an example? I’ve had a search through the forum and I can see some references to working with the SH8601 and FT3168 separately.
Thanks
I can’t find a specific example for this device, but I managed to get a basic configuration together by cribbing bits and pieces from data sheets and various ESPHome and non ESPHome configs that other people have built for similar boards.
The display works successfully, but I can’t get the touch screen working. When I tap the screen, I just get the following errors logged:
[15:20:10.094][D][esp-idf:000]: E (29193) i2c.master: I2C hardware NACK detected
[15:20:10.094][D][esp-idf:000]: E (29194) i2c.master: I2C transaction unexpected nack detected
[15:20:10.096][D][esp-idf:000]: E (29195) i2c.master: s_i2c_synchronous_transaction(945): I2C transaction failed
[15:20:10.098][D][esp-idf:000]: E (29197) i2c.master: i2c_master_execute_defined_operations(1401): I2C transaction failed
I’ve experimented with various frequencies, without success.
Config with working display but non-working touch screen:
You’re correct. The “0” in the config I posted was incorrectly included because I wasn’t sure if I was reading the spec correctly and was experimenting with different values.
I get the same error using pin 2, so I think there is something else wrong with my configuration.
Backtracking on the preceding discussion, pin 0 is actually the correct value for the pca9554 I/O extender reset_pin, not pin 2 (in retrospect this is obvious from the schematic pin names: LCD_RESET EXIO0 rather than TP_RESET EXIO2)
address: 0x38 is required for the touchscreen: definition
I also removed the frequency: value from my i2c: definition and it seems to be running OK on the default.
There are a lot of other features on this device (like audio I/O) that I have not attempted to configure, but it does appear to be functional for display and touch with ESPHome.
A small change that fixes some issues and simplifies the config:
I couldn’t get brightness working with the CUSTOM display model: configuration I had cobbled together from some code examples, but discovered that I could drop the custom init_sequence and just use the model: WAVESHARE-ESP32-S3-TOUCH-AMOLED-1.75 option, which seems to work fine (the pin errors in my initial config efforts obscured the fact that this option was valid).
[Edit: I have an unresolved issue with the touchscreen only working immediately after flashing; if I subsequently power cycle the device the touch screen no longer responds ]
Thanks very much. That was a well timed reply because I was just about to post another message after failing to find a solution to the reboot problem.
I switched to platform: ft5x06 and can confirm that the touchscreen is working correctly when flashed, and also continuing to work when the device is rebooted.
My revised configuration is below. With the fx5x06 plaform, the reset_pin and skip_probe options are no longer valid, and the pca9554 definition is therefore no longer required.
Thanks for the previous posts - I started with the example @argsnd gave at the beginning of the month last night. Then today, while thinking about wake words rather than continuous listening, I stumbled across the examples in realdeco xiaozhi-esphome gh repo for the waveshare esp32-s3 1.85C lcd. I replaced the values for gpio pins and display settings and such like for the values in the examples here, and fairly quickly had my first protype up and running.
I’ll do a bit more checking on how it works / behaves, and will also compare with the 206 watch config, as I have seen a comment on using that.
[15:43:29][D][rtttl:062]: Playing song beep
[15:43:29][D][i2s_audio.speaker:102]: Starting
[15:43:29][D][i2s_audio.speaker:106]: Started
[15:43:29][D][ring_buffer:034][speaker_task]: Created ring buffer with size 16000
[15:43:29][D][voice_assistant:478]: State changed from IDLE to START_MICROPHONE
[15:43:29][D][voice_assistant:485]: Desired state set to START_PIPELINE
[15:43:29][D][voice_assistant:207]: Starting Microphone
[15:43:29][D][ring_buffer:034]: Created ring buffer with size 16384
[15:43:29][D][voice_assistant:478]: State changed from START_MICROPHONE to STARTING_MICROPHONE
[15:43:29][E][i2s_audio.microphone:516]: Driver failed to start; retrying in 1 second
[15:43:29][E][component:362]: i2s_audio.microphone set Error flag: unspecified
[15:43:29][D][i2s_audio.speaker:111]: Stopping
[15:43:29][D][i2s_audio.speaker:116]: Stopped
[15:43:29][D][rtttl:405]: Playback finished
[15:43:30][E][component:379]: i2s_audio.microphone cleared Error flag
[15:43:30][D][voice_assistant:478]: State changed from STARTING_MICROPHONE to START_PIPELINE
[15:43:30][D][voice_assistant:228]: Requesting start
[15:43:30][D][voice_assistant:478]: State changed from START_PIPELINE to STARTING_PIPELINE
[15:43:30][D][voice_assistant:500]: Client started, streaming microphone
[15:43:30][D][voice_assistant:478]: State changed from STARTING_PIPELINE to STREAMING_MICROPHONE
[15:43:30][D][voice_assistant:485]: Desired state set to STREAMING_MICROPHONE
Mine was delivered 2 days ago, thanks to the work others have done setting up the config file. I would like to use this little 1.8 as a remote to control entities in HA for my motorhome. I’m just starting to learn how to set this up. I would like to create several pages with buttons for control, with the status being displayed. Any help would be appreciated.