> For the complete documentation index, see [llms.txt](https://wiki.openelab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openelab.io/aiot/m5stack/atom-voices3r-development-guide.md). Agents can also search and read this documentation through its [MCP server](https://wiki.openelab.io/~gitbook/mcp).

# M5Stack Atom VoiceS3R Development Guide

Power, connector allocation, firmware setup, original first-result procedures and recovery for M5Stack Atom VoiceS3R C126-ECHO.

{% hint style="info" %}
[**View M5Stack Atom VoiceS3R C126-ECHO on OpenELAB**](https://openelab.io/products/m5stack-atom-echos3r-smart-speaker)

**Model:** Atom VoiceS3R C126-ECHO · **SKU:** `M5-C126-Echo`
{% endhint %}

## Product overview

![M5Stack Atom VoiceS3R Development Guide](https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FaEzRSrCwfgtXk2i32m4n%2Fatom-voices3r-development-guide.webp?alt=media)

*Manufacturer image: M5Stack.* [*Image source*](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Atom_EchoS3R_01.webp)*.*

[Product at OpenELAB](https://openelab.io/products/m5stack-atom-echos3r-smart-speaker) · [Manufacturer wiki hub](https://wiki.openelab.io/aiot/m5stack.md)

### Product identity and applications

**M5Stack Atom VoiceS3R, C126-ECHO**, is a compact ESP32-S3 audio controller for voice-interface prototypes, audio playback and smart-home voice endpoints. It is also referenced by the older **Atom EchoS3R** name in tutorial paths and source assets. It is different from the original ESP32-based ATOM Echo/Atom Voice and needs the S3R board/memory/audio configuration.

## Applications

Use Atom VoiceS3R C126-ECHO for local audio prompts, microphone experiments and an appropriately configured voice-service endpoint. A working tone is not evidence of speech recognition.

## Specifications

### Hardware specifications and pin map

| Item           | Atom VoiceS3R                                 |
| -------------- | --------------------------------------------- |
| MCU            | ESP32-S3-PICO-1-N8R8, dual-core up to 240 MHz |
| Memory         | 8 MB flash; 8 MB octal PSRAM                  |
| Codec          | ES8311, 24-bit I²S audio                      |
| Microphone     | MEMS microphone, documented 65 dB SNR         |
| Output         | NS4150B amplifier; 8 Ω / 1 W cavity speaker   |
| Connectivity   | 2.4 GHz Wi-Fi, USB-C and expansion pins       |
| Supply/size    | DC 5 V; 24.0 × 24.0 × 16.8 mm                 |
| Additional I/O | User button and infrared transmitter          |

Source: [manufacturer hardware reference](https://docs.m5stack.com/en/core/Atom_VoiceS3R).

| Function                                  | ESP32-S3 GPIO             |
| ----------------------------------------- | ------------------------- |
| Codec I²C SDA / SCL                       | 45 / 0                    |
| Codec DOUT / DIN / WS / BCLK / MCLK       | 48 / 4 / 3 / 17 / 11      |
| Amplifier control                         | 18                        |
| User button / IR transmitter              | 41 / 47                   |
| CUSTOM port: black / red / yellow / white | GND / 5 V / GPIO2 / GPIO1 |

Use the codec signal names from the schematic when relating device DIN/DOUT to MCU receive/transmit directions. The port's 5 V supply is separate from logic-level tolerance; do not assume GPIO1/2 accept 5 V.

## Hardware and connections

![M5Stack Atom VoiceS3R core-board schematic](https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FWUlFD91SjtVI24gTXezK%2Fm5stack-rank-062-diagram.png?alt=media)

*M5Stack official technical illustration:* [*original*](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomS3R_v0.4.1.png)*. Verify drawing and physical revision together.*

## Software and development resources

### Development environment and firmware choices

The [official Arduino quick-start](https://docs.m5stack.com/en/arduino/atom_echos3r/program) selects **M5AtomS3R** from the M5Stack board package and uses **M5Unified** and **M5GFX**. Retain the model preset's octal-PSRAM configuration, install prompted dependencies and record their versions. The M5Unified API was reviewed at commit **96576a14247ddc935149145aa6b51943464120f1**.

UiFlow2, factory USB-audio firmware, XiaoZhi and Home Assistant voice integrations are separate firmware/workflow choices. A cloud voice application can require its own account, network, backend and credentials; microphone/speaker hardware alone does not provide a speech model or service. Keep the offline audio test as the first checkpoint.

## Getting started

### Getting started: one offline audio event

Prepare USB-C data/power, Arduino IDE and the exact board preset. Save any needed factory configuration before flashing.

1. Connect USB-C. Follow the model's download sequence: hold the side reset button for about three seconds until the internal green LED signals download mode, then release and select the actual port.
2. Select **M5AtomS3R**, confirm M5Unified/M5GFX dependencies and create a new sketch.
3. Build and upload this short test, which uses the documented M5Unified speaker interface:

```cpp
#include <M5Unified.h>

void setup() {
    auto cfg = M5.config();
    M5.begin(cfg);
    M5.Speaker.setVolume(40);
    M5.Speaker.tone(1000, 150);
}

void loop() {
    M5.update();
    delay(20);
}
```

4. Restart into the application. Listen for one short tone at moderate level; restart again to repeat the check. Keep the device away from your ear during testing.

Expected result: one short tone per application start without a Wi-Fi account. It verifies upload, audio initialization and output, not microphone capture or speech recognition. This adapted example remains uncompiled and untested on physical hardware for this guide.

### Separate USB-audio, capture and network checkpoints

For the factory UAC application, restore the exact **Atom VoiceS3R Factory UAC** firmware and select the newly enumerated host input/output device. Play a quiet test signal, then record a short spoken phrase; confirm both directions through the host audio settings. The USB serial port used for flashing is not itself an audio endpoint. Do not flash original C008-C Bluetooth audio firmware onto C126-ECHO.

For Arduino microphone work, stop the speaker before enabling capture, use the M5Unified Mic example with the preset's ES8311 routing, capture a fixed-size PCM buffer and report peak/RMS or a level plot. Check clipping versus silence before involving a network service. Size a mono signed16-bit buffer as `sample_rate × seconds × 2` bytes; for example16kHz for one second needs32000bytes, plus framework overhead. That is a buffer calculation, not a supported-rate guarantee for every firmware. End capture before resuming playback to avoid unintended feedback and bus ownership conflicts.

UiFlow2 uses **Atom VoiceS3R** firmware and the matching controller; read network status/Access Code through WebTerminal if no screen is present. Test a local speaker block with Run Once, then Run Always and restart. Home Assistant/XiaoZhi images have separate service setup; account/network failure should be diagnosed only after local audio works. [Current model workflows](https://docs.m5stack.com/en/core/Atom_VoiceS3R).

## Troubleshooting and FAQs

### Microphone, voice software and recovery

After playback works, use the model's microphone example to check actual input data before adding recognition. Check sample rate, buffer sizes, codec configuration and speaker/microphone sequencing in the chosen firmware. Hearing a tone does not validate microphone wiring or acoustic echo cancellation.

For Home Assistant or XiaoZhi follow the exact model tutorial linked from the hardware page, including its selected firmware and service requirements. Do not reuse the original ATOM Echo image. For the factory USB-audio behavior, use the manufacturer's **Atom VoiceS3R Factory UAC** restoration path and confirm the host enumerates an audio device. Flashing an Arduino sketch replaces that application; it is not expected to retain the factory USB-audio function automatically.

The hardware reference links a **mainboard** and **audio baseboard** schematic; use both to trace a complete audio path. Some asset filenames retain EchoS3R/AtomS3R naming. Check the fitted board and drawing revision before designing extensions.

### Troubleshooting and FAQ

| Symptom                              | Check and next step                                                                                                |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
| Upload fails                         | USB data cable, side-button download mode, actual port and M5AtomS3R board package.                                |
| Firmware starts but no tone          | Exact S3R model, compatible M5Unified, codec/amplifier initialization and output volume; try official quick-start. |
| PSRAM or buffers fail                | Exact 8 MB octal-PSRAM preset and library/framework compatibility.                                                 |
| Playback works but no captured audio | Separate microphone test, codec input path, rate/buffer configuration and capture/playback sequencing.             |
| PC no longer sees USB audio          | Restore the exact factory UAC application; an Arduino sketch may not implement USB audio.                          |
| Voice service cannot connect         | Network/backend/account and application firmware version after local audio is verified.                            |

## Downloads and technical documents

### Technical documents and software

| Resource                                                                                                                      | Use                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Hardware and firmware options](https://docs.m5stack.com/en/core/Atom_VoiceS3R)                                               | Specifications, complete pin map, factory and integration tutorials |
| [Arduino quick-start](https://docs.m5stack.com/en/arduino/atom_echos3r/program)                                               | Model preset, download mode and speaker example                     |
| [Mainboard schematic](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomS3R_v0.4.1.pdf)                        | Core board electrical reference                                     |
| [Audio baseboard schematic](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomEchoS3R_Audio_v1.0_20250716.pdf) | Codec, microphone, speaker and amplifier                            |
| [Structure/CAD](https://github.com/m5stack/M5_Hardware/tree/master/Products/C126-ECHO_Atom_VoiceS3R/Structures)               | Mechanical integration                                              |
| [M5Unified reviewed revision](https://github.com/m5stack/M5Unified/tree/96576a14247ddc935149145aa6b51943464120f1)             | Audio/device API source                                             |

**Review date:** 17 November 2026. **Validation:** official documentation and the cited software interfaces reviewed. Commands and examples have not been compiled or run on physical hardware by OpenELAB for this guide. Record your hardware revision, firmware, software versions and actual results when reproducing it.

### Official documentation and development resources

Use [Atom VoiceS3R](https://docs.m5stack.com/en/core/Atom_VoiceS3R) for the manufacturer's complete model reference, diagrams and maintained examples. The official product code is **`C126-ECHO`**; match the board/Unit label before choosing a firmware or host example. The references below complement this guide's local instructions.

| Development need             | Model-specific reference                                                                                                                        |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Arduino development tutorial | [Read arduino development tutorial](https://docs.m5stack.com/en/arduino/atom_echos3r/program)                                                   |
| Electrical schematic         | [Read electrical schematic](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomS3R_v0.4.1.pdf)                                    |
| Electrical schematic         | [Read electrical schematic](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomEchoS3R_Audio_v1.0_20250716.pdf)                   |
| Mechanical / CAD files       | [Read mechanical / cad files](https://github.com/m5stack/M5_Hardware/tree/master/Products/C126-ECHO_Atom_VoiceS3R/Structures)                   |
| Mechanical / CAD files       | [Read mechanical / cad files](https://github.com/m5stack/M5_Hardware/blob/master/Products/C126-ECHO_Atom_VoiceS3R/Structures/Atom_VoiceS3R.stl) |
| Official source: M5Unified   | [Read official source: m5unified](https://github.com/m5stack/M5Unified)                                                                         |
| Official source: M5GFX       | [Read official source: m5gfx](https://github.com/m5stack/M5GFX)                                                                                 |

Keep the example's host model, interface pins and dependency versions together when reproducing a result. A schematic or SDK link does not establish that another revision uses the same wiring. Official model pages and accessible tutorial links reviewed **23 November 2026**. Other downloads above are manufacturer-listed resources; listing a file is not a test of its contents. Compilation, firmware flashing and hardware operation were **not performed** in this review.

| Official file or repository                                                                                                                | Use                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| [Atom VoiceS3R Mainboard Schematics PDF](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomS3R_v0.4.1.pdf)                  | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [Atom VoiceS3R Baseboard Schematics PDF](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Sch_M5_AtomEchoS3R_Audio_v1.0_20250716.pdf) | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [Atom VoiceS3R Model Size PDF](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/676/C008-C-atom_sound.pdf)                                 | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [Atom VoiceS3R Structure Files](https://github.com/m5stack/M5_Hardware/tree/master/Products/C126-ECHO_Atom_VoiceS3R/Structures)            | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [ES8311](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/atom/Atomic%20Echo%20Base/ES8311.pdf)                         | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [MEMS MIC](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/atom/Atomic%20Echo%20Base/MEMS.pdf)                         | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [NS4150B](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/atom/Atomic%20Echo%20Base/NS4150B.pdf)                       | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [M5Unified Driver Library](https://github.com/m5stack/M5Unified)                                                                           | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [M5GFX Driver Library](https://github.com/m5stack/M5GFX)                                                                                   | Manufacturer-listed exact model document / maintained source; use the scope described above. |
| [download](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1182/Atom_EchoS3R_Easy_Loader_for_win.exe)                                     | Manufacturer-listed exact model document / maintained source; use the scope described above. |

## References and validation

Exact-model [manufacturer hardware reference](https://docs.m5stack.com/en/core/Atom_VoiceS3R) and model-specific software links in the procedures establish this guide's hardware scope. Electrical values are manufacturer-reported; external-project behavior and diagnostic order are original engineering guidance.

**Review:** 24 November 2026. Manufacturer documentation and the linked SDK interfaces were reviewed. **Compilation, firmware flashing and hardware operation: not run.** Expected results above are commissioning checkpoints, not observed bench measurements.
