ESP32 MR24HPC1 Human Static Presence Radar Sensor

MR24HPC1 Human Static Presence Radar Sensor image

MR24HPC1

Protocol: UART

Overview

The MR24HPC1 is a high-sensitivity 24GHz radar sensor capable of detecting human presence and motion. It communicates via UART and is ideal for smart home and security applications.

About MR24HPC1 Human Static Presence Radar Sensor

The MR24HPC1 is a 24GHz mmWave radar sensor designed for human presence detection. Utilizing FMCW (Frequency Modulated Continuous Wave) technology, it can detect both moving and stationary human targets within a range of up to 5 meters. The sensor provides real-time data on motion speed, distance, and presence intensity, making it suitable for applications such as smart lighting, security systems, and occupancy monitoring. For more information, refer to the official datasheet: MR24HPC1 Datasheet.

Technical Specifications

Interface UART (115200 baud)
Detection Range Up to 5 meters
Detection Field ±45° horizontal, ±25° vertical
Power Supply 5V DC
Output UART
Operating Temperature -20°C to +85°C
Dimensions 35mm × 30mm × 9mm
Pin Width 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 MR24HPC1 is a 24GHz mmWave radar sensor module developed by Seeed Studio for human presence detection. It supports UART communication and operates at 5V logic. The following pins are exposed on the module:

  • 5V – Power supply input. Connect to a regulated 5V DC source. This pin powers the radar chipset and MCU. Supplying stable voltage is essential to maintain consistent performance.
  • GND – Ground reference. Connect this pin to the system ground shared with the ESP32 or host MCU. Proper grounding helps ensure signal integrity and avoids voltage offset errors.
  • TX – UART transmit line. Outputs sensor data (e.g., motion speed, presence strength) to the microcontroller. Connect this to the RX pin on the ESP32 (e.g., GPIO16).
  • RX – UART receive line. Receives configuration commands or requests from the ESP32. Connect this to TX on the ESP32 (e.g., GPIO17).

Note: The MR24HPC1 operates with 5V logic levels. While most ESP32 boards tolerate 5V inputs on UART RX, verify your board's specifications or use a level shifter to protect 3.3V-only inputs.

Wiring with ESP32

To interface the MR24HPC1 radar module with an ESP32 via UART, use the following wiring scheme. This enables real-time communication of motion and presence data:

  • 5V (red wire) → 5V on ESP32 or a separate regulated power source capable of supplying the sensor's current requirements (typically ~80mA).
  • GND (black wire) → GND on ESP32. Always connect grounds between sensor and microcontroller to prevent data corruption or unpredictable behavior.
  • TX (green wire) → GPIO16 (RX on ESP32). Allows the ESP32 to receive data packets from the sensor.
  • RX (blue wire) → GPIO17 (TX on ESP32). Enables the ESP32 to send optional setup commands to the radar module.

Configuration Tip: Set the UART baud rate to 115200 with 8 data bits, no parity, and 1 stop bit. Confirm your ESP32 firmware uses UART2 or an available hardware serial port. For initial testing, connect the sensor’s TX to a USB-to-Serial adapter and verify output using a serial terminal.

Troubleshooting Guide

Common Issues

🚫 No Data Received

❌ Presence Not Detected

⚠️ Intermittent Detection

🔌 UART Initialization Fails

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++

Conclusion

The ESP32 MR24HPC1 Human Static Presence Radar 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.