Zigbee presence sensor on LD-2410 sensor

This is the second version of the presence sensor on the LD-2410 chip. The first one was as simple as possible, the firmware was compiled on PTVOeverything worked well, but I wanted to expand the functionality a little.

A little about the module itself.

The supply voltage is 5-12 Volts, according to the datasheet. You don't need to believe him. When assembling one, I mixed up the power supplies and connected them to 12 volts. Of course, you couldn’t fry eggs on it, but it warmed up quite noticeably. And even unpleasant.

Current consumption – 80 mA. The stated corresponds to the real one.

The radar frequency is 24 GHz. On the one hand, it’s good that he doesn’t break through three walls to fly out. On the other hand, if you crawl under the blanket with your head, then most likely he will no longer be considered a person.

Dimensions 35×7 mm. Based on the dimensions, the first version of the presence sensor was assembled in a housing from an MR-16 LED lamp.

The module has an output at which 3.3 volts appears when a presence is detected. And the UART, where when turned on it begins to non-stop send a long line with all the data.

Unfortunately, not all Zigbee devices have a wonderful feature, direct binding. That is, one device sends a command to another indirectly, bypassing the coordinator, smart home server, etc. That is, a body appeared in the toilet – the light came on. No body – no light. On the one hand, it’s good, on the other hand, if it’s daytime, it’s light outside, the sensor is in the hallway, and the sun is shining through the window, then why turn on the light? So, a light sensor and a light threshold value were added to the presence sensor

Now let's go back from the hallway to the toilet. When you go there at night, you don’t really want the light to turn on and finally wake you up. Therefore, the current time and the start and end times of the “day period” were added to the sensor. Led mode is the operating mode of the LED in the sensor (always on, always off, turns on only at night when present)

Accordingly, two sensor outputs for binding were added, “day” and “night”.

The first solution is to turn off the microwave sensor itself, for members of the tinfoil hat sect. The second and third are the same exits.

As a result, we have the following operating algorithm. If the current time is within the specified period and the illumination is lower than the specified one, the first output is triggered. If the time is outside – the second one. This is how you can easily set it up so that the light in the bathroom turns on during the day and the night light at night

The device diagram has not become much more complicated since the first version:

On the top side of the board there is the same CC2530 module, above it the LD-2410 sensor itself, a photoresistor, an LED, power supply and a transistor for turning off the sensor.

On the bottom is either a power supply, if you need to connect to 220, or just a microUSB connector

Assembled using the example of a USB powered version:

Gerberas and firmware can be downloaded here

To purchase a ready-made device, you can write to me

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *