Ir directamente al contenido

All items ship from our office in Colorado USA - $5.95 Flat-Rate US shipping & free shipping on orders over $75!

RCWL-0516 Microwave Doppler Radar Sensor Motion Detector Module User Guide

RCWL-0516 Microwave Doppler Radar Sensor Motion Detector Module

📋 Overview

The RCWL-0516 Microwave Doppler Radar Sensor Module is a motion detector that uses microwave radar instead of infrared to detect movement. Unlike PIR sensors (such as the HC-SR501) that only detect warm-bodied objects like people and animals, the RCWL-0516 detects motion from any moving object — people, animals, and even non-living things — by measuring changes in reflected microwave signals.

The module transmits a continuous low-power microwave signal at approximately 3.18 GHz. When an object moves within its detection range, the frequency of the reflected signal shifts slightly (the Doppler effect). The onboard RCWL-9196 IC detects this frequency shift and outputs a HIGH signal (3.3V) on the OUT pin for approximately 2–3 seconds before returning to LOW (0V).

One of its most practical advantages is the ability to detect motion through non-metallic barriers — walls, glass, plastic panels, thin wood, and drywall — making it ideal for hidden installations inside enclosures or behind panels. It is powered by the RCWL-9196 IC and outputs a simple 3.3V HIGH signal when motion is detected, making it a direct, drop-in alternative to the HC-SR501 PIR sensor in many projects.

The module ships with header pins that must be soldered on before use with a breadboard or jumper wires.


⭐ Key Features

  • Microwave Doppler radar detection — detects motion from any moving object, not just warm bodies
  • ~7 meter (21 ft) detection range — adjustable via onboard resistor pad
  • 360° detection pattern — detects through the board from both sides (front side is more sensitive)
  • Penetrates obstacles — works through walls, glass, thin wood, and plastic enclosures
  • Simple digital output — OUT pin goes HIGH (3.3V) when motion is detected, LOW (0V) when idle
  • ~2–3 second trigger hold time — adjustable by adding a capacitor to the C-TM pad
  • Repeat trigger behavior — output stays HIGH as long as motion continues
  • Light-sensing input (CDS pad) — optional LDR connection to disable detection in bright light (daylight inhibit)
  • Wide operating voltage — 4V to 28V input with onboard 3.3V regulator
  • Ultra-compact size — approximately 17.3mm × 35.9mm
  • Low current consumption — approximately 2.8mA at 5V

📡 How Doppler Radar Detection Works

The RCWL-0516 uses a principle called the Doppler effect to detect motion. Here's how it works in simple terms:

  1. The module transmits microwaves — The onboard antenna continuously broadcasts a low-power microwave signal at approximately 3.18 GHz
  2. Signals bounce off objects — These microwaves reflect off objects in the surrounding area and return to the sensor
  3. Moving objects shift the frequency — When an object is moving, the reflected signal comes back at a slightly different frequency than what was transmitted (this is the Doppler effect — the same reason an ambulance siren sounds higher-pitched as it approaches and lower-pitched as it drives away)
  4. The IC detects the shift — The RCWL-9196 chip compares the transmitted and reflected frequencies. If it detects a frequency shift (meaning something moved), it sets the OUT pin HIGH
  5. Output goes HIGH for ~2–3 seconds — The OUT pin stays at 3.3V for approximately 2–3 seconds, then returns to 0V. If motion continues, the output remains HIGH (repeat trigger)

📝 Note: Because microwaves pass through non-metallic materials, this sensor can detect motion through walls, doors, glass, and plastic enclosures. However, it cannot penetrate metal — metal surfaces will block or reflect the signal.


📊 Specifications

Parameter Value
Sensor IC RCWL-9196
Detection Method Microwave Doppler radar (~3.18 GHz)
Operating Voltage (VIN) 4V – 28V DC (5V – 12V recommended)
Operating Current 2.8 mA (typical); 3 mA (max)
Transmit Power 20 mW (typical); 30 mW (max)
Regulated Output (3V3 pin) 3.3V, max ~100 mA
Output Signal (OUT pin) 3.3V HIGH (motion detected) / 0V LOW (idle)
Trigger Hold Time ~2 seconds default (adjustable via C-TM pad)
Trigger Mode Repeat trigger — OUT stays HIGH while motion continues
Maximum Detection Range ~7 meters (~23 feet) default; ~5 meters with R-GN resistor
Detection Pattern ~360° — both sides of board; component side is more sensitive
Operating Temperature -20°C to +80°C
Storage Temperature -40°C to +100°C
Board Dimensions Approx. 35 × 17 × 3 mm (1.38 × 0.67 × 0.12 inches) L × W × H

📏 2D Dimensional Drawing

Microwave Doppler Radar Motion Detector Sensor RCWL-0516 Module Board Dimensional Drawing
RCWL-0516 2D Dimensional Drawing

🏗️ Schematic

RCWL-0516 Schematic Diagram
RCWL-0516 Schematic

🔧 Wiring

Wiring to Arduino (Uno, Nano, Mega)

Only three wires are needed for basic operation. Connect as shown below.

RCWL-0516 Pin Arduino Pin
VIN 5V
GND GND
OUT Digital Pin 2 (or any digital input pin)
3V3 Not connected (optional: use to power other 3.3V components)
CDS Not connected (unless adding optional daylight-inhibit LDR)

Tip: After wiring, allow at least 3 seconds for the sensor to stabilize before reading the OUT pin in your code. The OUT pin may briefly go HIGH during this warm-up period — this is normal behavior.

Wiring to ESP32 / ESP8266

The RCWL-0516 is fully compatible with ESP32 and ESP8266 boards. The 3.3V output on the OUT pin connects directly to any GPIO input without a level shifter.

RCWL-0516 Pin ESP32 / ESP8266 Pin
VIN VIN or 5V pin (preferred) — or 3.3V pin if no 5V is available
GND GND
OUT GPIO 4 (or any digital input GPIO)
3V3 Not connected
CDS Not connected (unless adding optional daylight-inhibit LDR)

Note: When powering from 3.3V (e.g., the ESP32's 3V3 pin), the sensor will still operate, but detection range may be slightly reduced. For best performance, power from 5V.

Wiring to Raspberry Pi

The RCWL-0516 connects directly to Raspberry Pi GPIO with no level shifting needed. Raspberry Pi GPIO operates at 3.3V logic, which matches the RCWL-0516 output exactly.

RCWL-0516 Pin Raspberry Pi Pin
VIN Pin 2 or Pin 4 (5V power)
GND Pin 6 (GND) or any GND pin
OUT Pin 11 (GPIO 17 — BCM numbering) or any GPIO input pin
3V3 Not connected
CDS Not connected (unless adding optional daylight-inhibit LDR)

Important: Raspberry Pi GPIO pins are 3.3V tolerant only — never connect a 5V signal directly to a GPIO pin. The RCWL-0516 OUT pin outputs 3.3V, so this connection is safe without any additional circuitry.


💻 Sample Code

Arduino — Basic Motion Detection with Serial Output

This sketch prints a message to the Serial Monitor whenever motion is detected. Open the Serial Monitor at 9600 baud to see the output.

// RCWL-0516 Basic Motion Detection
// Wiring: VIN → 5V, GND → GND, OUT → Pin 2

const int MOTION_PIN = 2;  // Connect RCWL-0516 OUT to Arduino pin 2

void setup() {
  pinMode(MOTION_PIN, INPUT);
  Serial.begin(9600);
  Serial.println("RCWL-0516 Initializing...");
  delay(3000);             // Allow sensor to stabilize after power-up
  Serial.println("Ready — Waiting for motion...");
}

void loop() {
  if (digitalRead(MOTION_PIN) == HIGH) {
    Serial.println("Motion detected!");
    delay(100);            // Short delay to avoid repeated serial prints
  }
}

Arduino — Motion-Activated LED

This sketch turns on the Arduino's built-in LED (pin 13) when motion is detected and turns it off when motion stops.

// RCWL-0516 Motion-Activated LED
// Wiring: VIN → 5V, GND → GND, OUT → Pin 2

const int MOTION_PIN = 2;   // Connect RCWL-0516 OUT to Arduino pin 2
const int LED_PIN    = 13;  // Arduino built-in LED (or external LED on pin 13)

void setup() {
  pinMode(MOTION_PIN, INPUT);
  pinMode(LED_PIN, OUTPUT);
  Serial.begin(9600);
  delay(3000);             // Allow sensor to stabilize
  Serial.println("Ready");
}

void loop() {
  if (digitalRead(MOTION_PIN) == HIGH) {
    digitalWrite(LED_PIN, HIGH);
    Serial.println("Motion detected — LED ON");
  } else {
    digitalWrite(LED_PIN, LOW);
  }
  delay(50);               // Small loop delay for stability
}

Optional: Adding an LED Indicator

To add an external LED that lights up when motion is detected:

  • Connect a 220Ω resistor from Arduino Pin 13 to the anode (long leg) of an LED
  • Connect the cathode (short leg) of the LED to GND

ESP32 / ESP8266 — Motion Detection

The same logic works on ESP32 and ESP8266. Adjust the GPIO pin number to match your board layout. Set the Serial Monitor baud rate to 115200.

// RCWL-0516 with ESP32 / ESP8266
// Wiring: VIN → VIN (5V), GND → GND, OUT → GPIO 4

const int MOTION_PIN = 4;  // Connect RCWL-0516 OUT to GPIO 4

void setup() {
  pinMode(MOTION_PIN, INPUT);
  Serial.begin(115200);
  Serial.println("RCWL-0516 Initializing...");
  delay(3000);             // Allow sensor to stabilize
  Serial.println("Ready — Waiting for motion...");
}

void loop() {
  if (digitalRead(MOTION_PIN) == HIGH) {
    Serial.println("Motion detected!");
    delay(100);
  }
}

Raspberry Pi — Python Motion Detection

This Python script uses the RPi.GPIO library (pre-installed on Raspberry Pi OS) to read the sensor and print a message when motion is detected. Run from the terminal with python3 rcwl0516.py. Press Ctrl+C to exit cleanly.

# RCWL-0516 Motion Detection — Raspberry Pi
# Wiring: VIN → Pin 2 (5V), GND → Pin 6, OUT → Pin 11 (GPIO 17)
# Requires: RPi.GPIO (pre-installed on Raspberry Pi OS)

import RPi.GPIO as GPIO
import time

SENSOR_PIN = 17          # BCM GPIO 17 (physical pin 11)

GPIO.setmode(GPIO.BCM)
GPIO.setup(SENSOR_PIN, GPIO.IN)

print("RCWL-0516 Initializing...")
time.sleep(3)            # Allow sensor to stabilize
print("Ready — Waiting for motion...")

try:
    while True:
        if GPIO.input(SENSOR_PIN) == GPIO.HIGH:
            print("Motion detected!")
            time.sleep(0.1)  # Short debounce delay
except KeyboardInterrupt:
    print("Exiting...")
    GPIO.cleanup()

🔩 Configuration Pads (Advanced)

On the back of the RCWL-0516 board — the side without components — there are three sets of solder pads for optional SMD (surface-mount) components in the 0805 package. These pads let you customize the module's behavior without any software changes.

Soldering 0805 components requires a fine-tip soldering iron and SMD soldering skills. If you are not comfortable with SMD work, leave these pads unpopulated — the module works perfectly well in its default state.

Pad Label Component Type Default (Unpopulated) Effect When Populated
C-TM SMD Capacitor — 0805 ~2 second trigger hold time Extends how long the OUT pin stays HIGH after motion is detected. Larger capacitor values give longer hold times. Values in the 100 nF – 1 µF range can extend hold time to roughly 5–60 seconds. See formula below.
R-GN SMD Resistor — 0805 ~7 meter detection range Reduces detection range to approximately 5 meters. Use a 1 MΩ (1M) resistor.
R-CDS SMD Resistor — 0805 Not connected Required if adding a photoresistor (LDR) to the CDS pin for the daylight-inhibit function. Connects internal VCC to the CDS pin via a 1 MΩ resistor to form a voltage divider with the external LDR.

C-TM Hold Time Formula

The RCWL-9196 IC uses an internal oscillator whose frequency (f) sets the trigger hold time. The relationship is:

Hold time (seconds) = (1 / f) × 32,678

Adding a capacitor to the C-TM pad lowers the oscillator frequency, which increases the hold time. The default (no capacitor) gives approximately 2 seconds. To extend the hold time, experiment with capacitor values in the 100 nF to 1 µF range. For community-tested capacitor values and detailed oscillator notes, see the RCWL-0516 GitHub repository linked in the Resources section below.

Adding a Daylight Inhibit Feature (LDR)

The CDS feature lets you disable motion detection during daylight — useful for outdoor or window-mounted lighting projects where you only want the sensor active at night. To add it:

  1. Solder a 1 MΩ (1M) SMD resistor (0805) to the R-CDS pad on the back of the board.
  2. Connect a photoresistor (LDR) between the CDS pin on the main header and GND.
  3. In bright light, the LDR's resistance drops, pulling the CDS pin low and suppressing the OUT signal — the sensor will not trigger.
  4. In darkness, the LDR's resistance rises, allowing normal motion detection to resume.

Note: The LDR and R-CDS resistor are not included with the module and must be sourced separately. The CDS pin on the main 5-pin header provides the connection point for the external LDR.


🎯 Common Applications

  • Motion-activated lighting — Automatic lights that turn on when someone enters a room
  • Security and alarm systems — Intrusion detection for homes and offices
  • Occupancy detection — Detect whether a room is occupied for HVAC or energy management
  • Automatic doors and gates — Trigger door openers when someone approaches
  • Hidden sensor installations — Mount behind walls, inside enclosures, or under countertops
  • Smart home automation — Trigger IoT events using ESP32/ESP8266
  • Interactive displays and exhibits — Activate displays when visitors approach
  • Robotics — Obstacle and proximity detection for mobile robots

📈 RCWL-0516 vs. HC-SR501 PIR Sensor — Choosing the Right Sensor

Both sensors detect motion and output a digital HIGH signal, but they use very different technologies and each has strengths the other lacks. Here is a quick side-by-side comparison to help you choose.

Feature RCWL-0516 HC-SR501 PIR
Detection Method Microwave Doppler radar (~3.18 GHz) Passive Infrared — detects body heat
Maximum Range ~7 meters (~23 feet) ~7 meters (~23 feet)
Detection Pattern ~360° — senses through the board from both sides ~120° cone through Fresnel lens
Works Through Walls / Enclosures Yes — glass, plastic, thin wood, drywall No — requires unobstructed line of sight
Detects Non-Living Objects Yes — detects any moving object No — requires a warm-bodied heat source
Board Size 35 × 17 mm — very compact 32 × 24 mm + 23 mm dome — much larger
Output Signal 3.3V HIGH / 0V LOW 3.3V HIGH / 0V LOW
Adjustable Sensitivity Via solder pad (R-GN) — SMD soldering required Yes — via onboard potentiometer, no soldering needed
Adjustable Hold Time Via solder pad (C-TM) — SMD soldering required Yes — via onboard potentiometer, no soldering needed
Warm-Up Time After Power-On ~3 seconds ~30–60 seconds
Works in Hot Environments Yes — not affected by ambient temperature Less reliable — depends on heat differential between subject and surroundings
Can Be Hidden Inside Enclosure Yes — plastic and non-metallic housings are transparent to microwaves No — the dome must be exposed for the Fresnel lens to work
Common False Trigger Sources Nearby metal objects, fluorescent lights, motor interference Sunlight, nearby heat sources, HVAC drafts

Choose the RCWL-0516 when: you need to hide the sensor inside an enclosure, you're working in a hot environment where temperature differentials are small, or you need to detect motion through a non-metallic barrier.

Choose the HC-SR501 PIR when: you want easy tool-free sensitivity and hold-time adjustment via potentiometers, you only need to detect warm-bodied targets (which reduces false triggers from fans, curtains, and other moving objects), or you need a directed field of view through a Fresnel lens.


🛠️ Troubleshooting

Symptom Likely Cause Solution
OUT pin stays HIGH constantly — never goes LOW Metal object within 1 cm of the board antenna area Keep all metal objects at least 1 cm away from every side of the board. Mounting the module in a metal enclosure will cause this problem.
Frequent false triggers with no obvious motion Electromagnetic interference from fluorescent lights, power supplies, or motor drivers Relocate the sensor away from interference sources. Add a 100 µF electrolytic capacitor between VIN and GND, close to the module, to filter power supply noise.
Sensor does not detect motion at all Component side not facing the detection area; sensor not fully initialized Ensure the component side faces the area to monitor. Add a 3-second delay in your setup code after power-on before reading the OUT pin.
Sensor does not detect through a specific wall Wall contains metal — rebar, foil-backed insulation, or metal studs Microwaves do not penetrate metal. Reposition the sensor to the room surface of the wall, or find a section without metal backing.
Trigger hold time is too short for the application Default hold time is approximately 2 seconds Solder a capacitor (100 nF – 1 µF, 0805) to the C-TM pad on the back of the board to extend the hold time. Larger capacitor values give longer times.
Detection range is too large for the installation Default range is approximately 7 meters Solder a 1 MΩ (1M) resistor (0805) to the R-GN pad to reduce range to approximately 5 meters. For even shorter effective ranges, partially shield the board with non-metallic material.
OUT pin briefly goes HIGH immediately after power-on Normal sensor stabilization transient This is expected behavior. Add delay(3000); in your Arduino setup() function — or time.sleep(3) in Python — before reading the OUT pin.
Sensor triggers when nothing is visibly moving Vibrating objects (fans, motors, HVAC vents) within the detection zone The sensor detects all motion, not just human motion. Repoint or reposition the sensor to exclude known vibration sources from the detection zone.

💡 Tips for Best Results

  1. Component side faces the detection area — The component side of the board (with the IC and capacitors) is the primary detection side. It will also detect from the back, but at lower sensitivity.
  2. Keep metal away from the antenna — Do not place any metal objects within 1cm of the board, especially near the antenna trace. Metal interferes with the microwave signal and causes false triggers or reduced range.
  3. Allow 3 seconds for startup — The sensor needs a few seconds to stabilize after power-up. Always include a delay in your setup() before reading the output.
  4. Shield the back for directional detection — If you only want to detect motion in one direction, place a grounded metal plate or copper tape behind the board to block rear detection.
  5. Reduce sensitivity for indoor use — The default 7m range may be too much for small rooms. Solder a 1MΩ resistor on the R-GN pad to reduce range to 1–2 meters.
  6. Use the CDS pin for outdoor projects — Connect an LDR to the CDS pin to automatically disable detection during daylight hours (great for security lights).
  7. Avoid mounting near WiFi routers — The 3.18 GHz operating frequency is close to the 2.4 GHz WiFi band. Strong WiFi signals can occasionally cause interference.
  8. Combine with a PIR sensor for reliability — Use both an RCWL-0516 and an HC-SR501 together, requiring both to trigger, to virtually eliminate false alarms.
  9. The 3V3 pin is a power output only — do not use it as a power input to the module.
  10. Header pins are not pre-soldered — Solder the included header pins before using the module with a breadboard or Dupont jumper wires.
  11. Configuration pads (C-TM, R-GN, R-CDS) require 0805 SMD components and SMD soldering skills — Do not attempt pad modifications if you are not comfortable with surface-mount soldering.

    🏪 Where to Buy the RCWL-0516 Microwave Doppler Radar Motion Sensor

    The RCWL-0516 is available from Envistia Mall:

    Buy the RCWL-0516 Microwave Doppler Radar Motion Sensor at Envistia Mall →

    • 📦 Fast US Shipping
    • 🔄 Hassle-Free Returns
    • 📧 Responsive Customer Support

    📚 Resources & Downloads


    This guide is provided by Envistia Mall for educational and technical reference purposes. The manufacturer and Envistia LLC (dba Envistia Mall) are not responsible for any damages or losses resulting from the use of this product. Always follow proper electrical safety practices when working with electronic components. Specifications are based on manufacturer data and are subject to change without notice.

    Share this guide:
    in

    🛒 Related Products

    Find the components mentioned in this guide in our store.

    Browse Products →