外观
概述
微波运动传感器是利用多普勒雷达原理设计的微波移动物体探测器。
与一般的红外探测器不同,微波传感器通过检测物体反射的微波来检测物体的运动状态,检测对象不会局限于人体,还有很多其他的东西。
微波传感器不受环境温度的影响,探测距离长,灵敏度高,广泛应用于车辆速度测量、自动门、感应灯、倒车雷达等工业、交通和民用设备。
由于微波传感器检测对象的普遍性,在实际生活应用中,将与另一个传感器进行有针对性的检测。例如,微波传感器 红外热释电传感器能有效判断是否有人经过,不会被阳光、衣服颜色和其他物体干扰。
特性
与其它探测方法相比,该探测方法具有以下优点:
非接触探测;
适用于恶劣环境,不受温度、湿度、噪声、气流、粉尘、光线等影响;
抗射频干扰能力强;
输出功率小,对人体无害;
探测距离远;
支持检测非生命物体
微波方向性好,速度等于光速;
产品参数
工作电压 : 5V±0.25V
工作电流(CW): 60mA max., 37mA typical
尺寸: 48.5x63mm
发射参数:
探测距离: 2-16m连续可调(最小范围2)m,最大范围16m)
发射频率 : 10.525 GHz
频率设置精度 : 3MHz
输出功率(最小): 13dBm EIRP
谐波发射: <-10dBm
平均电流 (5%DC) : 2mA typ.
脉冲宽度(Min.): 5uSec
负载循环(Min.): 1%
接收参数:
灵敏度(10dB S/N ratio)3Hz至80Hz 带宽: -86dBm
3Hz至80Hz带宽杂波 10uV
天线增益: 8dBi
垂直面3dB波束宽度: 36度
水平面 3dB 波束宽度: 72度
引脚说明
与红外热释电传感器相比
传感器模块说明
天线面说明
信号处理示意图
下图为传感器模块工作原理框图,放大传感器接收到的小信号,然后通过比较电路将信号转换为方波信号,输出0、1数字信号,方便单片机处理。
信号检测范围示意图
下图为微波信号感应范围图。检测角度:与天线平行(方向)的检测角度为72°,与天线垂直(俯仰)方向的检测角度为36°
检测角度.png 使用时请注意传感器的正反面,黄色天线面为正面!
误报示意图
下图显示了隔墙的误报。微波具有穿透建筑墙的能力。当泄漏到墙外的微波影响设防区外的移动目标时,可能会导致隔墙误报。安装此类探头时,应仔细选择安装位置,以避免误报
指示灯和输出状态说明
模块上的传感器没有检测到移动物体LED保持熄灭;当传感器检测到移动物体时,模块上LED灯会亮起,输出电平由高电平变为低电平。.5s后模块LED自动熄灭,输出电平由低电平变为高电平。如果检测到连续移动的物体,模块LED输出电平会一直闪烁,直到物体不再移动。
距离调整说明
本传感器2-16m范围连续可调,电位器沿MIN调整方向,降低探测距离;电位器逆向MIN方向调节,探测距离增大。
所需硬件
UNO x1
微波传感器模块 x1
3PIN数字信号线 x1
所需软件
接线图
说明:安装时,天线应面向需要探测的区域
注:本传感器具有2-16m范围连续可调,电位器沿MIN方向调节,探测距离减小;电位器逆着MIN调整方向,增加探测距离。
样例代码
点击下载库文件arduino定时器库函数。如何安装仓库?
代码完成功能:当微波传感器检测到移动物体时,Arduino板的D13脚LED点亮,点亮2S之后会自动熄灭,下次检测移动物体时,该了LED会再次点亮
/***************************************************
Microwave sensor
***************************************************
This example reads temperature and humidity from SHT1x Humidity and Temperature Sensor.
Created 2015-7-30
By Loan
GNU Lesser General Public License.
See for details.
All above must be included in any redistribution
****************************************************/
/***********Notice and Trouble shooting***************
1.Connection and Diagram can be found here
2.This code is tested on Arduino Uno, Leonardo, Mega boards.
3.arduino Timer library is created by jonoxer.
See for details.
****************************************************/
#include //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 peed 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.
}
更多
本文整理于DFRobot wiki