This page describes the audio output and amplifier control configuration for Atomic Audio-3.5 Base in ESPHome. The base must be used with a compatible Atom-series controller.
| Item | Information |
|---|---|
| Product Name | Atomic Audio-3.5 Base |
| SKU | A166 |
| Main Function | Audio decoding, speaker output, and amplifier control |
| Communication Interface | I2C, I2S |
| ESPHome Components | es8311 (external), i2s_audio, speaker, pi4ioe5v6408 |
| ESPHome Version | 2026.4.0 or later |
The reference configuration uses the M5Stack external es8311 component, loaded through external_components:
external_components:
- source: github://m5stack/esphome-yaml/components@main
components: [es8311]
refresh: 1d Configure the I2S bus, the ES8311 DAC, and the speaker output. The pins below correspond to the AtomS3R and Atomic Audio-3.5 Base connections.
i2s_audio:
- id: audio_i2s_bus
i2s_lrclk_pin: GPIO6
i2s_bclk_pin: GPIO8
audio_dac:
- platform: es8311
id: audio_dac
i2c_id: audio_i2c_bus
bits_per_sample: 16bit
sample_rate: 48000
use_microphone: false
use_mclk: false
speaker:
- platform: i2s_audio
id: audio_speaker
i2s_audio_id: audio_i2s_bus
i2s_dout_pin: GPIO5
dac_type: external
audio_dac: audio_dac
sample_rate: 48000
channel: left The base uses PI4IOE5V6408 to control the speaker amplifier enable signal. After creating a switch entity, you can control the amplifier state from Home Assistant.
pi4ioe5v6408:
- id: audio_io_expander
i2c_id: audio_i2c_bus
address: 0x43
switch:
- platform: gpio
name: "Speaker Enable"
id: speaker_enable
pin:
pi4ioe5v6408: audio_io_expander
number: 0
mode:
output: true
restore_mode: RESTORE_DEFAULT_ON