Source: https://mokxi.com/parts/rcwl0516
Updated: 2026-11-16

Part

# Microwave motion sensor

A microwave radar that sees movement through plastic and thin walls. OUT holds 3.3 V for two seconds after.

See every part

- 5 pins
- 1 setting
- In 3 projects
- In 2 lessons

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Microwave motion sensor in brief

What it is, and every setting the properties panel gives it.

The RCWL-0516 is a small blue Doppler radar board: a 3.2 GHz oscillator and printed antenna on one side and an RCWL-9196 chip on the other, so it sees movement through plastic, glass and thin walls, with no lens. Its pins are 3V3, GND, OUT, VIN and CDS. VIN takes 4 to 28 V, so on an Uno it runs from 5 V with OUT on pin 2, and on an ESP32 from the 5 V (VIN) pin with OUT on any GPIO, since OUT swings to the board’s own 3.3 V. There is no library, only digitalRead. Mokxi raises OUT the moment something moves, keeps it high while the movement continues, and drops it hold seconds after it stops, 2 by default as on the stock board. Unlike the HC-SR501 PIR there is no dead time after a pulse. CDS pulled below about 0.7 V turns it off, and 3V3 is a 3.3 V source while VIN is powered. Click it to start or stop movement. The classic mistake is feeding VIN 3.3 V, under its 4 V minimum. Range, what lies in the way and false triggers from fans or a second sensor are not modeled.

Family

Sensors

Pins

5

hold

2

Pins

## 5 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

Role

What it does

3V3

Input or output

The board's own 3.3 V regulator output, up to 100 mA.

GND

Input or output

Ground.

OUT

Input or output

High, at 3.3 V, while movement is seen and for the hold time after.

VIN

Input or output

Supply, 4 to 28 V.

CDS

Input

The light sensor pads. Pulled below about 0.7 V, the sensor is off. Leave it open.

How to use it

## How to use the RCWL-0516 radar sensor with an Arduino

Five pads: 3V3, GND, OUT, VIN and CDS. VIN wants 4 to 28 V, so it takes 5 V, never the 3.3 V pin; GND goes to GND and OUT to pin 2. Leave 3V3 and CDS unconnected. OUT swings to the board’s own 3.3 V, which an Uno reads as HIGH, so there is no library and no level shifter, only digitalRead(2).

Click the sensor to start something moving and the Uno’s LED on pin 13 lights at once; click again and it goes out two seconds later, the board’s hold time, which the serial monitor measures. Start the movement again just after the LED goes out and it lights at once, because unlike a PIR it has no dead time. It also sees through plastic, glass and thin walls, so on a real build point it away from the next room.

Part pin

Board pin

VIN

5 V

GND

GND

OUT

Pin 2

On an ESP32, power VIN from the 5 V (VIN) pin; OUT at 3.3 V goes straight to any GPIO.

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

The whole job, from the radar light sketch

How it is modeled

## What is true about the Microwave motion sensor, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Modeled

OUT rises at once to the board's 3.3 V, continued movement keeps it high, and
it drops hold seconds after the movement stops (2 s with the stock board).
Unlike a PIR there is no dead time after a pulse and no single-shot jumper.
CDS pulled low turns the sensor off, and 3V3 is a 3.3 V source while VIN is
powered.

### Not modeled

The range (about 7 m) and what is in the way: something is either moving in
range or it is not. False triggers from fans, vibration or a second sensor
nearby.

From RCWL-0516 microwave motion sensor, in full.

Projects

## See the Microwave motion sensor in a project

3 built-in projects use it. Each opens in the editor, already wired.

Lessons

## Where it turns up in a lesson

2 lessons place it in their own circuits.

### Learn articles

2 lessons

- Arduino RCWL-0516 Microwave Radar Sensor
- Arduino Halloween Props to Build in Your Browser

Boards

## The boards it is shown on

Each of these 2 boards has a built-in project with the Microwave motion sensor in it.

- Arduino Uno R3
- ESP32-C3-DevKitM-1

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Microwave motion sensor

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
