Inspiration
The inspiration for this project came from the need to improve sleep quality and health monitoring in an effortless, non-invasive way. Many people, especially those with health conditions, may not realize the risks of fluctuating oxygen levels, abnormal heart rates, or high temperatures during sleep. I wanted to design a smart pillow that acts as both a comfort tool and a silent health guardian.
## What it does The Smart Pillow continuously monitors vital signs such as heart rate, oxygen saturation, and body temperature while the user is sleeping. It alerts the user through an Android app if any abnormal values are detected. The pillow also includes features like a smart alarm, sleep music, and gentle wake-up vibrations.
## How I built it The hardware was built using the ESP32 microcontroller, which collects data from multiple sensors embedded in the pillow. This data is sent over Wi-Fi to the Android app I developed using Java. To improve sensor accuracy and reduce motion noise, implemented basic machine learning algorithms that filter and analyze
## Challenges I ran into Some of the major challenges included: - Ensuring accurate sensor readings while the user is moving during sleep. - Maintaining low production costs while using reliable hardware. - Implementing real-time alerts without draining the device’s battery. - Guaranteeing the user's data privacy through secure encryption protocols.
## Accomplishments that I'm proud of I successfully created a working prototype that connects the ESP32 to the mobile app over Wi-Fi. The app can display real-time vitals, control alarm and music features, and send alerts when abnormal readings are detected.
## What I learned I deepened my knowledge of embedded systems, machine learning on microcontrollers, and Android app development. I also learned how to optimize user experience while keeping the hardware affordable and secure.
## What’s next
In the next phase, I will focus on enhancing the mobile application’s features to improve user experience. I plan to allow users to set specific alert times that suit their sleeping schedule, and to expand the music functionality by adding multiple relaxing tracks to choose from. These additions will help make the Smart Pillow more interactive, personalized, and supportive for better sleep quality.