GithubHelp home page GithubHelp logo

avdl72 / esp_motion_mmwave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterkawa/esp_motion_mmwave

0.0 0.0 0.0 89 KB

LD2410 mmwave Motion detection in ESPHome for Home Assistant . Can be combined with temperature, humidity and lux sensor

C++ 100.00%

esp_motion_mmwave's Introduction

Forked from kippesikgithub (thanks!) Added some links and info, and adjusted to my needs

LD2410B mmwave Motion detection with temperature and humidity sensor for ~€8,- (housing: ~€6,-)

LD2410B mmwave Motion detection + ESP8266 (Wemos d1 mini) Board in ESPHome for Home Assistant. Can be combined with temperature, humidity and lux sensor, but I don't use lux sensor here. The LD2410B can be updated to measure luminance as well (I've read somewhere)

Shopping list

signal-2023-04-07-165048_002

Step 1

Download this repository: https://github.com/PeterKawa/esp_motion_mmwave/archive/refs/heads/main.zip

Step 2

A.

copy the code from the downloaded file uart_read_line_sensor_ld2410v3.h into a new file in the /config/esphome directory, using for example 'Studio Code server';

Do the same with the downloaded file presence-woonkamer_git.yaml

Or B.

use the 'File editor' and upload those 2 files to /config/esphome

Step 3

In HA, install the ESPhome add-on;

Extended ESPhome how-to: https://esphome.io/guides/getting_started_hassio.html

Pin outs

How to connect the stuff

Pinout ESP8266 (Wemos d1 mini) Board

image

Step 4

Connect the LD2410 cable: image

ESP8266 | LD2410B

5V <-> VCC
GND <-> GND
TX <-> RX
RX <-> TX
D7 <-> OUT

Step 5

Solder three wires to the DHT11: signal-2023-03-03-023238_002

ESP8266 | DHT11

3.3V <-> VDD
GND <-> GND
D2 <-> DATA

Something like this: signal-2023-03-03-023401_002

Step 6

Make sure you change all the !secret values, or create them in your /config/esphome/secrets.yaml

Step 7

Merge (do NOT overwrite), so MERGE the example yaml code (presence-woonkamer_git.yaml) to the yaml code of a new device in ESPhome. You should keep the unique device keys and password stuff; In the end, the new device yaml should look the same as the example yaml, except from these details:

# Enable Home Assistant API
api:
  encryption:
    key: "KeepTheGeneratedKey"

ota:
  password: "KeepOtaPassword"
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "KeepDeviceNameAsSsid"
    password: "KeepGeneratedPassword"

Once finsihed and sensor is online, you can add it in Home assistant

Home Assistant

Screenshot from 2023-03-03 03-26-59

Web Config

You can monitor the distance & sensitivity by temporary enabling show_target_stats Screenshot from 2023-03-03 03-30-41

Impression

Still quite small: 20230530_200249~01

And hidden from view inside a (fake) flower pot ;-) 20230601_235500

Other sources used

https://community.home-assistant.io/t/mmwave-wars-one-sensor-module-to-rule-them-all/453260/2

https://github.com/rain931215/ESPHome-LD2410

esp_motion_mmwave's People

Contributors

peterkawa avatar kippesikgithub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.