#ESPHome: LD2410 on ESP-12E
1 messages Β· Page 1 of 1 (latest)
@cosmic quartz Thank you very much for enlightment π I understand it better now. I am confused because I followed the link you mentioned but after uploading the ESP config it doen't show up as new device with it's entities. I wonder if the numbering of my RX/TX pins is correct based on the pure ESP-12E I use (no Wemos, nor NodeMCU, nor similar). Here's my config (sensitive data and obviously identical stuff I copied from esphome.io are stripped):
name: mmwave-sensor-01
friendly_name: mmWave Sensor 01
esp8266:
board: esp12e
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxxx"
ota:
password: "xxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Mmwave-Sensor-01"
password: "xxxx"
captive_portal:
uart:
baud_rate: 256000
data_bits: 8
parity: none
stop_bits: 1
tx_pin: 2
rx_pin: 4
web_server:
port: 80
ld2410:
[...]```
I followed this link for the numbering: https://www.mikrocontroller-elektronik.de/esp12e-tutorial-einstieg-mit-dem-esp8266-modul/
have you tried adding it manually to the esphome integration using mmwave-sensor-01.local as the host or the ip address instead of host name.
tx should be gpio1 and connected to rx on the ld2410 and rx should be gpio3 and connected to tx on the ld2410
you wil also need to add baud_rate: 0 to logger:
Awesome! Adding it manually worked. All entities are "unkown" because I tried to use other pins for LD's UART to keep the ESP's UART free for my FTDI π Let me quickly resolder it...
@cosmic quartz you are the Greatest! It works like a charm. As conclusion I can say: use only the RX/TX pins from your ESP. Kudos and a beer (or soft drink) to you. Now it's testing time in hope they will run stable π
great stuff! and you're welcome. i have a few and they work very well. π
Happy to hear. 3 Euros each on Ali is a steal. I made a cute case for printing. Later I'll add it to Thingiverse and post the link here.
oh i will look out for that π
Not sure if already visible: https://www.thingiverse.com/thing:6298295
Decent 70x25 mm case for wall or ceiling mount as housing for any kind of sensor. Opening in the front (20x5 mm) and inner recess (22x16 mm) are designed for mmWave sensor HLK-LD2410C . Given the fact that mmWave signals penetrate some materials it might also be possible to close the front windows with one layer of filament.
Case includes holdin...
yes its showing. i will give it a print... but first i need to fix my octoprint server as it's died and i've got a backlog of stuff to print π
and the 2410 will work fine even fully enclosed. i have one in a wooden box at the moment around 8mm thick with no apatures
Good to know about the penetration capabilitites. I might redesign my case based on your findings π
BTW: My case is quite big with 70 mm diameter but for my big hands just okay.