Coupons
Help
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:

Custom PCB Transforms Two ESP32 Boards into a Practical Wireless Walkie-Talkie

Author : Daniel Li | PCB Assembly & Electronics Application Engineer

July 30, 2026


Tech Talkies set out to answer a simple but compelling question: could two compact XIAO ESP32-S3 Sense boards deliver real-time, push-to-talk voice without a router, without an app, and without constant pairing? The result is a pair of low-latency walkie-talkies that use ESP-NOW for direct device-to-device audio, the onboard PDM microphone for capture, and a MAX98357A amplifier for clean playback. The project's real strength lies in how a small custom 3 × 7 cm PCB turned a working bench prototype into two consistent, field-ready handhelds.

ESP32 Walkie-Talkie

The creator's goal was clear—build something that felt like an actual radio rather than a temporary experiment. That ambition made solid PCB design and manufacturing essential. Jumper wires can prove the concept; a properly laid-out board is what allows the same performance to survive repeated outdoor use, battery swaps, and closed 3D-printed cases.

3D printed parts

The Features That Make the Pair Feel Like Real Radios

The most striking moment arrives the first time the PTT button is pressed and clear voice appears on the second unit with almost no delay. Each XIAO ESP32-S3 Sense already carries a PDM microphone, eliminating any need for external mic wiring. Audio is sampled at 16 kHz, packaged into 128-sample ESP-NOW packets, and transmitted peer-to-peer on 2.4 GHz. On the receiving side a thread-safe ring buffer isolates the Wi-Fi callback from the I2S DMA engine, preventing the half-written frames that would otherwise produce pops or drop-outs through the MAX98357A and 23 mm speaker.

Figure: Walkie-Talkie essential hareware

 Both units run identical firmware. At power-up each board reads its own MAC address, compares it against the two addresses stored in secrets.h, and automatically assumes the role of Device 1 (the periodic pinger) or Device 2 (the responder). Pressing PTT triggers a short ascending key-up tone; releasing it produces a roger beep that signals the end of transmission. During periods of silence Device 1 sends a link-check ping every thirty seconds. Both boards reply with a soft double-chirp when the path is healthy or a descending tone when the peer is missing. Software gain with hard clipping protection keeps the microphone from saturating when the user raises their voice.

ESP32 MAC Address

An external 3 dB antenna and a removable 18650 battery in a shield round out the hardware. Outdoor testing has demonstrated usable audio beyond 200 m in open conditions, while indoor performance still covers typical multi-room distances. The combination of automatic role assignment, status tones and robust buffering gives the finished pair a polished, radio-like character that pure breadboard builds rarely achieve.

Usable audio beyond 200m in open conditions

Inside the 3 × 7 cm Board That Ties the Hardware Together

All of the above functionality is organised on a compact custom PCB measuring roughly 30 × 70 mm. The board carries the XIAO module, the MAX98357A amplifier, footprints for the PTT button and power slide switch, and the external antenna connector.

Parameter

Value

Board size

30 × 70 mm

Layers

2-layer

Material

FR-4, Tg 130–140 °C

Thickness

1.6 mm

Copper weight

1 oz (35 µm)

Surface finish

HASL or ENIG

Min trace/space

0.15 / 0.15 mm

Via type

Through-hole, 0.3 mm drill

Layout priorities

Continuous ground under I2S, antenna keep-out zone, short BCLK/WS/DIN runs

At 16 kHz sample rates controlled-impedance traces were unnecessary, yet keeping the three digital audio lines short and tightly referenced to a solid ground plane proved essential for clean reproduction.

30 × 70 mm PCB board

Potential Challenges When Moving from Bench to Handheld

Projects of this type often encounter a set of practical considerations once the circuit leaves the open bench and must live inside a closed handheld enclosure. Addressing them early on the PCB makes the difference between a working demo and a reliable field unit.

Audio integrity is one frequent area of attention. ESP-NOW receive callbacks operate outside the main loop context. Without a properly protected ring buffer the I2S DMA engine can process incomplete packets, producing pops or drop-outs. A thread-safe producer-consumer buffer combined with software gain limiting keeps the audio path clean even under varying link conditions.

RF performance also deserves careful layout thought. The XIAO's onboard antenna is adequate for desk testing, but outdoor range improves substantially with an external 3 dB whip. Placing the antenna connector at the board edge and maintaining a clear copper-free keep-out zone prevents the radiator from being detuned by nearby ground pours or the battery.

Mechanical and power details commonly surface as well. The battery-shield switch typically interrupts only the USB rail, so a separate slide switch that breaks the battery positive is needed to avoid slow drain. Component heights and connector placement must also be checked against the 3D-printed case early, otherwise wiring that looks tidy on the bench becomes difficult once the enclosure closes.

Finally, supply noise from the MAX98357A can appear once microphone gain is raised. Local decoupling capacitors placed close to the amplifier pins, together with a continuous ground under the audio section, keep residual hiss out of the speaker.

Anticipating these potential issues during PCB layout—short I2S runs, solid ground, antenna clearance, and adequate pad sizes—allows the finished boards to support the firmware's strengths rather than fight against packaging constraints.

How the AIVON Manufactured Board Elevated the Entire Build

With the firmware and audio path already proven, the remaining task was to produce two identical boards that could be assembled once, fitted into the cases, and trusted for repeated outdoor use. This is where professional manufacturing support made a tangible difference.

AIVON produced the 3 × 7 cm boards with consistent copper weight, soldermask registration and hole plating across the small batch. That consistency meant the two finished walkie-talkies behaved almost identically—no more chasing subtle unit-to-unit differences in audio quality or RF range. The continuous ground plane delivered the quiet reference the I2S lines needed, while short, direct routing from the XIAO pins to the MAX98357A kept digital edges clean.

AIVON Custom PCB for Walkie-Talkie

AIVON's DFM review also caught practical details before the boards were made: a few footprints that were slightly tight for comfortable hand soldering were enlarged, and the PTT button pads were given more generous annular rings so they would survive hundreds of presses without cracking. Engineering feedback on the antenna keep-out zone and ground-plane continuity further refined the layout, helping the external 3 dB whip deliver the measured outdoor range beyond 200 m.

Because the boards arrived ready for clean assembly, the creator could focus on final mechanical fit and field testing rather than troubleshooting manufacturing variation. The solid ground and local decoupling also allowed slightly higher software gain without introducing harshness, improving the overall listening experience. The net result is a pair of handhelds that feel like finished tools rather than temporary experiments: the case can be opened, the battery swapped, and the link restored without further adjustment.

DFM Checklist for ESP-NOW Audio Handhelds of This Type

Check Item

Why It Matters Here

Pass Criterion

Antenna keep-out zone

External 2.4 GHz whip needs clear space

≥ 5 mm free of copper under antenna

I2S trace length & grouping

Prevents edge skew and digital noise

BCLK/WS/DIN < 25 mm, tightly coupled

Continuous ground under audio

Keeps speaker free of digital hash

Minimal cuts in the ground pour

Local decoupling at MAX98357A

Stops switching noise entering the amp

100 nF + 10 µF right at the pins

PTT button pad & mechanical strength

Survives repeated outdoor use

≥ 2 mm annular ring, reinforced

Battery positive switched

Prevents slow drain when "off"

Slide switch breaks battery rail

Component height vs case clearance

3D-printed enclosure has tight tolerances

Max height checked against STEP model

The Finished Result and What It Demonstrates

Tech Talkies began with two small modules and a clear intention: deliver practical peer-to-peer voice without external infrastructure. The difficult problems—thread-safe audio streaming, automatic role assignment via MAC address, synthesised status tones, and usable outdoor range—were solved through careful firmware and iterative testing. The cleanly manufactured 3 × 7 cm PCB simply provided those solutions with a mechanical and electrical foundation that could leave the bench and keep performing.

For anyone developing a similar wireless-audio or ESP-NOW project, the same sequence applies. Validate the signal path, address the real packaging and RF constraints, then manufacture a board that respects the DFM points listed above. The distance from a working prototype to a reliable handheld is shorter than it first appears, and the first clear roger beep across two hundred metres remains one of the most satisfying milestones in this kind of work.

FAQ

Q1: Why is a 2-layer board sufficient for an ESP-NOW + I2S walkie-talkie PCB?

A1: At 16 kHz audio rates and typical ESP-NOW power levels, controlled impedance is unnecessary. A continuous ground plane on a 2-layer FR-4 board already provides the quiet reference and short return paths needed for clean I2S and stable RF. Four-layer construction adds cost without meaningful performance gain on a 30 × 70 mm board.

Q2: How large should the antenna keep-out zone be on a compact handheld PCB?

A2: Leave at least 5 mm of copper-free area under and around the external antenna connector and feed. Copper pours, battery pads or ground planes closer than this measurably reduce outdoor range by detuning the whip and increasing losses.

Q3: What are the key layout rules for I2S lines next to an ESP32-S3 module?

A3: Keep BCLK, WS and DIN as short as possible (ideally under 25 mm), route them together as a tight group, and run them over an unbroken ground plane. Avoid vias in these traces when possible and keep them away from the antenna region and switching power nodes to minimise digital noise in the audio path.

Q4: Which surface finish works best for hand-assembly of a small XIAO + MAX98357A board?

A4: HASL is economical and perfectly adequate for prototype quantities. ENIG offers flatter pads that make fine-pitch XIAO soldering slightly easier and improves long-term corrosion resistance if the units will see outdoor humidity. Either finish is fine provided the DFM review confirms pad sizes are generous enough for hand soldering.

Q5: What common DFM issues appear when combining a battery shield, PTT button and external antenna on a 3 × 7 cm board?

A5: The most frequent problems are insufficient annular rings on the PTT pads (leading to cracked joints after repeated presses), copper too close to the antenna connector, and component heights that collide with the 3D-printed case. Checking maximum component height against the enclosure STEP model and enforcing a clear antenna keep-out during layout prevents these issues before the first boards are ordered.

Q6:  Does the PCB need impedance-controlled traces for ESP-NOW or the MAX98357A I2S interface?

A6: No. ESP-NOW operates at relatively low data rates over short distances, and the I2S clock is only 16 kHz. Standard 0.15 mm traces over a solid ground plane are more than adequate. Focus layout effort on continuous ground, short digital-audio runs and antenna clearance rather than controlled-impedance rules.

Daniel Li | PCB Assembly & Electronics Application Engineer Daniel Li | PCB Assembly & Electronics Application Engineer

Daniel Li is an experienced PCB assembly and application engineer with over 10 years of experience in SMT and DIP processes. He focuses on soldering quality, stencil design, and defect analysis, as well as real-world PCB applications across industries such as automotive, industrial, and consumer electronics. At AIVON, he reviews and improves content related to assembly techniques and application scenarios, helping bridge the gap between design and manufacturing.

Related Tags


2026 AIVON.COM All Rights Reserved
Intellectual Property Rights | Terms of Service | Privacy Policy | Refund Policy