ESP32 DFRobot C4001 mmWave Presence Sensor

DFRobot C4001 mmWave Presence Sensor image

C4001

Protocol: UART,I2C

Overview

The DFRobot C4001 is a compact, high-performance mmWave radar sensor supporting UART and I2C. It provides flexible configuration and reliable presence detection for smart home and industrial applications.

About DFRobot C4001 mmWave Presence Sensor

The DFRobot C4001 (SEN0610) is a 24GHz mmWave radar sensor capable of detecting human presence, motion, and micro-movements with a detection range of up to 12 meters. It supports both UART and I2C interfaces and includes configurable detection zones, thresholds, and filtering via command protocols. Its gravity form factor and versatile communication options make it ideal for smart lighting, occupancy sensing, and automation applications.

Where to Buy

DFRobot C4001 mmWave Presence Sensor

Starting from

$19 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 (115200 baud) / I2C (0x20)
Detection Range 0.3 to 12 meters
Detection Field 120° horizontal
Power Supply 3.3V to 5.5V DC
Output UART, I2C, GPIO
Operating Temperature -20°C to +80°C
Dimensions 23mm × 24mm
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 C4001 module includes the following pins:

  • VCC – Power input (3.3V to 5.5V).
  • GND – Ground pin.
  • RX – UART receive pin (connect to TX of microcontroller).
  • TX – UART transmit pin (connect to RX of microcontroller).
  • SDA – I2C data line (connect to SDA on ESP32, typically GPIO21).
  • SCL – I2C clock line (connect to SCL on ESP32, typically GPIO22).

The sensor can be used with either UART or I2C, but not both simultaneously. Default I2C address is 0x20.

Wiring with ESP32

To connect the C4001 to an ESP32:

  • For I2C:
  • VCC → 3.3V or 5V on ESP32
  • GND → GND on ESP32
  • SDA → GPIO21 (default I2C SDA)
  • SCL → GPIO22 (default I2C SCL)
  • For UART:
  • TX → GPIO16 (ESP32 RX)
  • RX → GPIO17 (ESP32 TX)

Ensure I2C and UART are not used at the same time. Use pull-up resistors (4.7kΩ) for I2C lines if necessary.

Troubleshooting Guide

Common Issues

📡 No Detection Output

🔌 Communication Fails

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 DFRobot C4001 mmWave 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.