Project

# Title Team Members TA Documents Sponsor
12 CHEAPER ALTERNATIVE FOR TEMPERATURE CONTROLLED SLEEP
Alex Dicheva
Patrick Wang
Wyatt Sass
Luoyan Li design_document2.pdf
final_paper2.pdf
photo2.jpg
photo3.jpg
photo4.jpg
presentation1.pdf
proposal2.pdf
video
# CHEAPER ALTERNATIVE FOR TEMPERATURE CONTROLLED SLEEP

## Team Members:
- Alex Dicheva (dicheva2)
- Wyatt Sass (wpsass2)
- Patrick Wang (pw16)

# Problem

A lot of research has been done on the impact temperature has on your sleep. In general, the body prefers a cooler temperature when we try to fall asleep. However, while we are asleep, our body tends to cool and thus might benefit from a slightly warmer environment. As a result, various efforts have been made toward temperature regulation while we sleep. Some examples might be temperature-controlled bed sheets or duvets, as can be found in the following links:

[BedJet](https://bedjet.com/products/bedjet-3-dual-zone-climate-comfort-system-for-couples), [Smartduvet](https://www.smartduvet.com/products/smartduvet), [EightSleep](https://www.eightsleep.com/product/pod-cover-mattress/)

Each takes a different approach to the problem, but the common issue is the high price. Each of these solutions is priced at over $1000, making it unaffordable for the average consumer.

# Solution

Heated blankets can be found just about anywhere, and cost between $25-50. This product can be modified to make Temperature Controlled Sleep cheap and attainable for everyone.
We can add temperature sensors to the outer layers of the heated blanket to track the temperature of the contact area between the user and the blanket. Another small sensor (like an IMU) can determine when the user's movements slow down, indicating that they may have fallen asleep. Using this data, we can create an app that allows the user to set a desired temperature for wake and sleep. We can also provide temperature recommendations allowing users to choose a temperature that will improve the quality of their sleep. Further, temperature regulation can be used in the morning to assist with waking up. Users can set a wake-up temperature based on their morning preferences and desired wake-up time.
Ultimately, this serves as a much cheaper alternative for users to optimize their sleep and improves upon existing products that are already commonplace.
# Solution Components

## Heating System

We will build the heating system off of a readily available [heated blanket](https://www.amazon.com/dp/B0C8PVTF56?ref=ppx_yo2ov_dt_b_product_details&th=1). The standard heated blanket comes with a physical remote that allows a user to cycle through some preset heating modes. We will take advantage of the heating coils that are already present in the blanket, but handle the control with our microcontroller which automatically changes the temperature. The goal is to create a much more fine-tuned system, allowing the user to set a specific temperature ahead of time (i.e. 70 degrees Fahrenheit).

## Temperature sensing system

We will be detecting the heat on the user side of the blanket through temperature sensors ([LM35DZ/NOPB](https://www.digikey.com/en/products/detail/texas-instruments/LM35DZ-NOPB/32489) or [DS18B20](https://www.digikey.com/en/products/detail/umw/DS18B20/16705963)) placed throughout the blanket. These sensors would all be connected to our central microcontroller. With this temperature information, we could determine the average temperatures in the different zones of the blanket, and this would be used closely with our heating system to achieve our desired heating effects.

## Sleep-sensing system

A presumption that we make for the scope of the project is that movement is a clear indication of whether or not a user is asleep. For example, we might set the threshold to be that 10 minutes of stillness indicates a high likelihood that the user has fallen asleep.
To implement this system, we will detect movement in the blanket with a [small IMU](https://www.seeedstudio.com/Seeed-XIAO-BLE-Sense-nRF52840-p-5253.html), which we will connect to our central controller. We can track most of the major movements of a user through this IMU which would be stationed near the center of our blanket.
After our system determines the user is asleep, we can trigger the blanket to switch modes and change the maintenance temperature.

## App/controller system

We will allow user control via an app or controller system that takes input in terms of a desired temperature range. The user would be able to choose two distinct temperatures: one for when they are still awake and one for after they fall asleep. These would be used to automatically heat the blanket to the correct temperature. The app would interface with our blanket through a wireless connection like Bluetooth, using a small Bluetooth module ([RN4871-I/RM140](https://www.digikey.com/en/products/detail/microchip-technology/RN4871-I%2FRM140/10673433?utm_adgroup=&utm_source=google&utm_medium=cpc&utm_campaign=PMax%20Shopping_Product_Medium%20ROAS%20Categories&utm_term=&utm_content=&utm_id=go_cmp-20223376311_adg-_ad-__dev-c_ext-_prd-10673433_sig-Cj0KCQiAwbitBhDIARIsABfFYIL4Gtr9hoeUv5XgH5ri-AVEjJB8Bv6-2h_za2l4JRQnJtcR90yLKv4aAq5ZEALw_wcB&gad_source=1&gclid=Cj0KCQiAwbitBhDIARIsABfFYIL4Gtr9hoeUv5XgH5ri-AVEjJB8Bv6-2h_za2l4JRQnJtcR90yLKv4aAq5ZEALw_wcB) or[ HC-05](https://www.digikey.com/en/products/detail/seeed-technology-co-ltd/113020008/5774955?s=N4IgTCBcDaIBYGMC0AGArCAugXyA)).

## Blanket control system

The brain of the blanket will use a microcontroller to take the readings from our motion-sensing system to determine whether the user is plausibly asleep and change the heat accordingly. It will also change its heat setting to stay as close to the desired temperature as possible. We would design this microcontroller ourselves, taking inspiration from other commonly used microcontrollers like the Arduino. All of the sensors and modules would be connected to this microcontroller simultaneously, so our PCB design would have to properly account for that.

# Criterion For Success

The blanket successfully senses when a user stops moving (i.e. determines the user has fallen asleep), and changes temperature accordingly.

The blanket takes user input and automatically adjusts its temperature accordingly. This also means that the blanket is able to successfully communicate with our app through bluetooth.

The blanket accurately assesses the temperature throughout the blanket for the duration of its use.

The blanket stays at a steady temperature (+/- 2.5 degrees Fahrenheit, lasting over 5 minutes) once it reaches its goal temperature.



BusPlan

Aashish Kapur, Connor Lake, Scott Liu

BusPlan

Featured Project

# People

Scott Liu - sliu125

Connor Lake - crlake2

Aashish Kapur - askapur2

# Problem

Buses are scheduled inefficiently. Traditionally buses are scheduled in 10-30 minute intervals with no regard the the actual load of people at any given stop at a given time. This results in some buses being packed, and others empty.

# Solution Overview

Introducing the _BusPlan_: A network of smart detectors that actively survey the amount of people waiting at a bus stop to determine the ideal amount of buses at any given time and location.

To technically achieve this, the device will use a wifi chip to listen for probe requests from nearby wifi-devices (we assume to be closely correlated with the number of people). It will use a radio chip to mesh network with other nearby devices at other bus stops. For power the device will use a solar cell and Li-Ion battery.

With the existing mesh network, we also are considering hosting wifi at each deployed location. This might include media, advertisements, localized wifi (restricted to bus stops), weather forecasts, and much more.

# Solution Components

## Wifi Chip

- esp8266 to wake periodically and listen for wifi probe requests.

## Radio chip

- NRF24L01 chip to connect to nearby devices and send/receive data.

## Microcontroller

- Microcontroller (Atmel atmega328) to control the RF chip and the wifi chip. It also manages the caching and sending of data. After further research we may not need this microcontroller. We will attempt to use just the ens86606 chip and if we cannot successfully use the SPI interface, we will use the atmega as a middleman.

## Power Subsystem

- Solar panel that will convert solar power to electrical power

- Power regulator chip in charge of taking the power from the solar panel and charging a small battery with it

- Small Li-Ion battery to act as a buffer for shady moments and rainy days

## Software and Server

- Backend api to receive and store data in mongodb or mysql database

- Data visualization frontend

- Machine learning predictions (using LSTM model)

# Criteria for Success

- Successfully collect an accurate measurement of number of people at bus stops

- Use data to determine optimized bus deployment schedules.

- Use data to provide useful visualizations.

# Ethics and Safety

It is important to take into consideration the privacy aspect of users when collecting unique device tokens. We will make sure to follow the existing ethics guidelines established by IEEE and ACM.

There are several potential issues that might arise under very specific conditions: High temperature and harsh environment factors may make the Li-Ion batteries explode. Rainy or moist environments may lead to short-circuiting of the device.

We plan to address all these issues upon our project proposal.

# Competitors

https://www.accuware.com/products/locate-wifi-devices/

Accuware currently has a device that helps locate wifi devices. However our devices will be tailored for bus stops and the data will be formatted in a the most productive ways from the perspective of bus companies.