esphome:
name: esphome-web-210be0
friendly_name: 人体传感器
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-210Be0"
password: "AOrdGd1o2cSQ"
captive_portal:
# 上面的代码都是基础代码,注意修改,wifi ssid 和 password
uart:
id: uart1
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
uart_id: uart1 #指定串口 就是上面uart设置的ID
timeout: 10s #无人持续时间(秒),默认5秒,不宜设置的过小,以保证动态静态目标在短时间都丢失后给予一定的冗余
max_move_distance : 3m #运动检测的最大距离 设置你想感应的范围
max_still_distance: 3m #静态检测的最大距离 设置你想感应的范围
g0_move_threshold: 50 # 动态感应门灵敏度,高于此值则触发 0米
g0_still_threshold: 0 # 静态感应门灵敏度,高于此值则触发 0米
g1_move_threshold: 40 # 0~0.75米
g1_still_threshold: 40 # 0~0.75米
g2_move_threshold: 40 # 0.75~1.5米
g2_still_threshold: 40 # 0.75~1.5米
g3_move_threshold: 40 # 1.5~2.25米
g3_still_threshold: 40 # 1.5~2.25米
g4_move_threshold: 40 # 2.25~3米
g4_still_threshold: 40 # 2.25~3米
g5_move_threshold: 40 # 3~3.75米
g5_still_threshold: 100 # 3~3.75米
g6_move_threshold: 100 # 3.75~4.5米
g6_still_threshold: 100 # 3.75~4.5米
g7_move_threshold: 100 # 4.5~5.25米
g7_still_threshold: 100 # 4.5~5.25米
g8_move_threshold: 100 # 5.25~6米
g8_still_threshold: 100 # 5.25~6米
sensor:
- platform: ld2410
moving_distance: #检测到的运动目标的距离(以厘米为单位)
name: moving_distance
still_distance: # 检测到的静止目标的距离
name: still_distance
moving_energy: # 运动目标的能量
name: moving_energy
still_energy: # 静止目标的能量
name: still_energy
detection_distance: # 目标的距离
name: detection_distance
binary_sensor:
- platform: ld2410
has_moving_target: # 运动目标是否存在
name: has_moving_target
has_still_target: # 静止目标是否存在
name: has_still_target
has_target: # 静止或移动目标是否存在
name: has_target
没有合适的资源?快使用搜索试试~ 我知道了~
使用ld2410雷达和esp01制作的人体存在传感器.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共6个文件
jpg:5个
yaml:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
硬件 HLK-LD2410B 淘宝采购约22元,带B的是蓝牙版本,最好是买蓝牙的方便调试。 ESP-01/ESP-01S 我这里使用的是01 最后买01S 省着加电阻了,我主要是有存货,价格几乎一样,淘宝采购约5元 AMS1117-3.3V 降压模块,淘宝采购约0.8元 10K 电阻两只,买01S可以不需要 CH340 usb 转 TTL/或esp01专用的下载器(贵,省事) 主要是用来给esp首次输入esphome用的,之后基本上就在线升级。
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
共 6 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- 被烧坏的CPU2024-05-17非常有用的资源,可以直接使用,对我很有用,果断支持!
![avatar](https://profile-avatar.csdnimg.cn/d5b8e16cddf148da83293d5bb68d9224_admin_maxin.jpg!1)
博士僧小星
- 粉丝: 1947
- 资源: 5905
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)