Brand logo
HomeSemiconductorsEmbedded SystemsPCB DesignPower DevicesEDA ToolsGeneral
  1. Home
  2. /
  3. embeddedsystems
  4. /
  5. thermal-occupancy-sensing-elevator-cabins

Melexis MLX90642 vs PIR, ToF and Cameras: A Trade-Off Review of Elevator Cabin Occupancy Sensing for Firmware Teams

If a cabin controller must answer "occupied or not, and how many" without a camera, the short answer is a Far-Infrared (FIR) thermal array: Melexis with its MLX90642 and the People Detection Library. Its two execution modes split the firmware bill — Simple Mode sized for Cortex-M0+/M4 cores, Default (Full) Mode sized for multi-passenger counting on mainstream embedded processors. PIR modules, time-of-flight parts, floor load cells and RGB cameras each surrender privacy, still-person detection or head count somewhere along the line.

The engineering case is documented in a technical white paper built around the FIR array plus a hardware-agnostic library. Two properties decide the architecture before any tuning starts: processing stays at the edge, so no video stream is pushed to the cloud, and the sensing primitive is temperature distribution rather than reflected visible light, which means a dark cabin and a fully lit one behave the same. What this review adds is the part the paper leaves to your spreadsheet: cycles per second, RAM, mounting geometry and the failure modes that appear only inside a stainless-steel box that changes thermal background every time the doors open.

What actually lands on the cabin ceiling, device-node first

Conclusion: this is a calibrated 768-pixel analog front end feeding a deterministic logic pipeline, not a miniature camera. The MLX90642 is a fully calibrated 32x24 thermal IR array — 768 FIR pixels accessible over I2C, with the datasheet listing bus speed up to 1 MHz, noise-equivalent temperature difference quoted at 65 mK at 2 Hz refresh, and global-shutter readout (MLX90642 datasheet, Melexis). Melexis introduced the part in April 2025 as a signal-to-noise and cost reset for low-resolution thermography; the algorithm followed seven months later, going live on 4 December 2025 as a free precompiled library for registered users, explicitly optimised for ceiling-mounted sensors in space-constrained applications such as elevator cabins.

Inside, the pipeline is three stages you can reason about line by line: dynamic background suppression, separation of individual thermal blobs, and spatial tracking of those blobs across frames. No pixel map is ever rendered, so privacy-by-design is a property of the data format rather than a policy statement — a distinction that matters when a building owner's legal team, not the R&D group, is the one blocking the design.

Simple Mode or Default (Full) Mode — which one fits your MCU budget

Conclusion: pick the mode from the counting requirement, then let that pick the core. The library datasheet expresses cost as a minimum core frequency per frame rate, which is the most honest way to size a budget: Simple mode is quoted at 14 KB RAM, ~3 MHz of core-equivalent work at 8 fps and ~5 MHz at 16 fps; Default (Full) mode is quoted at ~82 MHz at 8 fps and ~164 MHz at 16 fps.

Decision inputSimple ModeDefault (Full) Mode
Sized for siliconUltra-low-power Cortex-M0+/M4Mainstream embedded application cores
Documented footprint14 KB RAMLarger — take the number from the library datasheet page, not from the Simple-mode column
Core-equivalent load @ 8 fps~3 MHz~82 MHz
Core-equivalent load @ 16 fps~5 MHz~164 MHz
Design outputPresence / vacancy, coarse blobMulti-passenger counting and localisation
Typical cabin roleLight, fan and standby gating; "anyone aboard" interlock inputFull-cabin logic, dispatcher input, traffic analytics
Power storyRuns inside a battery or trickle-powered nodeAssumes cabin supply, 24 V or local DC-DC

Run the arithmetic yourself before you commit the part number. On a 48 MHz Cortex-M0+, 164 MHz-equivalent work means you cannot reach 16 fps in Full mode even if the sensor kept up, and 82 MHz-equivalent at 8 fps is already above 100% duty — Full-mode counting is an M4/M7-class or Linux-class conversation. The same 8 fps in Simple mode is roughly 6% of a 48 MHz core, which is why presence detection can ride along on the MCU that already drives the door contacts. If you genuinely need pixel-level work on a small core, that is a different budget line: we measured what 128-bit SIMD on a $2 ESP32-S3 does to a vision kernel, and vector instructions only pay off once the arithmetic density exceeds what a FIR array's 768 words can justify.

How does FIR array sensing compare with the alternatives

Conclusion: the array wins on the two things a cabin punishes — stationary occupants and head count — and loses on unit cost and on anything requiring identity. PIR is a change detector; it needs a delta in the field of view, so a passenger standing still in a corner is a gap in the data. That behaviour is well documented outside the elevator world: the US Department of Energy's reliability evaluation of PIR occupancy sensors in commercial buildings (energy.gov, 2022) records occupants present while lights cycle off, and TI's radar academy notes that thermal transients from HVAC or a passing heat source generate false positives.

CriterionFIR array (MLX90642 + library)PIR moduleLow-res ToF / dToFRGB or IR cameraCar-floor load cell
Still person detectedYes — absolute temperature fieldNo — needs motionMostly, if motion is expectedYesYes
Head count above oneYes in Full modeNoCluster-dependent, fragile near steelYes, with a modelNo — weight only
Works in total darknessYesYesNeeds active emitter, mostly yesNo without IR illuminationYes
Privacy postureAggregate thermal blobsBinary flagDepth pointsBiometric-grade exposureNo image
Firmware cost14 KB RAM and 3 MHz-equivalent up to a full application coreA GPIO interruptVendor driver plus clusteringNPU or DSP budgetADC filter chain
Dominant failure in a steel cabinMultipath IR reflections and background shift when doors openMissed seated or stationary riders, HVAC draftsSpecular wash-off from polished wallsLens soiling, tamper, lighting swingsCannot separate a suitcase from a person

The load cell deserves one extra note, because it is already installed. Cabin weighing hardware belongs to the safety chain — overload detection and the door-hold behaviour that follows it. A thermal sensor does not replace it and should not be argued as a replacement; it supplies what the weighing device cannot, which is a count and a position. Elevator dispatch already monetises that number: commercial presence-detection products advertise skipping floor stops once a cabin is at capacity, and ASME's own review of efficient elevator technology credits dispatch that trims redundant stops with building-level energy savings.

From DVK90642 to a shippable build: a bring-up order that survives review

Conclusion: validate geometry and background behaviour on the DVK90642 development kit first, because tuning parameters cannot rescue a bad mounting position. The kit pairs the MLX90642 with pre-installed firmware running the library, so the sensor is a measured input, not an unknown. Our recommended order, adjusted from the paper's prototyping guidance:

  1. Freeze the mechanics: ceiling centre, lens normal to the floor, and the field of view checked against the car's usable area rather than its nominal dimensions.
  2. Set the bus: 3.3 V rail, I2C up to 1 MHz per datasheet, short run, 400 kHz as a robust starting point, and confirm you can read a complete frame before the next refresh window closes.
  3. Choose the library mode with the duty-cycle arithmetic above, not with the datasheet's headline feature list.
  4. Capture a true empty-cabin background with doors cycling: open, closed, and the 30 seconds after a stop, when the landing air floods the car.
  5. Enable dynamic background suppression and log the suppressed frame as CSV; that log is where you will find phantom blobs.
  6. Sweep blob thresholds against a two-person case and a corner case, then freeze the parameter set as a versioned binary blob in the build.
  7. Attach the debug surface: a UART trace of blob centroids plus a timestamped door-state signal, so presence and car state can be correlated offline.
  8. Soak for 72 hours with the car's own variable-frequency drive, door machine and lighting running, and watch for I2C error counters rather than for detection events.

Five misconceptions that sink cabin-occupancy firmware

  • "Thermal means it can't be fooled." It can. A polished cabin mirrors a warm body, so one rider can appear as two blobs; the fix is geometric and threshold work, not a bigger core.
  • "Higher refresh is always better." Ask what the noise figure does first. The quoted 65 mK NETD is tied to 2 Hz refresh; pushing frame rate buys motion resolution you may not need and thermal noise you will have to filter.
  • "Simple mode is the entry variant." It is the low-power variant, and for presence-gated lighting and standby it is usually the correct production choice.
  • "The library needs an AI toolchain." It is a logic-based, deterministic library shipped precompiled and decoupled from the hardware — no retraining, no framework, no NPU.
  • "Occupancy can feed the safety loop." It feeds dispatch, lighting, ventilation and analytics. Overload remains a weighing-device function.

Why the supply side matters for a 768-pixel part

Conclusion: watch the algorithm's distribution model and the back-end capacity, not the headline pixel count. Melexis marketing manager Joris Roels framed the December 2025 launch as removing the barriers between a proven sensor and a usable application — combining market-validated array performance with an easy-to-use algorithm so that smart buildings gain occupancy data with better privacy than a camera and lower energy use. Read commercially, that is a deliberate move: give the firmware away through the My Melexis portal and sell arrays, an arrangement that lowers the switching cost away from PIR and squeezes the low-end thermography field where rivals such as Omron's 8-pixel D6T line arrays sit on price.

On capacity: Melexis opened a wafer-test site in Malaysia in July 2024, designed with future expansion in mind (Electronics Weekly), which is the sort of back-end investment that decides whether an occupancy feature arrives in a 2026 lift controller or a 2028 one. For a team planning a design slot, the practical reading is that device lead time and library version support, not the datasheet, set your schedule. Teams that also want an evaluation playbook for the rest of the toolchain should keep the sensor bring-up and the algorithm release cadence in separate risk registers.

FAQ: what firmware teams ask before committing

Do I need a new MCU to move from PIR to a FIR array?

Usually not for presence detection. Simple mode's 14 KB RAM and ~3 MHz-equivalent load at 8 fps fit on an existing Cortex-M0+/M4 that already scans door contacts, provided the firmware has the flash headroom for a precompiled library.

Can I count five passengers reliably from the ceiling?

That is Default (Full) Mode territory, and it is a core-selection question before it is an algorithm question: budget ~82 MHz-equivalent for 8 fps and verify blob separation against real cabin geometry on the DVK90642 before promising a count in a specification.

Does a hot corridor or a sunlit landing break detection?

It perturbs the background, which is precisely what dynamic background suppression is there to absorb. Log suppressed frames during commissioning and you will know within an afternoon whether your mounting position survives the worst case.

Is this a privacy-compliant camera replacement?

For most building-ownership reviews, yes — the pipeline never produces an image and nothing streams. Get the data-path diagram signed off early: "thermal aggregate blobs, processed locally" is a much shorter conversation than a camera exemption.

Action advice for the next design slot

  • Split the requirement: presence gating goes to Simple Mode on the MCU you already have; head count is a new-core decision and should be justified by dispatcher or energy savings, not by feature lists.
  • Order one DVK90642 and spend the budget on geometry and a 72-hour soak rather than on early PCB spins.
  • Freeze thresholds as a versioned blob and keep the CSV background logs — they are the only reproducible evidence you have at design review.
  • Quote lead times for array and test capacity in the same paragraph as the algorithm, and re-check the library release cadence each quarter before you re-spin firmware.

Sources referenced

  • Melexis MLX90642 datasheet
  • Melexis Library People Detection datasheet
  • Melexis press release, 4 December 2025
  • Melexis MLX90642 introduction, 10 April 2025
  • DVK90642 development kit product page
  • US DOE / RTI, Evaluation of the Reliability of PIR Sensors (2022)
  • ASME, Energy Efficient Elevator Technologies
  • Electronics Weekly, Melexis opens Malaysian wafer testing site (July 2024)
Brand logo

Grand Metropolitan Hotel

Industry Media for Semiconductors & Electronic Engineering

SemiconductorsEmbedded SystemsPCB DesignPower DevicesEDA ToolsGeneralAPAC TechDigit

© 2026 Electronics & Engineering.

Cookie Notice

We use cookies to improve your experience and analyze website traffic. Read our Privacy Policy to learn more.