This project is a connected smart sleep monitoring system designed to track and improve sleep quality using low-power IoT technologies. It monitors physiological and environmental parameters such as heart rate (BPM), temperature, humidity, motion (presence), and weight to analyze sleep phases and trigger alarms at optimal times.
Sleep plays a critical role in health and well-being, but it's often poorly understood or tracked. We wanted to create an affordable and efficient solution to bring sleep insights directly to users without wearables, relying instead on contactless sensors. This was both a technical challenge and a personal interest as students in embedded systems and IoT.
Hardware :
- Microcontroller: The project is powered by an Arduino-compatible board (The Things Uno).
- Sensors: DHT11 (temperature & humidity), HX711 with load cell (weight), PIR sensor (motion), and an ECG module (heart rate).
- LoRa + TTN: Data is transmitted over LoRa to The Things Network (TTN), ensuring long-range, low-power connectivity.
- Server & Web App: A Flask server handles TTN uplinks via MQTT, stores data in a PostgreSQL database, and provides a modern front-end dashboard for users to track their sleep history, get advice, and even trigger a smart alarm.
- Fan Control: The system can activate a fan automatically if the room temperature exceeds a user-defined threshold.
Technologies used:
- LoRaWAN, TTN
- Python (Flask, psycopg2)
- PostgreSQL
- Arduino (C++)
- HTML/CSS/JavaScript
- Chart.js
We were able to benefit from a structured framework with advice provided by our school and its teachers.
Visit our school at https://www.unilasalle-amiens.fr
Comments