Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Low-Frequency Timing and System Power

Defining Occupancy Separately From Time Since the Last PIR Motion Event | Crystal & Oscillator Handbook

Pyroelectric infrared sensors commonly detect changes. The absence of a new change event does not establish that a desk is empty. Define the two states separately for acceptance.

Suppose an in-house low-voltage office indicator displays vacant or occupied based on synthetic activity records. The model first receives an activity event. After a while, the event count stops increasing and the indicator shows vacant. A separate synthetic reference shows occupancy did not change, and the 32.768 kHz clock continued running. The issue is that software treats one kind of observation as evidence for a different state.

No detected change and confirmed absence are different conditions

PIR usually refers to passive infrared detection. A pyroelectric element responds to changes in received infrared radiation, for example when the observed region changes relative to the background. It does not emit probe light. This characteristic can support lighting and office reminders. Detection depends on factors such as the environment, differences between targets, and the module's decision criteria. It does not continuously measure how many people are present.

The module normally processes the sensor signal before output. No new event can mean that no change has met its detection criteria. Whether the application then keeps the occupied state, marks it unknown, or displays “no recent activity” is a separate business rule. The hardware label does not define that rule. Do not apply the offline example to real conditions involving personnel safety, access control, or security.

Start by distinguishing activity reminders from reliable continuous occupancy. The first requires verified detection of events. The second requires separate acceptable evidence or an explicit unknown state. Two products described as sensors can support different applications. More elaborate processing cannot establish that someone left from an interval with no new evidence.

Synthetic example with one event and a 30-second recent-activity window

These figures illustrate the application rule and do not specify sensor performance or operating conditions. Suppose an activity event occurs at time zero and no new event follows. The program defines recent activity as an event within the last 30 seconds. At 10 seconds the historical event is within the window. At 60 seconds it is outside. At that point the system can accurately report that it received no activity in the last 30 seconds. It cannot establish that the desk is empty.

Synthetic observation timeLast eventTime since eventWhat the record supports
10 s0 s10 sA recent event occurred
60 s0 s60 sNo recent event was received
60 s with an independent stateSame event stream60 sOccupancy still depends on the independent evidence

If the same event stream can occur with two different known states in the offline model, one occupied and one vacant, the timestamps alone cannot distinguish them. Better timing does not supply the missing information. A later event shows that the detection criteria were met at that moment. It says nothing conclusive about occupancy at every moment in between.

An application can define a timeout separately and identify it as a rule. “No recent activity” and “vacant” communicate different states. If procurement needs a definite status, identify which conditions justify it and when to retain unknown. A synthetic example does not guarantee performance of a real implementation.

The 32.768 kHz reference supplies timing

If an in-house low-power display needs a passive tuning-fork crystal for an oscillator circuit, NDK's NX1610SA 32.768 kHz series from Japan is one candidate. Verify load capacitance, equivalent series resistance, drive level, startup, and full ordering code. This is a low-frequency timing candidate only. It does not identify a part installed in commercial displays or detector modules. The passive part does not produce a digital clock on its own.

At the nominal frequency, 30 seconds corresponds to 983,040 cycles of 32.768 kHz. This gives the scale of the interval. If the design derives a software timeout from the reference, frequency error changes the measured delay. It supplies no new evidence that a person remains present. Even with a working clock and the specified delay, occupancy needs its own verification.

Verify sensor events and display state separately

Use existing records from an in-house isolated low-voltage sample and synthetic event streams. This example does not involve tracking real people, security, or on-site testing. Record sensor output, timestamps, display state, and the independent synthetic reference side by side. Keep one record with only input events and another with a separate reference state. If the product cannot provide continuous status, disclose that limit in the delivery documents. A clear display color is not evidence of occupancy.

CheckInformation to retainError it helps prevent
Sensor outputWhether the module reports activity events or another measureInferring absence from no new event
TimingClock source, event time, and observable intervalTreating a time rule as physical confirmation
Display logicDefinitions of occupied, no recent activity, and unknownUsing one criterion for different requirements
Clock componentFull code, oscillator circuit, and actual measurement pointSubstituting sensor evidence for oscillator acceptance

Procurement can specify detection latency, what the display shows without events, and what confirms continuous occupancy separately. A general detection-accuracy requirement cannot cover all three. If the requirement changes to continuous occupancy, revisit what the product can establish. A more accurate watch crystal will not provide missing evidence.

Frequently asked questions

Does a longer timeout let the device reliably determine occupancy? A longer delay changes when the display switches. It does not add independent information. Verify the required state with evidence suited to the application.

Why can the display be wrong when clock accuracy passes? Measuring how long no new event was received and interpreting that interval are separate tasks. Investigate the clock when it shows its own anomaly. For a rule mismatch, check the data and function definitions.

Sign off on timekeeping, event detection, and display state separately. Display unknown when information is insufficient. The timing reference cannot establish a state the system did not observe.

If the module sends an independent periodic status report, do not count an online notification as activity. It can show that the communication path responded at a particular time. It does not establish that a qualifying change occurred in the monitored area. If both status and activity are absent, the device or communication path may provide no evidence at all. An interface that cannot distinguish a valid no-activity response from no information can confuse missing evidence with a communications issue if it shows vacant. Include both conditions in synthetic acceptance examples and verify that the display can preserve an unknown state.

For a daily report, specify whether the total counts events observed each hour or independently verified occupancy duration. Counting changes needs event data. Occupancy duration needs actual start and end states. Adding intervals between events alone does not establish time spent at the desk.

When the device state is genuinely unknown, make the lack of information visible on the screen.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.