HOMEABOUT USPRODUCT INFORMATION A PRACTICAL GUIDE TO CUSTOM ESP32 DIGITAL WALKIE-T...

A Practical Guide to Custom ESP32 Digital Walkie-Talkies (Part 2): Hardware Integration and Reference Design

11

Sep . 2025

By sdga:

Integrating the DMR858M module with a microcontroller (such as the ESP32 used here) requires focusing on three main aspects: power supply, control logic, and audio interface. This section provides a proven reference design to ensure stable system operation.

Basic Hardware Connection Diagram between MCU and DMR858M Module

Key Design Consideration: Power Supply

Power supply design is the most easily overlooked and most common point of failure when integrating high-power RF modules. When the DMR858M transmits at 5W high power with an 8V supply, the peak current can reach 910mA or even higher. Any attempt to directly power the module using the 5V USB input or the 3.3V LDO on an ESP32 development board will fail.

A robust power system must meet the following requirements:

  1. Independent Power Unit: Use an external power source capable of providing at least 8V and over 2A of current, such as a lithium battery pack (2S Li-Po/Li-ion) with a buck-boost converter, or a stable DC power adapter.

  2. Excellent Transient Response: The key issue is not just the average current the power supply can provide, but its response speed to load transients. When the module switches instantly from receive mode (current < 165mA) to transmit mode (current > 900mA), it creates a huge instantaneous current spike (dI/dt). If the power supply's transient response is inadequate, or if the power traces on the PCB are too long and thin (introducing significant parasitic inductance and resistance), the system voltage will drop momentarily.

  3. Chain Effect of Voltage Sag: This voltage drop is the root cause of many hard-to-debug "ghost" issues. The ESP32 has a built-in Brown-out Detection circuit, which triggers a system reset to protect itself when its supply voltage falls below a certain threshold. Therefore, what appears to be a "power" issue may manifest as the program randomly restarting when the PTT button is pressed. Additionally, an unstable supply voltage can interfere with UART communication, leading to data transmission errors.

Solution: To avoid these problems, large decoupling capacitors must be placed near the VCC pin of the DMR858M module. It is recommended to use a 100µF to 470µF electrolytic capacitor in parallel with a 0.1µF ceramic capacitor (the former for handling low-frequency high-current demands, the latter for filtering high-frequency noise). Also, ensure that the VCC and GND traces from the power source to the module are as short and wide as possible to minimize line voltage drop.

Interface Logic: UART, PTT, and Audio

The module's control and data exchange are primarily handled through GPIO and UART.

  • UART Communication: Connect one of the ESP32's hardware serial ports (e.g., UART2, corresponding to GPIO16 and GPIO17) to the DMR858M's RXD (pin 19) and TXD (pin 18). Note the crossover connection: ESP32's TX connects to the module's RX, and ESP32's RX connects to the module's TX.

  • PTT (Push-to-Talk): PTT control is very straightforward. Connect a GPIO pin from the ESP32 to the module's PTT (pin 5). This pin is active low, meaning the module enters transmit mode when the GPIO outputs a low level.

  • Audio Input: The module's MIC+ (pin 14) and MIC- (pin 13) are used to connect an external microphone. The datasheet specifies that a bias voltage is provided internally, so an electret microphone can be connected directly without an additional bias circuit.

  • Audio Output: The module's OUTP (pin 11) and OUTN (pin 12) are differential audio outputs that can directly drive an 8-ohm speaker.

DMR858M Module Pin Layout and Functional Distribution

Table 2: ESP32 to DMR858M Pin Mapping Reference

ESP32 Pin (e.g., DevKitC)

Function

DMR858M Pin

Notes

GPIO17 (U2TXD)

UART TX

19 (RXD)

Connects to the module's serial data receive pin.

GPIO16 (U2RXD)

UART RX

18 (TXD)

Connects to the module's serial data transmit pin.

GPIO25

PTT Control

5 (PTT)

Active low, controls module entry into transmit mode.

GPIO26

CS (Sleep Control)

3 (CS)

Low level puts the module into sleep mode, high level activates it.

GPIO27

RX Indicator

16 (SPKEN)

This pin outputs a high level when the module receives a signal.

-

Microphone Positive

14 (MIC+)

Connect to the positive terminal of the electret microphone.

-

Microphone Negative

13 (MIC-)

Connect to the negative terminal of the electret microphone.

-

Speaker Output +

11 (OUTP)

Connect to one terminal of an 8-ohm speaker.

-

Speaker Output -

12 (OUTN)

Connect to the other terminal of the 8-ohm speaker.

VCC

Module Power

1 (VCC)

Connect to the positive terminal of the external 8V power supply.

GND

System Ground

2, 4 (GND)

Connect to the external power supply ground and share a common ground with the ESP32.


DMR858M Module Mechanical Dimensions

A Practical Guide to Custom ESP32 Digital Walkie-Talkies Series


Part 1: In-depth Analysis of the DMR858M Module

Part 2: Hardware Integration and Reference Design

Part 3: Deconstructing the Serial Control Protocol

Part 4: Firmware Development and Driver Design

Part 5: Exploring Advanced Features and Conclusion




Contact Us

 +86-755-23080616

 sales@nicerf.com

Website: https://www.nicerf.com/

Address: 309-315, 3/F, Bldg A, Hongdu business building, Zone 43, Baoan Dist, Shenzhen, China

Contact us
Privacy Policy

Privacy Policy

· Privacy Policy

There is currently no content available


           

Email:sales@nicerf.com

Tel:+86-755-23080616

Address:309-315, 3/F, Bldg A, Hongdu business building, Zone 43, Baoan Dist, Shenzhen, China


×