Back to Sensors & Actuators Series

Microwave Doppler Radar: RCWL-0516

April 10, 2026 Wasil Zafar 8 min read

RCWL-0516 deep dive — Doppler radar physics, through-wall motion detection, Arduino code, and smart home/security applications.

Contents

  1. Working Principle
  2. Electrical Characteristics
  3. Interfacing with MCU
  4. Calibration
  5. Code Example
  6. Real-World Applications
  7. Limitations

Working Principle

The RCWL-0516 is a microwave Doppler radar motion detector that transmits a continuous 3.18 GHz signal and detects frequency shifts in the reflected signal caused by moving objects. When a person or object moves, the reflected microwave frequency shifts proportionally to the object’s radial velocity (Doppler effect). The on-board ASIC processes this shift and outputs a digital HIGH/LOW signal.

Key advantage over PIR (HC-SR501): Microwave radar penetrates thin walls, plastic enclosures, and glass — it can detect motion through a closed project box. PIR requires a direct line-of-sight to warm objects.

Electrical Characteristics

ParameterValue
Operating Frequency3.181 GHz (ISM band)
Detection Range5–7 m (default)
Supply Voltage4–28 V DC
Current Draw~2.8 mA (active), <3 µA (idle)
OutputDigital: HIGH (3.3 V) on motion, LOW (0 V) idle
Hold Time~2 sec (adjustable via CDS pad resistor)
Trigger RepeatRepeatable (re-triggers on continued motion)
Detection Angle~360° (omnidirectional through enclosure)
Board Size~17.3 × 35.9 mm

Interfacing with an MCU

Dead simple: 3 pins — VIN (5 V), GND, OUT. The OUT pin goes HIGH (3.3 V) when motion is detected. Connect directly to a 3.3 V or 5 V MCU digital input. No pull-up resistors needed.

Sensitivity adjustment: Solder a resistor (1 MΩ typical) to the R-GN pads to reduce range. Solder a capacitor (0.1–1 µF) to the C-TM pads to change hold time.
Antenna keep-out: The PCB trace antenna is on the component side. Mount with the antenna facing the detection area and keep metal objects >10 mm away from the antenna side.

Calibration

  • Range: Add a resistor to the R-GN pad to reduce detection range; remove the default 1 MΩ jumper for maximum range
  • Hold time: Modify the capacitor on C-TM pad — larger value = longer hold time after trigger
  • Light sensitivity: The CDS pad accepts an LDR to disable detection in bright conditions (daylight inhibit)

Code Example

/*
 * RCWL-0516 Microwave Motion Sensor — Arduino
 * Wiring: VIN → 5V, GND → GND, OUT → Pin 3
 * Output: HIGH (3.3V) on motion, LOW on idle
 */
#define RADAR_PIN 3

void setup() {
    Serial.begin(9600);
    pinMode(RADAR_PIN, INPUT);
    Serial.println("RCWL-0516 Microwave Radar Ready");
    delay(3000);  /* Allow initial settling */
}

void loop() {
    if (digitalRead(RADAR_PIN) == HIGH) {
        Serial.println("Motion detected! (microwave)");
    } else {
        Serial.println("No motion");
    }
    delay(200);
}

Real-World Applications

Through-Wall Detection & Concealed Automation

Because microwave radar detects through plastic, wood, and drywall, RCWL-0516 is ideal for concealed motion-activated lighting, automatic faucets behind countertops, alarm systems inside sealed enclosures, and occupancy sensing behind wall panels. It complements PIR sensors in dual-technology detectors that require both RF and thermal motion for reduced false alarms.

SecuritySmart HomeOccupancyThrough-Wall

Limitations

  • Motion only: Detects movement, not presence — a stationary person will not trigger the sensor.
  • False triggers: Fans, swaying curtains, or vibrating machinery can cause false detections.
  • No direction: Cannot determine the direction or distance of the moving object.
  • RF interference: Other 3 GHz devices or strong EMI can cause false triggers.
  • Omnidirectional: Detects through walls in all directions, which may be undesirable in some installations.