MR24HPC1 Human Static Presence Radar Sensor

View on Amazon
Overview
Code Examples
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.
MR24HPC1 Specifications
Complete technical specification details for MR24HPC1 Human Static Presence Radar Sensor
📊 Technical Parameters
MR24HPC1 Pinout
The MR24HPC1 is a 24GHz mmWave radar sensor with 4 pins: 5V power, GND, and UART TX/RX for communication.
Visual Pinout Diagram

Pin Types
Quick Tips
mmWave radar technology,[object Object]
Object],Detects static and moving human presence
5V logic levels - verify ESP32 compatibility or use level shifter
Pin Descriptions
| Pin Name | Type | Description | Notes |
|---|---|---|---|
1 5V | Power | Power supply input (5V DC). Powers the radar chipset and MCU. | Stable voltage essential for consistent performance. |
2 GND | Power | Ground reference. Shared with ESP32 for signal integrity. | Proper grounding prevents voltage offset errors. |
3 TX | UART | UART transmit line. Outputs motion speed and presence strength data. | Connect to ESP32 RX pin (e.g., GPIO 16). Typically 5V logic. |
4 RX | UART | UART receive line. Receives configuration commands from ESP32. | Connect to ESP32 TX pin (e.g., GPIO 17). |
Wiring MR24HPC1 to ESP32
To interface the MR24HPC1 with an ESP32 via UART, connect 5V to power (or external supply), GND to ground, TX to ESP32 GPIO 16 (RX2), and RX to ESP32 GPIO 17 (TX2).
Visual Wiring Diagram

Connection Status
Protocol
Pin Connections
| MR24HPC1 Pin | Connection | ESP32 Pin | Description |
|---|---|---|---|
1 5V (red) Required | 5V or External Supply | Power supply (5V, ~80mA typical). Use regulated supply. | |
2 GND (black) Required | GND | Ground connection. Must be shared with ESP32. | |
3 TX (green) Required | GPIO 16 (RX2) | Radar transmits presence/motion data to ESP32. | |
4 RX (blue) Required | GPIO 17 (TX2) | ESP32 sends setup commands to radar. |
Object]
hardware UART2 (GPIO 16/17) - avoid conflicts with USB serial
Object]
Object]
sensor away from vibration sources
clear field of view - no obstructions
Object]
to LD series - reference LD2410C/LD2450 configurations
MR24HPC1 Troubleshooting
Common issues and solutions to help you get your sensor working
Common Issues
Issue: The ESP32 receives no data from the sensor.
Ensure correct wiring: verify that TX and RX lines are properly connected, and confirm that the UART baud rate is set to 115200 bps. Also, ensure that the sensor is powered with a stable 5V supply.
Issue: The sensor does not detect presence even when someone is in range.
Check the sensor's field of view and ensure there are no obstructions. Verify that the sensor's configuration parameters are set correctly for the desired detection range and sensitivity.
Issue: Sensor intermittently detects presence or fails to maintain detection.
Ensure that the sensor is securely mounted and not subject to vibrations. Check for sources of interference in the environment that may affect radar performance.
Issue: UART component in ESPHome reports failure to initialize.
Verify that the UART pins specified in the configuration match the physical connections. Ensure that no other devices are using the same UART bus, and that the baud rate is correctly set to 115200 bps.
Debugging Tips
Use the Serial Monitor to check for error messages and verify the sensor's output. Add debug prints in your code to track the sensor's state.
Use a multimeter to verify voltage levels and check for continuity in your connections. Ensure the power supply is stable and within the sensor's requirements.
Additional Resources
MR24HPC1 Programming Examples
Ready-to-use code examples for different platforms and frameworks
uart:
id: uart_bus
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 115200
parity: NONE
stop_bits: 1
seeed_mr24hpc1:
id: my_mr24hpc1
binary_sensor:
- platform: seeed_mr24hpc1
has_target:
name: "Presence Detected"
sensor:
- platform: seeed_mr24hpc1
custom_presence_of_detection:
name: "Static Distance"
movement_signs:
name: "Body Movement Parameter"
custom_motion_distance:
name: "Motion Distance"
custom_spatial_static_value:
name: "Existence Energy"
custom_spatial_motion_value:
name: "Motion Energy"
custom_motion_speed:
name: "Motion Speed"
custom_mode_num:
name: "Mode Number"This ESPHome configuration sets up the MR24HPC1 sensor using the seeed_mr24hpc1 platform. The UART interface is configured with a baud rate of 115200, no parity, and 1 stop bit. The binary_sensor detects presence, while the sensor entries provide detailed information on static distance, body movement, motion distance, existence energy, motion energy, motion speed, and mode number. Ensure that the UART pins are correctly connected and that the sensor is powered with a stable 5V supply.
platformio.ini
[env:mr24hpc1]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = optionallion411/Seed_24GHZ_HumanStaticLite@^1.0.0main.cpp
#include <Arduino.h>
#include <humanstaticLite.h>
HumanStaticLite radar(&Serial1);
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
radar.checkSetMode_func(open_buff, 10, false);
}
void loop() {
radar.recvRadarBytes();
radar.showData();
delay(150);
}This PlatformIO configuration sets up an ESP32 development board to interface with the MR24HPC1 radar sensor using the Seed_24GHZ_HumanStaticLite library. The platformio.ini specifies the necessary platform, board, framework, monitor speed, and library dependencies. The Arduino sketch initializes the Serial and Serial1 interfaces at 115200 baud, which is required for communication with the MR24HPC1 sensor. The HumanStaticLite object is instantiated with Serial1 to handle UART communication. In the setup() function, the sensor is configured by sending an 'open' command to enable underlying messages. The loop() function continuously reads data from the sensor and displays it via the serial monitor. A delay of 150 milliseconds is included to prevent data congestion. For more detailed information and additional functionalities, refer to the library documentation: Seed_24GHZ_HumanStaticLite.
Wrapping Up MR24HPC1
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.
Best Practices
For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.
Safety First
Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.
Ready to Start Building?
Now that you have all the information you need, it's time to integrate the MR24HPC1 into your ESP32 project and bring your ideas to life!




