10.525GHz Doppler Effect Microwave Motion Sensor SKU: CQRSENWB01

From CQRobot-Wiki
Revision as of 07:41, 16 January 2026 by Chenqi (talk | contribs) (Demo code for Raspberry Pi)
Jump to: navigation, search
Doppler Microwave Sensor

Description

The microwave motion sensor is a microwave moving object detector which is designed according to the principle of Doppler Radar. This differs from the method used by a regular infrared (IR) sensor as microwave is sensitive to a variety of objects that are microwave-reflective, and its sensor readings are not affected by the ambient temperature.

Comparison with IR Sensor:

10.525GHz Doppler Microwave Sensor-2.jpg

It is widely used not only in the detection of human body, but also many other objects. With the character of long detection distance and high sensitivity, it works without the limitation of ambient temperature and has come widely used in industrial, transportation and civil applications liquid levels, automatic door motion detection, automatic washing, production line material detection and car reversing sensors etc.

The detection objects of the microwave sensor are universal. When it comes to the actual use in life, we will usually match it with another sensor for targeted detection. For example, a combination of microwave sensor and infrared pyroelectric sensor. It can accurately judge whether someone is passing by without being disturbed by sunlight and clothing color, and will not react to other objects.

Attention

There is an ultra-high frequency MOS device inside the microwave motion sensor. When you are testing, please use battery power as much as possible to avoid breakdown that is caused by the static voltage difference between the power supply and the test equipment, such as an oscilloscope.

In addition, we suggest that you use battery power to ensure the best detection effect when you are operating the product.


Features

  • Non-contact detection.
  • Suitable for harsh environments because : will not be influenced by temperature, humidity, noise, airflow, dust, and the lights.
  • Strong resistance to radio frequency interference.
  • Low output power, no harm to human bodies.
  • Long range of detection.
  • Allow detection for non-living objects.
  • Microwave has perfect directivity, the speed is same as the speed of light.
  • Comes with development resources and manual (examples for Raspberry Pi/Arduino)

Certification Documents


Pin Description and Size

10.525GHz Doppler Microwave Sensor-91.jpg

Connection Diagram

NOTE: Align the antenna surface towards the area you need to detect.

NOTE: The sensor is continuously adjustable from 2m to 16m. The measuring distance can be changed by adjusting the potentiometer. When the potentiometer is turned clockwise to the end, the measuring distance is the smallest. After that, as the potentiometer is turned counterclockwise, the detection distance gradually increases.

10.525GHz Doppler Microwave Sensor-31.jpg

Specifications

  • Working Pressure : 3.3V/5V Plus/Minus 0.25V
  • Working Current (CW): 60mA max., 37mA typical
  • Dimension: 63mm * 48mm
  • Mounting hole size: 3.0mm

Emission Parameter

  • Detection Range: 2 meters to 16 meters continuously adjustable (min: 2 meters, max: 16 meters)
  • Emission Frequency: 10.525 GHz
  • Frequency Accuracy: 3MHz
  • Output Rate (Min): 13dBm EIRP
  • Harmonic Emission: Less Than -10dBm
  • Average Current (5% DC): 2mA typ.
  • Pulse Width (Min): 5uSec
  • Load Cycle (Min): 1%

Receiver Parameter

  • Sensitivity(10dB S/N ratio) 3Hz-80Hz Broadband: -86dBm; 3Hz-80Hz Bandwidth Clutter: 10uV.
  • Antenna Gain: 8dBi
  • Vertical Level: 3dB Beam-width: 36 degrees
  • Horizontal Level: 3dB Beam-width: 72 degrees

Ocean Wire Specifications

  • Cable Specifications: 22AWG
  • Material: Silicone
  • Withstand Voltage: Less Than 50V
  • Withstand Current: Less Than 1000MA
  • Length: 21cm
  • Line Sequence: Red-Power Supply Positive, Black-Power Supply Negative, Green-Control Board Signal Terminal.

Working Principle

The following diagram demonstrates the working principle of the sensor module. It works by amplifying a tiny signal which is received by the microwave sensor, and then through the comparison circuit it converts the signal into a square signal with a digital output of 0 or 1 which an Arduino or other micro controller can easily handle.

10.525GHz Doppler Microwave Sensor-10.jpg

Signal Detection Range

Detection Angle: The angle of detection is 72 degrees with the antenna in a parallel direction (azimuth) The vertical (pitch) direction of the antenna is 36 degrees.

10.525GHz Doppler Microwave Sensor-6.jpg

Install

Microwaves can penetrate through walls. So sometimes it has inaccuracies when microwaves penetrate through outside walls and detect moving objects in non-target areas. Be sure to choose an installation location to avoid this! It is recommended to reduce electromagnetic interference and place it away from reflective sources such as metal.

If in some cases, false alarms are triggered repeatedly, it is recommended that you modify the code yourself to make multiple consecutive triggers valid triggers before giving output.

10.525GHz Doppler Microwave Sensor-7.jpg

Demo Code for Arduino

10.525GHz Doppler Microwave Sensor-66.jpg

(1) Experiment Information: we have use the Arduino Uno Development Board and Microwave Motion Sensor in the experiment to detect the moving range of people.

(2) Experiment Supply List:

① Arduino Uno Development Board --1

② Microwave Motion Sensor Model -- 1

③ 3PIN Digital Signal Line -- 1

(3) Wiring Diagram

ATTENTION: Put MsTimer2 File in \Arduino\libraries in compiler install content BEFORE BURNPROCESS.

Example:C:\Program Files\Arduino\libraries

#include <MsTimer2.h> //Timer interrupt function
int pbIn = 0; // Define the interrupt PIN is 0, that is, digital pins 2
int ledOut = 13;                
int count=0;                    
volatile int state = LOW; //Define ledOut, default is off
 
void setup()
{      
     Serial.begin(9600);          
     pinMode(ledOut, OUTPUT);
     attachInterrupt(pbIn, stateChange, FALLING); 
// Sets the interrupt function, falling edge triggered interrupts.
     MsTimer2::set(1000,process); // Set the timer interrupt time 1000ms
     MsTimer2::start();//Timer interrupt start
}
 
void loop()                     
{
    Serial.println(count); // Printing times of 1000ms suspension
    delay(1);        
if(state == HIGH)  
//When moving objects are detected later, 2s shut down automatically after //the ledout light is convenient.
  {
    delay(2000);
    state = LOW;
    digitalWrite(ledOut, state); //Turn off led
  }

 }
 
void stateChange()  //Interrupt function
{  
  count++;  

}

void process()   //Timer handler
{
  if(count>1)  
//1000ms interrupt number greater than 1 is considered detected a moving object //(this value can be adjusted according to the actual situation, equivalent to //adjust the detection threshold of the speed of a moving object)
       {
                   state = HIGH;            
                   digitalWrite(ledOut, state);    //Lighting led
                   count=0;   //Count zero
       }
        else
            count=0; 
//In 1000ms, interrupts does not reach set threshold value is considered not detect //moving objects, interrupt the count number is cleared to zero.  
} 

On Arduino Board, upload the testing code with Arduino IDE software, connecting the wires and power up. First turn the 3V/5V switch to position 5V, after connecting to the UNO board, PWR(red) Led will be on. When detecting any human activity, the orange LED light will blink, D13 on UNO board will be blinking as well. At this time turn the switch to 3V, it will be as the same voltage as 5V. Lastly, adjust the potentiometer on the back, clockwise to decrease the sensitivity, otherwise enlarge the sensitivity.

Demo code for Raspberry Pi

This tutorial was written using the official operating system on a Raspberry Pi 5.

  • Raspberry Pi repository open the codes by [1]
10.525GHz Doppler Microwave Sensor-77.jpg

Refer to the diagram above for wiring connections. Connect the signal pin to GPIO28.

Experimental Procedures

1. First, ensure that the necessary libraries are installed.

# Update package list
sudo apt update
# Install the GCC compiler (if not already installed)
sudo apt-get install gcc
# Install the wiringPi library
sudo apt-get install wiringpi

After installing the library files, we need to create a file named motion_sensor.c using nano and write the following code into it. Before doing so, please enable root privileges.

Temporarily switch to the root user

Note: Entering a password on the Raspberry Pi is impractical; simply press Enter after typing.

su root
10.525GHz Doppler Microwave Sensor-78.jpg
#include <wiringPi.h>
#include <stdio.h>
int main()
{
wiringPiSetup();
int val;
pinMode(28, INPUT); // Microwave motion sensor connecting to PIN28 on raspberry pi
while(1) // if someone passes by
{
val = digitalRead(28);
if(val == 0)
{
printf("Somebody is in this area!\n");
delay(10); // delay 10ms
}
else // nobody passes by
{
printf("No one!\n");
delay(10); // delay 10ms
}
}
return 0;
}
10.525GHz Doppler Microwave Sensor-79.jpg

Compile and run

# Compile
gcc -o motion_sensor motion_sensor.c -lwiringPi
# Run
sudo ./motion_sensor
10.525GHz Doppler Microwave Sensor-80.jpg

After running the code, it displays “Somebody is in this area!” when someone is present and “No one!” when no one is present, as shown below.

10.525GHz Doppler Microwave Sensor-81.jpg