check in
Completed

Mijia intelligent light sensing night light changed people in the sensor

PROMijia intelligent light sensing night light changed people in the sensor

tag

90
0
0
0
Mode:Full

License

GPL 3.0

Creation time:2024-12-13 08:47:11Update time:2024-12-17 05:46:32

Description

1. Project introduction

At present, the common sensor in Mijia is the human body infrared sensor. People are currently in the sensor Lingpu and Ziqing, and there is no action in the headquarters of the Mi family.

Since Xiaomi IOT does not provide chips for sale to individual developers, there are also many human sensors, door and window sensors, and so on on the Internet. The basic features are pretty much the same. It's really not very optimistic in terms of price.

After my whimsical ideas and inspiration from the bigwigs' plans. Came up with the idea of transforming the human presence sensor through the Mijia smart light-sensing night light newly launched by Mijia, which is cheap and moderately functional. It only costs 30-50 yuan.

This plan is partly inspired by Xianyu@狗东的间谍  B站@沈乔治_

QQ group: 713228544

 

2. Description

This item is divided into Deluxe Edition and Normal Edition.

The Deluxe Edition adopts advanced ACDC power modules, and arranges peripheral security measures and filtering to ensure a more stable and safe power supply.

The standard version uses the most basic components to ensure the normal operation of the circuit.

Control Principle:

The original solution was to use the radar to control an LED to irradiate the photoresistor to achieve the switch, but the heat was severe and the LED could be damaged during use.

Therefore, the scheme has been improved and realized through optocoupler.

The night light used to be able to link the switch of other devices through the luminous flux of the photoresistor, but now the linkage can be realized by changing the photoresistor to the form of optocoupler. The radar detects that someone outputs a high level, gives the optocoupler a signal, and turns on the light. The radar detects that there is no one, outputs a low level, and turns off the lights.

 

3. Component preparation

Normal version

1. Mijia intelligent light sensing night light MESH.

2. LD2410B radar, choose the Bluetooth version.

3.EL357N optocoupler

gxG1GRuK21P4EWpsR0iqeOXUaQN1R9BdWmipsZRe.png

4. ACDC power module

5.1K resistor*1, 0603LED*1, cable tie*2, electrical tape, M2*5 screws 4pcs.

Deluxe Edition (on top of the above)

dehrVmYGyYhhkGq7GC5OhBkyfQhOGAPY97e4nUE8.png

1. ACDC was replaced with HLK-PM01

4V8e8C7dUq4Zv8SmlCuENXg0R3IDfNsBBenm5WG8.png

2.100NF safety capacitors K104K275VC3L3.5

Nckb6s1HSLvQs9XgT9QZdWrmCQPmVGbdlQQ8s5Oa.png

3. Varistor 10D561K

9PeS1JZOhLwF4v1VDflSbOq2O4JzTdNkQ3JPeYmv.png

4. Disposable fuse SET T2.5A 250V

h4aZq6Nrqa2yfMDJM4XJr9uQ3Xw7fvKBDXSxzVML.png

5.100UF capacitance

1TtqIxyr4DZZd2Da9xleIha8pfRBMhPglKFCJ1iA.png

6.common mode choke

vAWjQ3FWYEP13RfXW8ZtRKQwfJLpfSoRJFcLRHBM.png

4. Magic Change

Comes to 220V strong electricity, please pay attention to the safety of electricity.

Both the adapter board and the 3D enclosure can be printed free of charge.

The adapter plate is 1.2mm.

VynCK41fmhv4AOzPP9nIae8SGyd4UbspZmKVGoDR.png

Solder the radar, resistor, and LED to the back of the adapter board.

xkWa3mz6rJ4DpwN2CoJZCw6AbfjMvkFj5UnZFOQ7.png

Solder the power module and optocoupler to the front of the adapter plate, and fix the power module with cable ties or adhesive tape.

bFCEmfkmHUPv1B0joItVHgtPLMk0NshpDaIyW6AZ.png

11ExggiRQ7p6wMk4wkXYQRVbNqJvPKKj3TeTF74p.png

j8njIIovvSz7tlbSvnzawghrjmh2rs9x6bcnEUBz.png

Attach the adapter plate to the 3D housing.

DX0ly75aRXK1TUN65hxUebH0siH7kadZjYwSGUvL.png

Remove the night light housing, remove the night light resistor, and remove the touch spring.

yCa2Zupv1TltpCJW3HMJv841olN3pHJV4YCB0HLO.png

Nhxn92CkoKoEYrDNyUTqNJ20f29Emk9RvJyv60zM.png

Connect the power module through the 220V pin of the night light, and connect the optocoupler to the photosensitive pin {photocoupler + on the left side of the photoresistor, and optocoupler on the right side of the photoresistor-}

Q5TI1c3siUIvrEfZvyMBHWw0zjXpTbYHO6Skm7u8.png

gVA4b2zjoTUWtdQkBXcVOjQOlEu0xIsaisb5WGBW.png

nfl1nfaqCUUUSg3dmhkwYV254ox7e9d7hRusNogX.png

Isolate the 220V power supply pin and the night light PCB with electrical tape to avoid contact with short circuit.

smNlG1jyDOF9sGC3gvQFF1JQfD5YQVU37Nvg6Zln.png

Install the shell to complete the assembly (I have made the shell bigger, and now the size is normal in the project)

qXozhOVpUcElQ05LawIs2MNvV5uxCOMrDu3TLhUZ.png

 

5. Testing

Since there is no night light reset, the night light reset method is still the original long press spring reset. The spring did not long press the original spring contact with tweezers.

Download HLKRadarTool https://www.pgyer.com/Lq8p

A6YudBugHDxssNTca0rQhYwal4yT9SlWoUP1NHtz.png

IOS is available for download in the store search.

Wf7hWSbGPLjOpC0MDQsuUOCjDQaKTUwebh6Q8G3F.jpeg

Mi Home is set to turn off the light sensor, automatically turn on the lights, and automate scene settings.

ilkj62cl7xWXkkdJRHSyjkgnB4lIbbsqJr5I4Nfg.jpeg

Ambient light - ON XX.

Ambient light and darkness - off XX.

B1KpU5y1cjEr0wljzwvSjqFVBtuoUc5aSYupHNva.jpeg

Plug the modified night light into the socket, and after powering on, open the APP to automatically search for the radar signal. Enter your password to log in.

GACzc02yEGqQaelTdfToA2BzglW2GpRY99bO1RSl.jpeg

The red circle means there is someone, the pink circle means stationary, and the green circle means no one.

The red line represents the set threshold The blue line represents the energy value of the object, and the light is on when the energy value of the object is higher than the threshold.

Someone LED is detected to be on, and no one LED is off.

wF1nIaziMUsYbP61qh6xAcOeYWg93X25J6n0x7G6.jpeg

You can adjust the parameters according to the test of the entry and exit of the human entity. Specific space adjustments.

There is no moderation here. A sensitivity of 0 is the most sensitive and 100 is the least sensitive.

rYiTIidRK0ZN9PQXkdTKTmQHp98pxgrnOLwzEdpt.jpeg

Acln9Zypfsy8r8tSAwduICBHxRKwcADIagyXeVX5.jpeg

6. Video

Bilibili:https://www.bilibili.com/video/BV1GR4y1y7Mn/?vd_source=74a9f6cb9a59140477fef67bbb0ec8ee

At present, I have not fully adjusted this, and there is a delay in turning on the lights.

Design Drawing

Download File
The preview image was not generated, please save it again in the editor.

Attachments

OrderFile nameDownload times
1
79135df1c9c30e1aa29c9955bae91b54_raw.mp4
25
Add to Album
0
0
Share
Report

Comment

All Comments(1)
Sort by time|Sort by popularity
Followers0|Likes0
Related projects
Empty

Bottom Navigation