ESP32 LD2410C Human Presence Sensor

LD2410C Human Presence Sensor image

LD2410C

Protocol: UART

Overview

The LD2410C is a millimeter-wave radar sensor for human presence detection, supporting both stationary and moving target detection. It uses UART communication and is ideal for smart home automation systems.

About LD2410C Human Presence Sensor

The LD2410C is a compact 24GHz mmWave radar sensor designed for human presence detection. It utilizes FMCW (Frequency Modulated Continuous Wave) technology to detect both moving and stationary human targets within a range of up to 6 meters. The sensor offers a digital OUT pin for simple presence detection and UART communication for advanced configurations. Unlike the LD2410 and LD2410B, which use 1.27mm pin spacing, the LD2410C features a standard 2.54mm pin spacing for easier breadboard and header integration. This makes it more convenient to prototype with development boards like the ESP32. For more information on the LD2410 series, see LD2410.

Where to Buy

LD2410C Human Presence Sensor

Starting from

$8 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Interface UART (256000 baud)
Detection Range 0.75–6 meters
Detection Field ±60°
Power Supply 5V–12V DC
Output UART, GPIO
Resolution 0.75m gate intervals
Operating Temperature -40°C to +85°C
Dimensions 16mm × 22mm
Pin Spacing 2.54mm

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

The LD2410C module features a simplified and breadboard-friendly design with standard 2.54mm pin spacing. It provides all necessary connections for both UART-based communication and optional digital output, while supporting a wide voltage input range. Pin definitions include:

  • VCC – Power input pin. Accepts 5V to 12V DC (5V is recommended for ESP32 compatibility). Supplying correct voltage ensures stable radar operation.
  • GND – Ground reference pin. Must be connected to the same ground as the ESP32 or host system for reliable signal integrity.
  • TX – UART transmit pin. Sends serial output from the LD2410C. Connect this pin to the ESP32’s UART RX (e.g., GPIO16).
  • RX – UART receive pin. Receives configuration or control commands. Connect this pin to the ESP32’s UART TX (e.g., GPIO17).
  • OUT – Digital presence output. Goes HIGH when presence is detected. Operates at 3.3V logic level, suitable for direct input to ESP32 GPIOs. Optional use for hardware interrupt or simple presence-based logic control.

Note: The LD2410C drops the compact 1.27mm pitch seen in earlier versions and replaces it with 2.54mm headers for easier prototyping and integration with development boards.

Wiring with ESP32

To connect the LD2410C radar sensor module to an ESP32 via UART, follow the connections below. This setup uses ESP32's UART2 interface (commonly GPIO16 and GPIO17). Make sure the sensor receives a stable 5V supply and that your ground lines are securely tied:

  • VCC (red wire) → 5V on ESP32 (or external 5V source if needed for higher power stability).
  • GND (black wire) → GND on ESP32. Ensure this is securely connected to prevent floating signals.
  • TX (green wire) → GPIO16 on ESP32. This serves as the ESP32’s receive pin for incoming data.
  • RX (blue wire) → GPIO17 on ESP32. This acts as the transmit pin from ESP32 to the sensor.
  • OUT (yellow wire, optional) → GPIO18 on ESP32 if you wish to use the digital HIGH signal as an external trigger or presence flag.

Ensure UART2 is selected in your firmware configuration, and that the baud rate matches what’s defined in the sensor’s initialization (typically 256000). The OUT pin is not required for UART operation but provides a useful hardware-level presence indicator.

Troubleshooting Guide

Common Issues

🚫 No Data Received

❌ Presence Not Detected

⚠️ Intermittent Detection

🔌 UART Initialization Fails

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 LD2410C Human Presence Sensor is a powerful Human Presence sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.