本帖最后由 piaoling 于 2023-2-25 19:19 编辑
之前买了10个蓝牙版ld2410b,3个放主机usb蓝牙覆盖范围,蓝牙范围之外的用esp32做蓝牙代理确实经常断线。
还是刷esphome连接ld2410b香,虽然每个都得多花10元购买esp钱。
但显示的信息也多呀,香
个人,esphome配置如下,(tx,rx针脚找了好半天,某猫奸商不告知,百度了好久找到同样板子)
esphome:
name: 2cesuo1 #自己設定name
platform: ESP32
board: mhetesp32devkit #這邊是設定自己使用的晶片
wifi:
ssid: "你的wifi名字"
password: "wifi密码"
ap:
ssid: "你的wifi名字" #這邊是設置ap,如果沒有連線成功的話
password: "wifi密码"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
# Example configuration entry
uart:
id: uart1
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
timeout: 61s
max_move_distance : 6m
max_still_distance: 0.75m
g0_move_threshold: 50
g0_still_threshold: 0
g1_move_threshold: 50
g1_still_threshold: 0
g2_move_threshold: 40
g2_still_threshold: 40
g3_move_threshold: 30
g3_still_threshold: 40
g4_move_threshold: 20
g4_still_threshold: 30
g5_move_threshold: 15
g5_still_threshold: 30
g6_move_threshold: 15
g6_still_threshold: 20
g7_move_threshold: 15
g7_still_threshold: 20
g8_move_threshold: 15
g8_still_threshold: 20
sensor:
- platform: ld2410
moving_distance:
name : Moving Distance
still_distance:
name: Still Distance
moving_energy:
name: Move Energy
still_energy:
name: Still Energy
detection_distance:
name: Detection Distance
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
|