Arduino串口读取人体存在传感器雷达感应模块并通过OLED显示

测试使用萤火工场人体存在传感器24GHz毫米波雷达感应模块 .

该传感器模块区别于传统雷达通过检测人体移动的大幅度动作或肢体动作来判断人体存在,主要特点是在传统人体感应雷达的功能基础上,同时具备检测积累人体微动幅度的运动,来判断人体的存在的功能,因此准确率更高。

实现效果如下
在这里插入图片描述

Arduino 代码如下

/*
https://blog.csdn.net/weixin_40825989/article/details/81148177
https://blog.csdn.net/weixin_37281967/article/details/105780318
*/
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
 
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  delay(500);
  //初始化I2C地址0X3C
  // by default, we'll generate the high voltage from the 3.3v line internally! (neat!)
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);  // initialize with the I2C addr 0x3D (for the 128x64)
  // init done
 
  display.setTextSize(1);     //设置字体大小
  display.setTextColor(WHITE);  //设置字体颜色
  display.setCursor(0,0);      //设置起始光标
  display.clearDisplay();
  display.println("HELLO OLED");
  display.display();
  delay(2000);
  display.clearDisplay();
}
String a="";
void loop() {
  if(Serial.available()>0) 
  {
    char val=Serial.read();
    a+=val;
    if(val=='\n'){
       display.clearDisplay();
//       display.display();
//       display.setTextSize(1);     //设置字体大小
//       display.setTextColor(WHITE);  //设置字体颜色
       display.setCursor(0,0); //设置起始光标
       display.print(a);
       display.display();
       a="";
    }
    }
}

视频展示如下:

萤火工厂CEM5826-M11雷达模块测评

该模块可进行相关拓展,如应用于门禁、实验室、商场、医院等各种场景的人体监测和人员流动统计,相较于传统探测器在功能方面实现了增强(速度信息获取)且灵敏度和准确度均得到提高。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值