RCWL-0516 Microwave Radar Sensor Module

SKU: SW3003
RCWL-0516 microwave radar sensor module, component side with RCWL-9196 chip and CDS, VIN, OUT, GND, 3V3 pins
RCWL-0516 microwave radar sensor module, antenna side with U2 transistor and C-TM, R-GN, R-CDS pads

RCWL-0516 Microwave Radar Sensor Module

SKU: SW3003
Default
Regular price $2.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • Low stock - 7 items left
  • Inventory on the way

Add $93.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

The RCWL-0516 is a microwave Doppler radar motion sensor module with a 3.3 V digital output and a 4–28 V supply range.

It detects movement up to about 5–7 m away and works with Arduino, ESP32 and Raspberry Pi Pico. Use it for automatic lighting, alarms and motion triggers.

Sensing
Microwave Doppler radar
Range
5–7 m
Supply
4–28 V
Output
3.3 V digital

Why choose it

  • Wide supply range — VIN accepts 4–28 V.
  • Simple output — one 3.3 V digital pin, no library needed.
  • Senses through thin plastic — it can sit inside a plastic enclosure.

Specifications

Core
Module RCWL-0516
Sensing method Microwave Doppler radar (detects movement)
Controller chip Marked RCWL-9196
Detection distance About 5–7 m (7 m by default)
Power and output
Supply voltage (VIN) 4–28 V
3V3 pin 3.3 V regulated output
OUT signal Digital, 3.3 V HIGH when motion is detected, 0 V otherwise
Default output hold time About 2 s
Pins and adjustment
Header pins 5: 3V3, GND, OUT, VIN, CDS
CDS pin Light-sensor input (leave unconnected for always-on use)
Hold time Longer with an SMD capacitor at the C-TM pads
Range Shorter with a resistor at the R-GN pads (1 MΩ gives about 5 m)
Light-sensor resistor R-CDS pads

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Power VIN from 5 V. The 3.3 V OUT signal reads as HIGH.
ESP32 / ESP8266 (3.3 V) ✓ Yes Power VIN from the 5 V pin, not 3V3. OUT is 3.3 V.
Raspberry Pi Pico ✓ Yes Power VIN from VBUS (5 V). OUT is 3.3 V.
Software ✓ Yes No library needed: read OUT with digitalRead() or Pin.value().

In the box

Included
  • 1 × RCWL-0516 Microwave Radar Sensor Module

Applications

  • Motion-activated lighting
  • Security alarm triggers
  • Presence trigger for Arduino, ESP32 and Pico projects

Tutorial

What you'll build: a motion detector that prints "Motion detected" and "No motion" on your computer as people move in front of the sensor. About 20 minutes.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D2 C++ (Arduino IDE) First-timers
ESP32 3.3 V GPIO27 C++ (Arduino IDE) Projects that add Wi-Fi later
Raspberry Pi Pico 3.3 V GP15 MicroPython (Thonny) Learning Python

New to this? Start with the Arduino UNO.

How it works

The module sends out microwaves and listens for the echo. When something moves, the echo changes (the Doppler effect) and the module sets its OUT pin to 3.3 V. It stays HIGH for about 2 seconds after the last movement, then drops back to 0 V. Your board only has to read that one pin.

  • GND — the return path for electricity. Every GND must be joined.
  • VIN — the power input, 4–28 V.
  • OUT — the signal wire: HIGH means motion.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable, 3 jumper wires.

Arduino UNORCWL-05165VVIND2OUTGNDGND3V3 and CDS: not connectedSimplified: pin positions are not to scale.

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected

# Arduino UNO pin Module pin Wire Notes
1 5V VIN Red Power. VIN accepts 4–28 V.
2 D2 OUT Yellow Signal. 3.3 V when motion is detected.
3 GND GND Black Ground.

Watch out: The OUT signal is 3.3 V. An Arduino UNO reads it as HIGH (the DroneBot Workshop tutorial wires it the same way). Leave the 3V3 and CDS pins unconnected. Check the pin labels printed on your module.

1
Install the Arduino IDE
Download and install the Arduino IDE. No library is needed for this example.
2
Wire the module
Unplug the USB cable first. Connect the three wires as shown above, then plug the board back in.
3
Select board and port
Choose Tools → Board → Arduino AVR Boards → Arduino Uno, then Tools → Port. If no port appears, use a data USB cable and install the USB driver for your board.
4
Upload the example
Paste the code below, click Upload, then Open Tools → Serial Monitor and set the speed to 115200 baud.
▸ Example 1 — Motion detected / No motion
// Wiring: VIN->5V, GND->GND, OUT->D2
const int SENSOR_PIN = 2;      // OUT pin of the RCWL-0516 (D2)
int lastState = LOW;           // remembers the previous reading

void setup() {
  Serial.begin(115200);        // speed of the Serial Monitor
  pinMode(SENSOR_PIN, INPUT);  // OUT is an input for the board
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  int state = digitalRead(SENSOR_PIN);  // HIGH = motion
  if (state != lastState) {             // print only when it changes
    lastState = state;
    if (state == HIGH) {
      Serial.println("Motion detected");
    } else {
      Serial.println("No motion");
    }
  }
  delay(50);                            // you can change this
}

✓ Check: Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once. Wave your hand in front of the module and "Motion detected" appears; a couple of seconds after you stop, "No motion" appears.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB cable, 3 jumper wires.

ESP32 DevKitCRCWL-05165VVINGPIO27OUTGNDGND3V3 and CDS: not connectedSimplified: pin positions are not to scale.

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected

# ESP32 pin Module pin Wire Notes
1 5V (VIN) VIN Red Power from the 5 V pin. VIN accepts 4–28 V.
2 GPIO27 OUT Yellow Signal. 3.3 V, safe for ESP32 GPIO.
3 GND GND Black Ground.

Watch out: Do not power the module from the 3V3 pin of the ESP32: VIN needs at least 4 V. Use the 5 V pin. ESP32 GPIO pins are 3.3 V only, which suits the OUT signal. Check the pin labels printed on your board.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 boards
Open File → Preferences and paste https://espressif.github.io/arduino-esp32/package_esp32_index.json into Additional boards manager URLs. Then open Tools → Board → Boards Manager, search "esp32" and install esp32 by Espressif Systems (official guide).
3
Wire the module
Unplug the USB cable first. Connect the three wires as shown above.
4
Select board and port
Choose Tools → Board → esp32 → ESP32 Dev Module, then Tools → Port. If no port appears, use a data USB cable and install the USB driver for your board.
5
Upload the example
Paste the code below and click Upload. If the upload fails, set Tools → Upload Speed → 115200 and upload again. Then Open Tools → Serial Monitor and set the speed to 115200 baud.
▸ Example 1 — Motion detected / No motion
// Wiring: VIN->5V, GND->GND, OUT->GPIO27
const int SENSOR_PIN = 27;     // OUT pin of the RCWL-0516 (GPIO27)
int lastState = LOW;           // remembers the previous reading

void setup() {
  Serial.begin(115200);        // speed of the Serial Monitor
  pinMode(SENSOR_PIN, INPUT);  // OUT is an input for the board
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  int state = digitalRead(SENSOR_PIN);  // HIGH = motion
  if (state != lastState) {             // print only when it changes
    lastState = state;
    if (state == HIGH) {
      Serial.println("Motion detected");
    } else {
      Serial.println("No motion");
    }
  }
  delay(50);                            // you can change this
}

✓ Check: Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once. Wave your hand in front of the module and "Motion detected" appears; a couple of seconds after you stop, "No motion" appears.

Raspberry Pi Pico Tutorial

You need: Raspberry Pi Pico (RP2040), micro-USB cable, 3 jumper wires.

Raspberry Pi PicoRCWL-0516VBUS (40)VINGP15 (20)OUTGND (18)GND3V3 and CDS: not connectedSimplified: pin positions are not to scale.

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected

# Raspberry Pi Pico pin Module pin Wire Notes
1 VBUS (physical 40) VIN Red USB 5 V. VIN accepts 4–28 V.
2 GP15 (physical 20) OUT Yellow Signal. 3.3 V, safe for Pico GPIO.
3 GND (physical 18) GND Black Ground.

Watch out: Power the module from VBUS (pin 40, 5 V from USB), not from 3V3(OUT): VIN needs at least 4 V. Pico GPIO pins are 3.3 V only, which suits the OUT signal.

1
Install Thonny
Download and install Thonny.
2
Install MicroPython
Hold the BOOTSEL button, plug in the USB cable, then release it. Download the Pico firmware from micropython.org and drag the .uf2 file onto the RPI-RP2 drive. The board restarts by itself.
3
Wire the module
Unplug the USB cable first. Connect the three wires as shown above, then plug the cable back in.
4
Choose the interpreter
In Thonny open Run → Configure interpreter and select MicroPython (Raspberry Pi Pico).
5
Run the example
Paste the code below and click Run (Stop ends it). To run it on power-up, save it on the Pico as main.py.
▸ Example 1 — Motion detected / No motion
# Wiring: VIN->VBUS (pin 40), GND->GND (pin 18), OUT->GP15 (pin 20)
from machine import Pin
import time

SENSOR_PIN = 15                      # GP15 (physical pin 20)
sensor = Pin(SENSOR_PIN, Pin.IN)     # OUT is an input for the board

print("OK - epartners.co.nz test")
last = 0                             # remembers the previous reading

while True:
    state = sensor.value()           # 1 = motion
    if state != last:                # print only when it changes
        last = state
        if state:
            print("Motion detected")
        else:
            print("No motion")
    time.sleep_ms(50)                # you can change this

✓ Check: The Shell panel in Thonny prints "OK - epartners.co.nz test" once. Wave your hand in front of the module and "Motion detected" appears; a couple of seconds after you stop, "No motion" appears.

Troubleshooting

Board Problem Likely cause Fix
All Never shows "Motion detected" VIN or GND not connected, or OUT wired to the wrong pin Re-check the pin table. VIN needs 4–28 V.
All Always shows "Motion detected" Something is moving nearby. The module can sense through thin plastic and wood. Point it away from people and fans, or test in an empty room.
All Detects too far away Default range is up to 7 m Fit a 1 MΩ resistor at the R-GN pads to reduce it to about 5 m (see the GitHub documentation in Resources).
UNO, ESP32 No port appears under Tools → Port Charge-only cable or missing USB driver Use a data USB cable and install the USB driver for your board.
ESP32 Stuck on "Connecting…" Board not in upload mode Hold the BOOT button until uploading starts.
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or USB chip Tools → Upload Speed → 115200, then upload again.
Pico No RPI-RP2 drive appears BOOTSEL was not held while plugging in Unplug, hold BOOTSEL, plug in again, then release.

Try next: print a counter of how many times motion was detected, or switch an LED on while OUT is HIGH.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • Microwaves pass through thin plastic, so the module can sit inside a plastic enclosure. Keep metal away from the front and leave at least 1 cm clear behind the board.
  • The 3V3 pin is an output. Never feed power into it; power the module through VIN.
  • It senses movement, not a person standing still. OUT drops LOW about 2 s after the last movement.

Resources

Which one should I choose?

Product Key difference Best for
This product: RCWL-0516 Microwave Doppler radar; supply 4–28 V Projects that need a radar motion trigger
PIR - HC-SR501 Pyroelectric Infrared (PIR) Motion Sensor Module Senses infrared changes with a pyroelectric element instead of radar Projects that need a PIR motion sensor

FAQ

▸ Can I use the RCWL-0516 with a 3.3 V board like the ESP32 or Pico?

Yes. The OUT pin is 3.3 V, so it is safe for ESP32 and Pico GPIO pins. Power VIN from a 5 V pin (4–28 V is accepted), not from 3V3.

▸ How is it different from a PIR sensor?

A PIR sensor reads infrared changes from warm bodies. The RCWL-0516 sends out microwaves and detects movement from the echo, and it can sense through thin plastic and wood.

▸ How long does OUT stay HIGH?

About 2 seconds after the last movement by default. A longer hold time needs an SMD capacitor soldered at the C-TM pads.

▸ Can I reduce the detection range?

Yes. The default range is up to 7 m, and a 1 MΩ resistor at the R-GN pads reduces it to about 5 m. This needs soldering a small SMD part.

▸ What does the CDS pin do?

It is a light-sensor input. Leave it unconnected for always-on use. The module has R-CDS pads for a light-dependent resistor setup, described in the GitHub notes in Resources.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

More from Various Sensors
Recently viewed