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.



Cloud-controlled quadcopter

Anuraag Vankayala, Amrutha Vasili

Cloud-controlled quadcopter

Featured Project

Idea:

To build a GPS-assisted, cloud-controlled quadcopter, for consumer-friendly aerial photography.

Design/Build:

We will be building a quad from the frame up. The four motors will each have electronic speed controllers,to balance and handle control inputs received from an 8-bit microcontroller(AP),required for its flight. The firmware will be tweaked slightly to allow flight modes that our project specifically requires. A companion computer such as the Erle Brain will be connected to the AP and to the cloud(EC2). We will build a codebase for the flight controller to navigate the quad. This would involve sending messages as per the MAVLink spec for sUAS between the companion computer and the AP to poll sensor data , voltage information , etc. The companion computer will also talk to the cloud via a UDP port to receive requests and process them via our code. Users make requests for media capture via a phone app that talks to the cloud via an internet connection.

Why is it worth doing:

There is currently no consumer-friendly solution that provides or lets anyone capture aerial photographs of them/their family/a nearby event via a simple tap on a phone. In fact, present day off-the-shelf alternatives offer relatively expensive solutions that require owning and carrying bulky equipment such as the quads/remotes. Our idea allows for safe and responsible use of drones as our proposed solution is autonomous, has several safety features, is context aware(terrain information , no fly zones , NOTAMs , etc.) and integrates with the federal airspace seamlessly.

End Product:

Quads that are ready for the connected world and are capable to fly autonomously, from the user standpoint, and can perform maneuvers safely with a very simplistic UI for the common user. Specifically, quads which are deployed on user's demand, without the hassle of ownership.

Similar products and comparison:

Current solutions include RTF (ready to fly) quads such as the DJI Phantom and the Kickstarter project, Lily,that are heavily user-dependent or user-centric.The Phantom requires you to carry a bulky remote with multiple antennas. Moreover,the flight radius could be reduced by interference from nearby conditions.Lily requires the user to carry a tracking device on them. You can not have Lily shoot a subject that is not you. Lily can have a maximum altitude of 15 m above you and that is below the tree line,prone to crashes.

Our solution differs in several ways.Our solution intends to be location and/or event-centric. We propose that the users need not own quads and user can capture a moment with a phone.As long as any of the users are in the service area and the weather conditions are permissible, safety and knowledge of controlling the quad are all abstracted. The only question left to the user is what should be in the picture at a given time.

Project Videos