Neeraj Bansal
NBA-004Application note for NB-24 · October 2026

NBA-004 · Application note

IoT sleep monitor, from sensor hub to server

Sponsor
Dream Cantec Inc.
Program
SFU Mechatronics capstone
Duration
8 months
Stack
PCB, MQTT, PyQt

Abstract

A capstone project funded by Dream Cantec Inc. with SFU’s School of Mechatronic Systems Engineering. Over eight months, Neeraj’s team designed a device that collects sleep sensor data, sends it through an MQTT broker to a server for storage, and shows it to the user in a desktop interface.

1Development stages

The team planned the whole system first, then built it in this order.

Table 1-1. Development stages, in order
StageWork
1. Breakout boardDesigned a breakout board to test the sensors and the system before committing to final hardware
2. Production PCBsDesigned the PCBs that go inside the device, including the sensor hub
3. User interfaceBuilt a PyQt desktop interface so the data is easy to read
4. CommunicationImplemented device-to-server communication over MQTT, new to everyone on the team
5. EnclosureDesigned the mechanical housing once the electronics were ready, and 3D printed it

2Hardware

Dream Cantec sensor hub PCB version 1.0 with a 9.7 millimetre microphone footprint
Figure 2-1. Sensor hub PCB, v1.0
SolidWorks render of the device enclosure with a display window
Figure 2-2. Enclosure, designed in SolidWorks

3What made it hard

None of the team had built device-to-server communication before. MQTT was chosen because it is widely used in IoT devices and would leave room for future development.

Back to the NB-24 datasheet

NBA-004Submit document feedbackCopyright © 2026 Neeraj Bansal