ESP32 LD2450 Human Presence Sensor

LD2450 Human Presence Sensor image

LD2450

Protocol: UART,BLE

Overview

The LD2450 is a 24GHz mmWave radar sensor designed for precise human presence detection and tracking. It supports both UART and BLE communication, making it suitable for advanced automation applications.

About LD2450 Human Presence Sensor

The LD2450 is a 24GHz mmWave radar sensor capable of tracking up to three human targets simultaneously, providing real-time data on position, speed, and movement. It utilizes FMCW technology and supports both UART and Bluetooth Low Energy (BLE) communication. The sensor is ideal for applications requiring precise motion tracking, such as smart lighting, occupancy detection, and automation systems. For more information on the LD2450 series, see LD2450.

Where to Buy

LD2450 Human Presence Sensor

Starting from

$12 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), BLE
Detection Range Up to 6 meters
Detection Field ±60° horizontal, ±35° vertical
Power Supply 5V DC
Output UART, BLE
Resolution Precise position, speed, and movement tracking
Operating Temperature -20°C to +85°C
Dimensions 44mm × 15mm
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 LD2450 is a multi-target 24GHz mmWave radar sensor that outputs real-time position and motion data for up to three individuals. It communicates over UART and also supports BLE for wireless configuration. The module features the following pins:

  • 5V – Power supply input. Connect to a regulated 5V DC source. Required for full operation of both radar and onboard BLE hardware.
  • GND – Ground reference pin. Must be connected to the ground of the ESP32 or host microcontroller to ensure reliable UART communication and power distribution.
  • TX – UART transmit pin. Sends radar data such as X, Y coordinates and speed of tracked targets. Connect this to the ESP32’s RX pin (e.g., GPIO16).
  • RX – UART receive pin. Used to receive commands or configuration data. Connect this to the ESP32’s TX pin (e.g., GPIO17).

Note: BLE functionality is built into the sensor and requires no additional pins. It can be used for configuration or passive monitoring using compatible Bluetooth devices.

Wiring with ESP32

To connect the LD2450 radar module to an ESP32 using UART, use the following wiring plan. This setup allows for real-time multi-target tracking through a high-speed serial link. BLE configuration can be optionally used for parameter setup or debugging:

  • 5V (red wire) → 5V pin on ESP32. Supplies main power to the radar module. Ensure a clean, regulated 5V supply.
  • GND (black wire) → GND pin on ESP32. Establishes common electrical ground to stabilize signal levels.
  • TX (green wire) → GPIO16 (RX on ESP32). Receives serial radar data from the sensor to the ESP32.
  • RX (blue wire) → GPIO17 (TX on ESP32). Allows the ESP32 to send configuration commands back to the LD2450.

Important Configuration: Set the UART to use a baud rate of 256000, with no parity and 1 stop bit. If using BLE for configuration or testing, ensure the ESP32’s Bluetooth interface is initialized and does not conflict with the UART interface in your firmware.

Troubleshooting Guide

Common Issues

🚫 No Data Received

❌ Presence Not Detected

⚠️ Intermittent Detection

🔌 BLE Connection Issues

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 LD2450 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.