This DIY mmWave Presence Sensor Changed Everything - LD1125H | digiblurDIY

digiblur DIY
24 May 202322:17

Summary

TLDRThis DIY tutorial introduces an affordable ESP home sensor to prevent lights from turning off when you're sitting still. The video demonstrates how to assemble the sensor using an ESP chip and mmWave radar technology to detect minute human movements. It also covers integrating humidity sensors for bathroom automation and provides detailed steps for setting up the ESP Home software, enabling real-time adjustments and automation directly from Home Assistant.

Takeaways

  • πŸ› οΈ The video script describes a DIY project to create an ESP home sensor using an inexpensive mm-wave sensor to detect motion and prevent lights from turning off when sitting still.
  • 🏠 The project aims to solve the issue of lights going out in places like bathrooms during activities like watching videos or taking a bath, where people might sit still for extended periods.
  • πŸ” The mm-wave sensor used in the project is compared to a radar sensor, capable of detecting minute human movements, including breathing, which traditional PIR sensors might miss.
  • πŸ’‘ The script mentions using an ESP8266 or ESP32 chip for the project, with a preference for ESP32 due to its capabilities, and the use of Dupont connectors for easy plug-and-play assembly.
  • πŸ›’ The LD1125 mm-wave sensor is highlighted as a cost-effective option, costing around 10-12 USD, and its small size is emphasized for easy integration into projects.
  • πŸ”Œ The video covers the use of I2C sensors like the BME280 for additional functionalities such as measuring temperature, pressure, and humidity, which can be useful for automating bathroom ventilation.
  • πŸ”§ The script provides practical tips on using a hot glue gun for securing components and ensuring they remain in place, as well as sealing them against moisture.
  • πŸ–₯️ The software for the ESP chip is ESP Home, which is compatible with Home Assistant and can be installed through various methods, including Docker or an add-on.
  • πŸ”„ The video demonstrates the process of configuring the ESP Home device, including setting up the sensor's sensitivity and distance parameters, which can be adjusted in real-time through the Home Assistant interface.
  • πŸ”§ The script includes a step-by-step guide on installing the ESP Home software onto the ESP chip, including using the web installer and manually downloading and installing the firmware.
  • πŸŽ‰ The final takeaway is an encouragement for viewers to build their own motion sensor system, highlighting the cost-effectiveness, ease of customization, and the satisfaction of creating a functional device.

Q & A

  • What is the main issue the video aims to solve?

    -The video aims to solve the issue of lights turning off in a room when a person is sitting too still, such as while watching YouTube videos, by using a DIY ESP home sensor.

  • What is the purpose of the DIY ESP home sensor?

    -The DIY ESP home sensor is designed to detect movement in a room, preventing the lights from turning off when someone is present but not moving much.

  • What type of sensor is recommended for this DIY project?

    -The video recommends using an mm-wave sensor, which is a type of radar sensor that can detect minute human movements, including breathing.

  • What is the cost of the mm-wave sensor mentioned in the video?

    -The mm-wave sensor, specifically the LD1125, costs around 10 to 12 U.S. dollars.

  • What additional sensors can be integrated with the ESP chip for a more comprehensive setup?

    -Additional sensors like the BME280 or AHT21 for humidity and temperature can be integrated with the ESP chip to create a more comprehensive home automation setup.

  • How does the video demonstrate the effectiveness of the DIY sensor?

    -The video demonstrates the effectiveness of the DIY sensor by showing it triggering occupancy detection even when the person is lying in a tub and barely moving.

  • What is the significance of using Dupont connectors in the project?

    -Dupont connectors are used for their simplicity and ease of use; they allow for plug-and-play functionality without the need for soldering.

  • How can one adjust the sensitivity of the mm-wave sensor?

    -The sensitivity of the mm-wave sensor can be adjusted through the software settings in the ESP home dashboard, allowing for customization based on the specific environment.

  • What software is recommended for programming the ESP chips?

    -ESP Home is the recommended software for programming the ESP chips, which is compatible with Home Assistant for easy integration and automation.

  • How can one ensure the DIY sensor is not triggered by constant moving devices like ceiling fans?

    -One can adjust the sensor's sensitivity and angle, or use metal pieces to direct the signal away from constant moving devices to prevent false triggers.

  • What is the process for installing the software on the ESP chip?

    -The process involves downloading the software, using a web installer for ESP Home, connecting the ESP chip to a computer, and then installing the software via the web interface.

Outlines

00:00

πŸ› οΈ DIY ESP Home Sensor for Motion Detection

The script introduces a do-it-yourself project to create an ESP-based home sensor using an inexpensive millimeter wave (mm wave) sensor. The purpose of this sensor is to detect motion in areas like bathrooms to prevent lights from turning off when one is still. The video demonstrates the effectiveness of the sensor in detecting even slight movements, like breathing. It also discusses the use of an ESP8266 chip, which can be easily connected using Dupont connectors without the need for soldering. The excitement about the sensor's capabilities and its affordability is evident, and the video promises a detailed guide on building the sensor in subsequent parts.

05:03

πŸ”Œ Wiring and Setup of the ESP32 with Sensors

This paragraph delves into the specifics of setting up the ESP32 with various sensors, including a comparison of different Dupont jumper sizes and the importance of selecting the right ones for the mm wave sensor. The video mentions the use of the ESP32 over the ESP8266 for its advantages and shows how to connect a micro USB cable for power. It also covers the integration of a BME280 sensor for measuring humidity and temperature, and the use of hot glue to secure and insulate the components. The paragraph highlights the process of tweaking the sensor's sensitivity to avoid false triggers from moving objects like ceiling fans and emphasizes the ease of installation and customization of the DIY sensor.

10:03

πŸ–₯️ ESP Home Software Configuration and Setup

The script outlines the software aspect of the project, focusing on the ESP Home setup for the ESP32 chip. It provides guidance on installing ESP Home, either through add-ons or Docker, and accessing the web-based graphical user interface. The video details the process of creating a new device within ESP Home, configuring it with code snippets provided by the video creator or sourced from GitHub. It also explains how to adjust settings such as update intervals, Wi-Fi credentials, and UART pins for the sensor. The importance of using the correct pins and settings for the BME 280 sensor and the option to enable debug mode via UART are also discussed.

15:04

πŸ”„ Flashing and Integrating the ESP32 into Home Assistant

This section describes the process of flashing the ESP32 with the configured software using the web installer for ESP Home. It provides a step-by-step guide on connecting the ESP32 to a computer, initiating the installation process, and monitoring the progress through the status LED. The video also explains how to integrate the newly flashed device into Home Assistant, either through auto-discovery or manual addition, and emphasizes the ability to adjust sensitivity and other settings in real-time within the Home Assistant interface.

20:06

πŸŽ›οΈ Adjusting Sensitivity and Testing the DIY Sensor

The final paragraph discusses the fine-tuning of the sensor's sensitivity settings within Home Assistant to suit the specific needs of the user's environment. It explains how to adjust the distance sensitivity and movement clearance time to prevent false triggers and ensure the sensor accurately detects occupancy. The video concludes with a demonstration of the sensor's effectiveness after tweaking the settings, showing that it remains triggered even when the user tries to sit still, thus validating the successful implementation of the DIY ESP home sensor.

Mindmap

Keywords

πŸ’‘DIY ESP Home Sensor

A DIY (Do It Yourself) ESP (Espressif System on Chip) Home Sensor is a self-made device that uses an ESP chip to detect motion in a home environment. In the video, the creator discusses how to build this sensor to prevent lights from turning off when someone is sitting still, such as in a bathroom. The sensor is an inexpensive solution to an everyday problem, enhancing home automation and convenience.

πŸ’‘MM Wave Sensor

An MM Wave (Millimeter Wave) Sensor is a type of radar sensor that can detect minute movements, such as breathing, which are typically associated with living beings. In the context of the video, the creator uses this sensor to detect occupancy in a room without the need for additional PIR (Passive Infrared) sensors. This technology is crucial for the home sensor project, as it allows for more nuanced detection of movement.

πŸ’‘PIR Sensor

A PIR (Passive Infrared) Sensor is a motion detector that senses infrared radiation, typically used in security systems and home automation to detect movement. The video mentions that the DIY sensor does not require an additional PIR sensor, highlighting the advanced capabilities of the MM Wave Sensor used instead, which can detect even subtle movements like breathing.

πŸ’‘ESP8266

The ESP8266 is a microcontroller with integrated Wi-Fi, often used in DIY projects for its low cost and ease of use. In the video, the creator uses an ESP8266 chip as the core component of the DIY home sensor. It is noted for its simplicity in connecting to other components like sensors and for its role in processing the sensor data.

πŸ’‘ESP32

The ESP32 is a more advanced version of the ESP8266, also a microcontroller with integrated Wi-Fi, but with additional features like Bluetooth. The video suggests using an ESP32 over an ESP8266 for the home sensor project, indicating a preference for its enhanced capabilities, despite the project not necessarily requiring them.

πŸ’‘Dupont Connectors

Dupont Connectors, also known as jumper wires, are used to make electrical connections between components without soldering. In the video, the creator mentions using Dupont connectors to easily connect the ESP chip to other components in the home sensor project, emphasizing their simplicity and the ease of use in DIY electronics.

πŸ’‘BME280

The BME280 is a sensor that measures temperature, humidity, and atmospheric pressure. In the video, the creator uses a BME280 sensor in the DIY home sensor project to monitor humidity levels in the bathroom. This sensor adds functionality to the project, integrating environmental monitoring with motion detection.

πŸ’‘I2C

I2C (Inter-Integrated Circuit) is a communication protocol used to connect and communicate between devices within a system. In the context of the video, the BME280 sensor is connected to the ESP chip using I2C, allowing the sensor data to be read and processed by the microcontroller for home automation purposes.

πŸ’‘ESP Home

ESP Home is a system that allows users to control their ESP-based devices, such as the DIY home sensor, through a web interface. The video discusses using ESP Home to manage the home sensor, including setting up and configuring the device, and integrating it with Home Assistant for further automation.

πŸ’‘Home Assistant

Home Assistant is an open-source home automation platform that can integrate various devices and systems, including ESP-based sensors. The video mentions integrating the DIY ESP home sensor with Home Assistant, allowing for advanced automation and control of the sensor's functions, such as adjusting sensitivity and monitoring environmental conditions.

Highlights

Creating an inexpensive DIY ESP home sensor to prevent accidents caused by motion sensors turning off lights when one is too still.

Demonstrating how to adjust the sensor's sensitivity to avoid false triggers from ceiling fans or other moving objects.

Using an ESP8266 or ESP32 chip for the sensor's core functionality, emphasizing the affordability and ease of use.

Exploring the use of mm wave sensors as an alternative to PIR sensors for detecting minute human movements.

Integrating temperature and humidity sensors like the BME280 or AHT21 for additional environmental monitoring.

The importance of using the correct size of Dupont jumpers for connecting the components.

Using a hot glue gun to secure and insulate the sensor components in place.

The option to angle the sensor to avoid false triggers from adjacent objects or movements.

Configuring the sensor using ESP Home software for easy adjustments and integration with Home Assistant.

A detailed guide on installing ESP Home on ESP32 chips, including using the web installer for convenience.

Real-time tweaking of sensor settings directly in Home Assistant for optimal performance.

The capability to set movement clearance and occupied waiting times to suit different environments.

The practical application of the sensor in a bathroom to automate vent activation and prevent moisture buildup.

The use of a micro USB cable for power and the convenience of a single wire solution.

The potential for hiding the mm wave sensor in various locations as long as it's not obstructed by metal.

The excitement and satisfaction of building a functional sensor from scratch and its impact on home automation.

The final demonstration of the sensor's effectiveness in maintaining light and triggering automation without false triggers.

Transcripts

play00:00

we've all been there doing your deed

play00:03

watching your favorite YouTube videos

play00:09

yeah then the lights go out

play00:11

because you're sitting too damn still

play00:15

so we're going to show you how to fix

play00:16

this with your own inexpensive DIY ESP

play00:19

home sensor to move the rugs so you

play00:22

don't bust your butt on the floor okay

play00:23

and you're trying to come back and forth

play00:25

now run back and forth try to run in and

play00:27

run out

play00:28

go fast

play00:31

you did it anyway

play00:33

[Music]

play00:39

okay try to do it without falling as

play00:41

much

play00:43

run when I come back

play00:46

it still gets you huh

play00:48

pretty damn quick for mm wave no

play00:51

additional PIR sensor needed and it's a

play00:54

freaking 10 damn sensor well then you

play00:57

gotta add the ESP but that's not

play00:58

expensive at all

play01:00

pretty awesome and you can see my sexy

play01:03

legs I haven't been this excited about a

play01:06

damn sensor quite some time especially a

play01:11

ten dollar sense or two and you can

play01:13

build it yourself and then say I built

play01:15

that so for part two of the

play01:17

awkwardness of this video laying in the

play01:20

tub here yes I am fully clothed so no

play01:22

need to report the video we wear clothes

play01:25

then the other part as well but if you

play01:28

see the movement I can hold my breath

play01:30

and get it to go to clear

play01:34

but then when I breathe again it goes to

play01:36

detected showing movement but you know

play01:39

the occupancy stays triggered but pretty

play01:42

cool little thing you can do just off of

play01:44

a sensor in the ceiling that's pretty

play01:46

badass

play01:47

how did I come to wanting to do my own

play01:50

without you know buying something built

play01:53

you know ready to go well I'd like to do

play01:56

in my bathroom I like to have motion if

play01:58

you've been around the channel you've

play02:00

seen some of my little bathroom sensors

play02:02

that I've done I put up in the ceiling

play02:04

that have a PIR which is that passive

play02:06

infrared and then you know you do have

play02:09

the temperature humidity and that way

play02:12

the humidity gets too high that you can

play02:14

turn on the vent and that way you don't

play02:15

have all that moisture build up which is

play02:17

bad for your bathroom and it's fully

play02:19

automated because you know your other

play02:22

guests they don't turn the bathroom

play02:23

vents on and their only problem with

play02:27

that of course is uh if you sit very

play02:30

still for some pirs then of course the

play02:33

light turns off and if you're doing your

play02:35

deed and everything and whatnot and yes

play02:38

half I'm going to say what not for you

play02:40

quite a lot and whatnot but especially

play02:43

if the wife is taking a bath and just

play02:47

soaking and you have the lights go off

play02:49

yeah that's not a very good uh Waf this

play02:54

one was the one I built a while back and

play02:57

all I was doing was just taking a like

play03:00

Decor face plate I know not everybody's

play03:03

in the US but I could basically take

play03:06

just a blank face plate whatever your

play03:08

wiring standard is and then I have it in

play03:10

a box up in my ceiling and I'm able to

play03:13

run low voltage to it and then I just

play03:16

have an ESP chip this is the esp8266 on

play03:20

the bottom and I just have Dupont

play03:23

connectors and if you're not sure you've

play03:24

never seen duponts they're pretty damn

play03:27

simple see these little jumpers these

play03:29

are already pre-made there's no

play03:30

soldering there's no white weird wiring

play03:33

you know you just plugging and playing

play03:34

and following a couple things of like

play03:36

Hey where's the positive go where's the

play03:38

negative go so these just pop on and pop

play03:42

off

play03:44

and that's pretty much that simple now

play03:47

the only problem is if you do it a lot

play03:49

you pull them on and off the little

play03:50

spring will wear out but hey you can

play03:53

take your um glue gun yeah this is a

play03:56

wonderful little invention and throw

play03:59

just a little dab of hot glue on it and

play04:01

it will stay there until the next time

play04:03

you have to pull it down and want to

play04:05

maybe change it like we're doing here

play04:08

now I have tried a lot of different damn

play04:11

mm wave sensors and if you're not really

play04:14

familiar with mm wave just think of it

play04:16

as a radar sensor that detects if a

play04:20

person is breathing or making those

play04:22

little minute movements that a human you

play04:24

know would typically make that would be

play04:26

alive

play04:27

and it picks up and you know you set

play04:29

your sensitivity now if you don't want

play04:31

to be you can't set it too sensitive and

play04:33

then say some ceiling fans and

play04:35

everything

play04:36

but once you kind of get things tweaked

play04:38

it works damn awesome the

play04:43

ld1125 is around 10 to 12 U.S and it's a

play04:49

pretty small size I mean look the

play04:51

comparison of the ESP chip it's smaller

play04:54

than it now the only thing that's going

play04:56

to be weird about it is the pins on the

play04:59

back you need the smaller I think

play05:02

they're two millimeter but I probably

play05:04

don't need to correct if I don't get the

play05:06

size right there's some smaller Dupont

play05:09

jumper ends and they do make these you

play05:13

can made up already but you can see the

play05:15

different size you can see the size is a

play05:19

lot different

play05:20

between the two different sizes of

play05:23

DuPont jumpers but just make sure you

play05:25

get the right jumpers for these versus

play05:27

you know the regular style Dupont jumper

play05:31

but you got to have them on either side

play05:32

you get what I'm saying

play05:34

so that way you can plug it straight up

play05:36

to the

play05:38

esp8266 or I went with esp32 because

play05:41

there really isn't a reason to do 8266

play05:45

unless you just have them around I

play05:47

prefer to go esp32 and

play05:51

these are pretty damn cool I found these

play05:54

on Amazon I'm sure they're on AliExpress

play05:56

and whatever I'll probably link them

play05:57

around it's your regular

play06:00

little old school micro USB this is

play06:04

pretty cool because

play06:06

this is the whole wire

play06:07

you can take and it is if you can see

play06:10

the stuff here probably look pretty

play06:13

close you just gonna see the positive

play06:15

and negative that way you could run

play06:17

whatever wire over to it and you're like

play06:19

a low voltage wire into that box and

play06:22

then you could come up with your wire

play06:25

here

play06:26

and plug it in and go just like that now

play06:29

I did mention humidity how the hell are

play06:32

you going to get humidity Travis

play06:34

well that's like this

play06:36

there's some other sensors there's the

play06:40

keep want to say the sht the 31 but

play06:44

these little I squared C sensors they

play06:47

just plug into some other pins on the

play06:49

ESP chip and

play06:52

there's a I like the BME the BME 280

play06:56

works really well for humidity but

play06:59

there's also the aht 21 that I've tested

play07:02

and of course that sht31 and I'll leave

play07:05

all that below some of them you can get

play07:08

them pre-soldered but some of them do

play07:11

not come with the pin headers soldered

play07:13

on so just be aware that when you're

play07:15

purchasing them this is what it looks

play07:18

like from you know the it's I have it in

play07:22

the ceiling and I probably will show a

play07:23

picture here and this one I just have

play07:26

the BME 280 in there and I just drill a

play07:29

small hole as you can see there and

play07:31

that's the only thing I have exposed is

play07:34

the sensor of that four to pick up that

play07:36

humidity

play07:37

now this is going to look like ass but

play07:39

hey I'm the only one that's going to see

play07:41

it well I guess everyone out there as

play07:43

well but

play07:44

hot glue gun is your friend and yes you

play07:48

may laugh I put had hot glue gun stuff

play07:50

from different wall plates from like

play07:52

capacitive touch buttons and everything

play07:54

and stuff in the ceiling they've been up

play07:56

through the Louisiana heat in the Attic

play07:58

cooking for years

play08:00

and perfectly fine and the other great

play08:03

thing about it it's so easy to get one

play08:06

of these at the hobby store or whatever

play08:08

and then you can just glue the hell out

play08:10

of it and it seals the chip right up so

play08:12

you won't get any moisture on it or

play08:14

whatever this one you can see I just

play08:16

glued down the BME 280. I threw a little

play08:19

glue on the little on the DuPont jumpers

play08:23

that way they won't come off

play08:25

and one thing you'll notice I did if you

play08:28

can get on the camera is I angled I

play08:32

threw a little glue underneath because

play08:34

this is the chip here

play08:36

and so these targets face down

play08:40

and that's what you know all you're

play08:43

seeing is this here

play08:45

and the back of it well I threw a little

play08:47

glue because I wanted the chip

play08:49

to be at an angle if I'm trying to get

play08:52

to my angles right

play08:54

so I wanted to be at an angle because I

play08:57

actually had an issue when I first put

play08:58

it up that if we put your arm on the

play09:01

back of the couch that was on that

play09:03

adjacent wall well then it would set the

play09:05

light off well so I angled it a little

play09:07

bit and turned down some of the

play09:09

sensitivity and was able to tweak it and

play09:12

you know it works great I'm the only one

play09:14

that sees it so I did throw a glue all

play09:16

along the back of it to seal it and then

play09:18

because in case the ESP chip came down

play09:22

which is kind of impossible for it to do

play09:25

that then it wouldn't

play09:27

you know touch on it or whatnot and

play09:29

there it is Dick for you again Heff it

play09:32

just seals everything up and then I took

play09:34

some I just put a dab of Super Glue on

play09:37

on the DuPont jumpers on the board that

play09:39

way it won't you know come off but

play09:41

that's all up to you and how you want to

play09:43

build it if you want to build something

play09:44

that goes in the wall you want to build

play09:47

something in a different 3D printed case

play09:49

or whatever type of thing because you

play09:52

know the mm wave think about it you

play09:54

don't have to really see it like you did

play09:56

a PIR sensor you could hide it in

play09:59

something as long as it's not metal

play10:00

because metal of course going to stop

play10:02

that 24 gigahertz really well which is

play10:06

not a bad thing if you're trying to hide

play10:09

it from some ceiling fans you can

play10:11

actually use some different metal pieces

play10:14

and things to uh you know direct the

play10:17

signal from being able to see a constant

play10:19

moving device such as a computer fan or

play10:22

ceiling fan or whatever else may be

play10:24

moving in the room now the software

play10:27

we're going to put on the ESP chips well

play10:29

of course that is ESP home if you're

play10:32

running home assistant a h a Os or

play10:35

Docker or however you're running this

play10:37

thing you can run ESP home there's tons

play10:40

of different ways to install it add-ons

play10:43

Docker do the whole deal it's pretty

play10:45

much gonna all look and work the same

play10:48

check out ESP home dot IO and you can go

play10:52

show how to get started with it or

play10:54

whatever

play10:55

now once you do get that and come back

play10:58

and see my boring ass talk

play11:00

you should have this dashboard of ESP

play11:04

home and that would be like in your

play11:07

add-ons or whatever it's the web GUI 2

play11:09

where you manage all the stuff and

play11:12

there's still no dark mode

play11:14

um yeah now we're just gonna make a new

play11:16

device we're going to copy everything

play11:18

into it no big deal let's just go

play11:22

through here and we'll say continue and

play11:26

we'll call it

play11:28

esp32 radar video

play11:31

whatever you want to call it I'm gonna

play11:34

delete mine later

play11:35

this is going to be esp32 I just hit

play11:38

skip because you don't want to install

play11:40

it right now and it should be somewhere

play11:42

in your list I got a bunch of junk

play11:46

um so they should just hit edit

play11:48

and you should get the everything in

play11:51

here now

play11:52

we're just going to copy and paste

play11:53

things over all this

play11:55

so

play11:57

I have all this I'll leave the link down

play11:59

it'll come from our website if you

play12:02

really just want to copy and paste it

play12:03

you want to download it or whatever now

play12:06

the code where this comes from I didn't

play12:08

make it all just tweaked a few things it

play12:11

came from the great kingpatrick 3399 he

play12:16

has a bunch of these different models

play12:18

all on his GitHub and he has all the the

play12:22

yaml files and everything and the

play12:25

manuals and how if you want to wire it

play12:28

or whatever or the configuration the

play12:30

settings pretty simple stuff uh but I'll

play12:34

take the ones that I have tweaked and

play12:35

I'll have them ready to go on my website

play12:38

where you can just copy and paste those

play12:40

if you like there's no dark mode here of

play12:43

course and just after my eye surgery I'm

play12:45

still kind of sensitive to light so I'm

play12:47

just going to use notepad plus plus to

play12:50

go over some of his code go ahead and

play12:52

set your name now the update time I have

play12:55

that for my humidity sensor I just just

play12:57

have it wanting to check the humidity

play12:59

temperature every 30 seconds I don't

play13:01

need it more than that I added down here

play13:04

the I squared C you can change those to

play13:07

whatever you want as long as they're

play13:08

valid pins

play13:11

um everything else I left the same here

play13:14

API if you want to throw an encryption

play13:16

key in you're more than welcome to I use

play13:18

these locally I didn't need an

play13:19

encryption key nor the password you can

play13:22

put those in there my Wi-Fi I do have

play13:25

this set using my secrets because I need

play13:27

static IPS for make mine work that well

play13:30

if you don't need yours you can just

play13:32

leave it back as default

play13:35

which was this here it's just three

play13:39

lines

play13:40

you know Wi-Fi SSID and password I

play13:44

didn't need the fallback access point

play13:47

mode because it is just a ESP chip and I

play13:50

can get to it fairly easy but if you

play13:52

want to leave it in there and put in

play13:53

their captive portal more than welcome

play13:55

to see here's the RX pin and TX pin and

play14:00

I'm using those for uart2 it's

play14:02

recommended otherwise you will have

play14:04

issues that's that tx2 and rx2 on the

play14:08

esp32 then I added the BME 280 right

play14:12

here for temperature pressure and

play14:13

humidity where they don't really need

play14:15

temperature so I I just don't add it to

play14:17

the card in home assistant and I did use

play14:20

the over sampling 2x I only needed it to

play14:23

take two samples and then jump out I

play14:25

didn't need I think the default's like

play14:26

five or six and something crazy I didn't

play14:28

need that does is it moist or not and

play14:32

then the uart text I Le if you set this

play14:37

internal as true you won't see this it's

play14:40

more of a debug

play14:42

but it's also more for the chip to sin

play14:44

every time there's movement and that

play14:47

could make things a little slower and

play14:49

that's pretty much it the rest of it's

play14:51

all Patrick's code from his GitHub so

play14:55

definitely thanks to that for him

play14:57

figuring all this crap out with this

play14:59

sensor because it's really awesome that

play15:01

you can tweak everything right in home

play15:03

assistant in real time if you jump over

play15:06

here to home assistant you're not sure

play15:08

how to install on an esp32 chip in ESP

play15:12

home if you look in the home assistant

play15:14

side ESP home I have the full procedure

play15:18

with screenshots on how to create your

play15:21

little sensor like we just did and then

play15:23

how to flash it install it most people

play15:26

get worried about the word flash but

play15:28

it's just writing it to the chip it's

play15:30

installing it so we'll hit the install

play15:32

button now the first time you do this

play15:35

you do need to manually do it so I'm

play15:37

gonna hit manual download

play15:39

now you want to use modern format now it

play15:43

will take some time to build depending

play15:44

on what you're building this on just go

play15:47

do something else and just come back and

play15:49

check on him now if you change some

play15:51

other things a little bit later a lot of

play15:53

times it will just change that small

play15:55

pieces and cache what it built and it'll

play15:58

build a lot faster so once it's done

play16:00

compiling it will automatically download

play16:03

to the computer so don't delete that

play16:06

file but if you head over and probably

play16:10

the easiest one that's non-geeky is the

play16:13

web installer for ESP home

play16:16

and if you just look at you can go here

play16:18

it says install ESP Home factory bin via

play16:21

web browser that's on my website again

play16:24

we're just going to go here now at this

play16:27

point do plug in

play16:29

point over here like you can see but you

play16:32

can see I've got my USB cable plugged in

play16:35

and I do need to plug that into the

play16:37

computer should not but sometimes some

play16:40

of the esp32s you do need to hold down

play16:43

the boot Button while applying power for

play16:45

a few seconds but most of them they you

play16:48

don't have to do that so we'll go ahead

play16:50

and try it with this one we'll go here

play16:52

and oh look this works with dark mode

play16:55

but it looks really really funky

play16:57

whatever we're going to hit connect and

play17:00

there it is

play17:02

this is that cp2102 I think that's

play17:05

another cable I probably have that come

play17:07

30

play17:09

so we'll hit connect

play17:10

and we're going to say install and we

play17:13

will choose the file that's gonna be the

play17:15

file that just downloaded to your local

play17:17

computer and that's gonna be that master

play17:19

bath one I have built and hit install

play17:25

and if everything went correct and your

play17:29

thing is hooked up you should get the

play17:31

erasing message and don't browse away I

play17:35

know it's tempted to go browse to your

play17:37

favorite YouTube websites and whatever

play17:39

else just let it do the install and

play17:42

we'll come right back it doesn't take

play17:43

that long and I can actually see the

play17:45

blue light the status LED blinking on me

play17:48

so it's probably booting up by the time

play17:50

I get done running my mouth if you come

play17:53

back and jump into the ESP home

play17:56

dashboard

play17:57

we should see

play18:01

a master bath potentially there it is

play18:03

goes online

play18:05

now the logs I think I have it turned

play18:08

down where it doesn't spew out tons of

play18:10

data because I found that that was you

play18:13

know just bogging down that chip too

play18:15

much but you can go turn on all those

play18:17

debug and everything if you do have

play18:18

issues but I can already see it found my

play18:22

I squared C that's that BME 280 so I

play18:25

should be good now let's go add it into

play18:28

home assistant now a lot of times you'll

play18:30

get a notification when you pull up home

play18:32

assistant it'll Auto Discovery boom it's

play18:34

great pretty awesome but I have to go in

play18:37

and put mine manually you have to do

play18:40

that I'm going into Integrations

play18:43

and adding ESP home

play18:47

and I'm putting in that IP address and

play18:50

hit submit

play18:52

there we go esp32 master bath and we'll

play18:56

go ahead and we'll call it in the area

play18:59

the master bathroom will be good at

play19:01

doing that and hit finish

play19:04

we should see it down here

play19:07

there's a device give it a little bit

play19:10

sometimes I have seen this page take a

play19:13

little bit to load

play19:15

and then we'll go ahead and we'll say

play19:18

add to dashboard and you can see

play19:21

everything's working got humidity you

play19:23

got the temperature and the distance the

play19:25

way this is laid out you can see now

play19:28

this is my one that I have working and

play19:30

tweaked and everything and you really

play19:33

what's the cool thing about this is you

play19:35

can go ahead and install this and you

play19:37

can go sit there with your phone and

play19:39

play with these little sliders and just

play19:42

walk away let it re reset it re-triggers

play19:45

come back in you can all do it in real

play19:48

time unlike say some of those other

play19:51

sensors this is pretty badass where you

play19:53

can do all this now the MTH mth2 mth3

play19:58

that's the different I guess the other

play20:00

one I call it Gates but that's the

play20:02

distance for sensitivity MTH 1 is 0 to

play20:05

2.8 and then 2.8 to 8 and then eight and

play20:09

I do believe the sensitivity

play20:13

the higher you slide the slider is the

play20:17

less sensitive it is see on this

play20:20

particular one in this bathroom I got a

play20:22

small bat front bathroom I didn't need

play20:25

like eight meters of distance and I

play20:27

didn't want it reading eight meters

play20:29

because then that's going to go well

play20:30

beyond that room and Trigger so I set

play20:33

them all the way like don't be sensitive

play20:35

at all

play20:36

and then I even said this is the max

play20:39

distance

play20:40

I even set the max distance to 1.9

play20:43

that's kind of I where I needed it to be

play20:46

so I could catch the tub and it has

play20:49

worked out well

play20:51

now you're gonna play around with all

play20:52

with yours there's also the movement

play20:55

clearance time and then I think that's

play20:58

the direction let me go back on let me

play21:01

see what that is yeah move

play21:03

occupied to clearance waiting time and

play21:06

then move to occupied waiting time and

play21:10

really you just got to go in and go play

play21:11

around with these and watch the sensors

play21:13

but it's not that crazy to do because

play21:16

there's not a whole lot of stuff to mess

play21:18

with really so it's pretty

play21:20

simple to mess around with and then you

play21:22

can drive all your automation straight

play21:24

from it and I love this damn thing so

play21:30

it's go build one dude it's it's badass

play21:34

trust me it has changed stuff and it's

play21:37

not that expensive to do

play21:40

all right dude so we turned the blind

play21:43

all right dude so we turn the clearance

play21:45

time and the movement time way down now

play21:48

I want you to go trick the light like

play21:50

you did the last one go in there and try

play21:51

to sit still

play22:00

you can't do it can you

play22:03

it stays triggered huh

play22:06

come out

play22:09

stop

play22:12

come back right here it's cool and stuff

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
DIYESPHome SensorMotion DetectionTutorialRadar SensorHumidity ControlAutomationESP32Bathroom Safety