Smart sensor mattress
A bed that knows you’re there. A battery that stops being the problem.
- My role
- Migrated the firmware to Zephyr RTOS, cut its power use and validated it on real hardware.
- Built with
- Zephyr RTOS · Bluetooth LE · Pressure sensing
The problem
A pressure-sensing mattress tells carers whether someone is in bed, how they are lying and how they slept.
The original firmware ran on FreeRTOS with Arduino code and drained its battery in months. A monitor that needs new batteries all the time gets switched off, and then it watches over nobody.
What I built
- Moved the firmware from FreeRTOS and Arduino libraries to Zephyr RTOS.
- Scanning for a grid of resistive pressure sensors, with debouncing and activity tracking.
- Posture and sleep-state classification on the device, so only a small result travels over Bluetooth LE instead of the raw grid.
- Adaptive Bluetooth advertising: the bed talks less when nobody is in it.
The hard parts
- Finding where the power went
- Measured the current draw with someone in bed and with the bed empty, then cut both through adaptive advertising and firmware work. The empty bed saw the largest drop.
How it was checked
Power measurements, overnight field tests, sensor-grid verification, Bluetooth payload checks and production provisioning.
What changed
Estimated battery life went from months to years, and the classification still happens on the bed itself.
Zephyr RTOSFreeRTOSEmbedded CBluetooth LELow-power designADCPressure sensing