Were you testing using Arduino C++ or esphome YAML? I can see the former working but for the latter the YAML won’t compile for me due to pin 13 being off limits when WiFi is enabled.
That’s the example I based the YAML I’m using on. Unfortunately when I add the lines below it no longer compiles for the reason about reserved pins due to WiFi.
If you have the time maybe you could check it’s the same for you.
Thanks ! ETA is here Update on stock - #6 by Raspiaudio
Radio is based on S3 with PSRAM so yes it should be possible to use local wake work, but I have not tried it yet.
Amp is about 11-12W it uses a boost converter to raise voltage to 17v from the Lipo cell, let say that is a quite loud.
Here’s the quick solution: add this to your YAML configuration:
sensor:
- platform: template
name: "Battery Voltage"
id: battery_voltage
unit_of_measurement: "V"
update_interval: 60s
lambda: |-
// Directly read the ADC value on GPIO13
return (float) analogRead(GPIO_NUM_13) / 4095.0 * 3.3; // Adjust based on expected voltage range
filters:
- multiply: 2.0 # Adjust according to your voltage divider ratio
My Journey :
Voice Assistant Check: I confirmed that the voice assistant is still working on Home Assistant 2024.11.1 with ESPHome 2024.10.3. I used the pre-built image from RaspiAudio’s apps store. However, it didn’t prompt me for WiFi credentials at the end, so I had to manually configure WiFi by following the ESPHOME installer.
Wake Word Test: In HA, the wake word worked well using Nabu Casa’s wake word integration.
ESPHome Configuration: In the ESPHome plugin, I created a new device and attempted to recompile the YAML for the radio. I used this file: RaspiAudio Radio YAML. No errors occurred.
ADC Issue: I added the ADC on pin 13 in the usual way, but encountered an error message claiming that the S3 is not compatible with ADC when WiFi is connected. This is misleading, as it works fine on my Arduino demo. I consulted ChatGPT, which suggested adding this block to the sensor section of the YAML mentioned above.
Now it’s working! The battery level decreases slowly while unplugged.