CATALOG

This is an article aboutHuman presence monitoring in shared gymssolution, combined with a hands-on guide to Thingboot wall-mounted sensors.

1. Pain point: Why does a shared gym need "human presence" monitoring?

Before talking about technology, let’s look at the business scenario first. The core of a shared gym is "unattended", but this brings several headaches:

  1. Waste of lighting and air conditioning: The user forgets to turn off the lights after leaving, or turns off the lights because the infrared sensor cannot detect micro-movements (such as stretching in corners) when the user is gone. The user experience is very poor.

  2. safety hazard: If someone is injured and falls to the ground in the equipment area after closing the door, the system determines that there is no one and cannot automatically alarm.

  3. Anti-tailgating: Although the access control can stop people who haven’t paid, what if someone sneaks in and practices?

Traditional infrared sensingIt can only perceive "large movements", and people will be "blind" while sitting or lying still. That's when it's neededhuman presence sensor, it can detect "micro-movements" such as the rise and fall of the chest caused by breathing.

Thingbootwall mounted radar sensorJust solves this problem. Today we will walk you through how to incorporate it into your shared fitness program.

2. Hardware selection: Which sensor to choose?

In Thingboot’s product line, for wall-mounted scenarios, the main recommendation is something like"Smart Human Presence Radar Sensor 2 [Wall Mount]"Or dual-mode (infrared + radar) version.

  • Why choose it?it supportsWiFi direct connection, no need to buy a gateway (save a lot of money). And the detection distance is very practical:Can sense micro-motion (existence) within 4 meters and motion within 6 meters.

  • Installation location: Since it is wall-mounted, install it in the corner of the gym 2-2.5 meters above the ground, facing the equipment area or yoga area. When installing, be careful to avoid air-conditioning outlets (blowing air will interfere with radar) and drastic swinging curtains.

3. Practical docking: from "distributing network" to "getting data"

This link is the most core. One of the great advantages of Thingboot is thatThe HTTP interface is very open, there is no need to bother with the complicated MQTT Broker, just make HTTP requests directly, which is the favorite method of our back-end students.

Step one: Device network configuration (let the sensor go online)

Get the sensor and the indicator light will flash quickly after power is supplied. At this time, you need to configure the network for it.

  1. Download the "Thingboot" App or use the mini program directly.

  2. Use the "Network Distribution Mode" in the App and enter the venue's 2.4G WiFi password (Note:Does not support 5G WiFi).

  3. Tips: It supports pre-stored 5 groups of WiFi. If there are dead spots in the venue WiFi signal, you can configure a few more and it will automatically switch to the strongest one..

Step 2: Core docking logic (HTTP callback)

This is where many Thingboot users find it exciting. When the sensor detects "someone" or "no one", it will automaticallyPush to your server. You don’t need to check it all the time, just pick it up when it calls you.

How to configure callback address?In Thingboot's console, find Device Management -> HTTP Push. Fill in your server address:https://your shared fitness domain name/api/yoyo_callback

How to analyze the data when it comes?When someone walks into the gym and the sensor status changes from 0 to 1, your interface will receive a JSON packet similar to this:

Your code logic:

Step 3: Active control (check status or turn off lights)

Suppose you need to actively check whether the sensor is broken, or you want to turn off the light through the sensor's relay.

Thingboot interfaceSignature algorithmThere's a little bit of a twist, but as long as you follow the documentation, you'll be fine.

Request addresshttps://api.thingboot.com/{AppID}/device/control/

Key points: The signature generation rule ismd5( md5(AppSecret) + ts ).

Why is this so?This is more secure than passing the password directly. Even if someone captures the packet and gets your Sign, the cost of a replay attack will be high because of the timestamp limit.

For example, if no one lasts for 5 minutes, you want to remotely turn off the lights in the gym (assuming the lights are connected to the sensor relay):

4. Anti-trailing scene linkage (advanced gameplay)

If you just detect whether there is someone, only 20% of the functions are actually used. In shared gyms, there is a very disgusting pain point:One person scans the code, two people squeeze in.

Simply relying on the access control camera may not be accurate. At this time, useCooperation of two sensorsIt can be solved.

Scheme design:

  • existcorridor/buffer zoneInstall a wall-mounted human presence sensor (between two doors).

  • logic: The user scans their face to open the first door -> enter the buffer zone.

    • If the buffer sensor detectsNumber of people > 1(Although it is difficult to directly count people with a single radar, it can be judged by their size and movement trajectory, or with infrared curtains).

    • action: Immediately lock the second door and trigger the horn: "Please enter with one code per person, in order." The second door will not be opened until only one person is detected..

This kind of"AB door + presence sensor"The solution is currently a relatively high-end unmanned gym approach, which is cheaper than relying solely on cameras and has a faster response time.

5. Trampling experience (blood and tears)

During the process of connecting with Thingboot hardware, there are several points that may get you stuck:

  1. Micromotion detection delay: Radar detects "people" in milliseconds, but there is usually a delay in detecting "no people" (the default is 10-30 seconds, adjustable).Never set 0 seconds, otherwise if the person stands still and breathes a little slower, it will report that no one has turned off the light. Set to 30 seconds.

  2. WiFi disconnected: Since a WiFi solution is used, network stability must be considered. Thingboot supportLAN privatizationdeploy. If the site is often disconnected from the external network, you can set up the server on a convenient NAS or industrial computer at the site, and let the sensor and server communicate through the intranet, which is as stable as an old dog..

  3. Power wiring: The wall-mounted version is usually directly connected to 220V AC. Pay attention to power outages**. Electricians must cut off the power when making connections. Many sensors are burned because the neutral wire is connected incorrectly during live operation..

6. Summary

Connect Thingboot's wall-mounted human body sensing module to the shared fitness program, which is actuallythree steps

  1. Power distribution network, fixed on the wall.

  2. Write a callback interface on the backend, the receiving sensor shouts "Someone is coming".

  3. Write business logic: If there is someone, keep the light on + turn on the air conditioner; if there is no one for more than N minutes, the power will be automatically cut off.

This plan can save30% of electricity bill, and can also control the situation through anti-tailing and safety monitoring.Customer complaint rate dropped. If you are building your own shared fitness brand, this structure is a relatively mature and low-cost option.

人体存在传感器产品方案:
学校活动室安全监测:如何将智能人体存在雷达和烟雾传感器接入到软件项目中
查看 >>
怎么在智能家居人体感应照明中集成智能设备以实现场景联动控制
查看 >>
如何二次开发壁挂式智能感应控制器来实现语音设备联动警示
查看 >>
办公设备人体感应与安全监测:怎么将壁挂式双鉴雷达烟雾报警器集成到自己的项目中
查看 >>
便利店人体感应照明:怎么将HTTP接口壁挂人体存在检测设备接入到自己的项目中
查看 >>
共享健身房场景方案:
共享健身房灯光控制:怎么把单路智能触摸墙壁开关集成到软件项目中
查看 >>
共享健身房灯光设备控制:如何将AC3-10A 物联网计接入到项目中
查看 >>
共享健身房人体存在监测:怎么将吸顶式人体存在红外传感器集成到自己的项目中
查看 >>
共享健身房灯光设备控制:怎么把2200W智能通断器AC4对接到软件项目中
查看 >>
怎样在共享健身房人体存在监测中接入智能硬件以实现红外人体存在探测
查看 >>
监测用途方案:
怎么在智慧教室人体存在监测中集成智能硬件来实现人体微动探测
查看 >>
医院病房安全监测:怎么将烟雾感应传感器对接到项目中
查看 >>
工厂车间人体活动监测:怎样把壁挂式智能雷达感应开关对接到项目中
查看 >>
如何二次开发50A带计量空开来实现电流电压功率计量监测
查看 >>
民宿房间安全监测与节能控制:怎么把壁挂式共享空间雷达烟雾传感器接入到项目中
查看 >>