Doppler Radar Motion Sensor RCWL-0516 + Arduino

Doppler Radar Motion Sensor RCWL-0516 + Arduino © GPL3+

Replace the PIR motion sensor with this module and it's 360° detection angle baby!

  • 749 views
  • 0 comments
  • 10 respects

Components and supplies

About this project

Tutorial video if needed

               

Hello, and welcome to another Arduino tutorial, in this one we’re about motion detection using microwaves and doppler effect, and we’re using RCWL-0516 module.

Another popular motion sensor is the PIR HC-SR501, and as the name implies, it uses “Passive InfraRed” light waves to detect a motion, this PIR is emitted by humans or animals mostly, and anything that’s warm/hot.

Unlike the sensor above, the RCWL-0516 constantly sends microwaves around it, and they reflect back, if ANYTHING moves within the range will cause a change in the waves wavelength or the frequency “Known as Doppler effect“, and by anything I mean if it emits PIR/warm/hot or not, so it’s better at this point.

You can observe (hear) the Doppler effect while a police car is moving, you can hear a different siren sound when the car is near you and when it’s driving away…

RCWL-0516 Specifications

  • Range: 5 – 9 m (16.4 – 29.5 ft)
  • Detection Angle: 360° with no blind spot
  • Voltage: 4-28 VDC
  • Output: 3.4V for HIGH level and 0.7V for LOW level
  • Output Time: 2s but can be modified

Parts

     Actually the Arduino is not needed much, but I’m just doing it in case you want to add it to your project, and as you saw it’s better than the PIR sensor.

The LED is completly optional, it will just light up if there’s a trigger.

Wiring note

In the Wiring you can either wire the Ouput with a digital I/O as I did or to an analog Input, just don’t forget to modify the code and know which values the module for both LOW and HIGH levels ( approx 10 and 700, analog ADC values).

Test

The LED lights up if there’s a motion

Add-on

As you can see the module, is pretty much stand alone, so there are some modifications that you can apply directly on the circuit

  •  R-GN  : here you can solder a 1 MOhm resistor to reduce the range from 9m to 5m only
  • C-TM : here you can solder a capacitor to increase the output trigger time, 2s is the default
  • CDS: here you can add a LDR (Light Dependent Resistor), and the module will be active only when there’s *no enough light* for example of outdoor lighting, you don’t want lighting in the morning or afternoon, but you want to wait until sunset or complete dark.
  • R-CDS: here you can solder a resistor to control the *enough light, if you want to activate the module from the sunset or you want to wait until complete dark, the resistor value will define when it’s ok to start the automatic lighting for example, the smaller the resistor value, the brighter it has to be to deactivate the trigger

(this tutorial is made by PIR sensor dissing gang)

Code

Code 1Arduino
The sensor output is on 2, there’s a message that constantly print on the serial monitor: clear and if there’s a motion it tells you Motion detected, if you don’t like this constant printing you can add the flag method, it will show the message only once
#define Sensor 2

void setup() {
  
  pinMode(Sensor,INPUT);
  Serial.begin(9600);
  
}

void loop() {

bool Detection = digitalRead(Sensor);

if(Detection == HIGH)
Serial.println("Motion detected !!");
if(Detection == LOW)
Serial.println("Clear");

}
Code2.inoArduino
Adding the LED
#define Sensor 2
#define LED 3

void setup() {
  
  pinMode(Sensor,INPUT);
  pinMode(LED,OUTPUT);
  
}

void loop() {

bool Detection = digitalRead(Sensor);

if(Detection == HIGH)
digitalWrite(LED,HIGH);
if(Detection == LOW)
digitalWrite(LED,LOW);

}

Schematics

Wiring 1
Direct wiring
Uploads2ftmp2fda77f355 0887 403a a446 022fe4c7cb892fwiring1 bb yemnwris8s
Wiring 2
with a LED
Uploads2ftmp2f50f539c9 db59 41ee 96fe 3a3b21ea9e702fwiring2 bb llfwxoz3fm

Comments

Similar projects you might like

PIR Sensor Tutorial - With Or Out Arduino

by Tarantula3

  • 6,286 views
  • 3 comments
  • 27 respects

Interfacing FPM10A (50-DY) Optical Fingerprint Sensor

Project tutorial by SurtrTech

  • 4,610 views
  • 3 comments
  • 18 respects

RobotGeek PIR Motion Sensor Night Light

Project tutorial by RobotGeek Projects Team

  • 2,018 views
  • 1 comment
  • 6 respects

LED Matrix + Motion Sensor Door Display [Arduino Holiday]

Project tutorial by HeathenHacks

  • 3,800 views
  • 2 comments
  • 21 respects

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by Anbumachi

  • 2,565 views
  • 2 comments
  • 7 respects

Aurdino Radar With Processing

Project in progress by Akshay6766

  • 11,558 views
  • 4 comments
  • 40 respects
Add projectSign up / Login