hIOTron
Published © GPL3+

RCWL-0516 Doppler Radar Sensor Interfacing with Arduino

In this project, we are going to interface RCWL-0516 Doppler Radar Sensor with Arduino Nano.

IntermediateWork in progress11,040
RCWL-0516 Doppler Radar Sensor Interfacing with Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
RCWL-0516 Doppler Radar Sensor
×1
LED (generic)
LED (generic)
×1
Resistor 220 ohm
Resistor 220 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Run a Program

Arduino
int Sensor = 12;  
int LED = 3; 

void setup() {
  Serial.begin(9600);
  pinMode (Sensor, INPUT); 
  pinMode (LED, OUTPUT);   
  Serial.println("Waiting for motion");
}

void loop() {
     int val = digitalRead(Sensor); //Read Pin as input
     if((val > 0) && (flg==0))
     {
        digitalWrite(LED, HIGH);
        Serial.println("Motion Detected");
        flg = 1;
     }
     if(val == 0)
     {
        digitalWrite(LED, LOW);
        Serial.println("NO Motion"); 
        flg = 0;
     } 

Credits

hIOTron
78 projects • 2 followers
hIOTron is an internet of things based company that offers an IoT Platform, products, IoT Solutions, and IoT Training.
Contact

Comments

Please log in or sign up to comment.