This is very useful as it provides all of the pinouts etc. Edit: See my later post for the correct information. Iām afraid that what I posted above was for a similar but different device, which resulted in wasted time working with the wrong pinouts.
I have successfully installed ESPHome on the device. All the standard stuff works, like wifi, ota etc, but in terms of device specific hardware I have thus far only managed to get the backlight to work. The display is listed as a GC9A01 display, but none of the various permutations I have tried have yielded any results. If anyone knows which ESPHome component I should be using with this display I would be most grateful. In the meantime, Iāll continue with my trial and error approach. Is there a better way? Advice from googling and asking Copilot has thus far proved incorrect.
Hi. Thanks for that. Iāve independently found the same information, after quite a lot of digging. One of the problems is that there are a lot of versions of this kicking around, and it is quite hard to find the correct one. Iāve found the source code accessible here and Iāve successfully compiled it and downloaded it to the device, so I can confirm it is the correct one for that device. It also took me a little while to figure out which of the many boards listed in the source code was the correct one: answer ābread-compact-wifiā. Having names in Chinese makes things entertaining! Anyway, once I figured out the board type, that gave me the pin assignments and I was able to make quite a lot of progress mapping this onto an ESPHome project. I have the display working fine, and also the speaker. (Though curiously first this worked in Music Assistant but not Home Assistant, and now it is vice versa! Still tracking that one down). At the moment my microphone doesnāt seem to work, but Iāll follow up your tip on using the s3-box-3 template and see whether that helps.
While I had the device on the stock firmware, I couldnāt get the wakeword functionality to work. It only started listening when I pressed the boot button at the back. I suspect this is all Iāll be able to do on ESPHome as well.
If you flip your device over, does it have 3 screws or 1 singular? Does it have a sticker that says v4?
The schematic shows the pinouts for the components, once I mapped the esphome templates to the correct GPIO it ājust workedā you should be able to get wakeword working, but I found the microphone position inside the case makes struggle to listen unless youāre right next to it
You will need to remove the voice_kit, audio_dac, external_components. This will have no screen output, but work similarly to the official device
I have based mine template on voice pe with the display bits from the box s3 ported across, so ideally you will want to merge bits once tested independently that theyre working.
@lareeth I just received the XiaoZhi āV5 ENā device. I got most of it working but audio is still missing. How did you manage to interface the audio ic? Is it using the ES8311?
V5 is v1.62 of the software, nothing changed with hardware, and the pins are the same for all versions of this cube and some other models too like this one: https://www.aliexpress.com/item/1005008720707304.html
except ofcourse, that one has no display.
also same pins as they also use for their standard breadboard version.
itās a V4 updated to V5 since the version is the software, not hardware. v4 was 1.60, v5 is 1.62 (current) of the xiaozhi code, but since the one in that image is flashed ith esphome itās none of them, if anything itās the version of esphome 2025.5