Project

# Title Team Members TA Documents Sponsor
37 Smart Home Conditioning System
Leo Li
Shuning Zhang
Zhaonan Shi
Dushyant Singh Udawat design_document2.pdf
final_paper1.pdf
photo1.jpg
photo2.jpg
photo3.jpg
presentation1.pptx
proposal2.pdf
video
# Smart Home Conditioning System
Team Members:
- Haoen Li (haoenli2)
- Shuning Zhang (sz31)
- Zhaonan Shi (zhaonan4)

# Problem
The windows and curtains, which enable the exchange of air, light, and sound, are essential pieces of furniture that maintain the comfortable environment of a house. For people with physical disabilities who often stay at home for a long time, to maintain their mental health, it is particularly important to keep their home in exchange for fresh air and receive mild sunshine which will help them build a connection with nature and the outside world. However, for people with physical disabilities, it might be inconvenient for them to open the windows and curtains when it’s a pleasant day outside or to close them when it rains, fogs, smokes, or when it is too noisy or shiny outside. Therefore, we aim to design a Smart Home Conditioning System that automatically keeps the house in exchange for fresh air and mild sunshine on pleasant days and blocks the unpleasant weather outside for people with disabilities.

# Solution
The Smart Home Conditioning System consists of sensors to detect humidity, temperature, brightness, air quality, and noise levels, and two motors to open/close the window and draw the curtain. The sensor module consists of two subsystems: indoor and outdoor. For the outdoor subsystem, we will have the rain sensor, humidity sensor, and PM2.5 sensor to determine whether it rains, fogs, or smokes outside. For the indoor subsystem, we will have the brightness sensor and noise sensor to measure brightness and noise level. Additionally, we will also have two temperature sensors to measure indoor and outdoor temperatures. When the indoor temperature is lower than a preset value, and the outdoor temperature is high, the microcontroller will tell the motor to open the window. When the indoor temperature is higher than a preset value, and the outdoor temperature is low, the microcontroller will also tell the motor to open the window. In the case when the outdoor temperature is not within a preset range, when it rains, fogs, or smokes, or when it is too shiny or noisy outside, the microcontroller will tell the motors to close the window and draw the curtain. Besides, we will have an ultrasonic sensor for the motor to know whether the window and curtain are closed or opened. To address potential safety problems, we will employ a pressure sensor to detect whether there are any obstacles such as hands or pets between the window and the frame, and stop the motion of the window when necessary. Overall, this Smart Home Conditioning System consists of a sensor module with indoor and outdoor subsystems, a safety module with a pressure sensor, an ultrasonic sensor, a microcontroller, a window control module, and a curtain control module.

# Solution Components
## Sensor Module
With sound sensor, humidity and temperature sensor, light sensor, rain detector, and dust sensor, we can measure humidity, temperature, brightness, air quality, and noise. The data would be used to decide the operation of motors.
- Sound Sensor - https://www.makerfabs.com/sound-sensor.html
- Humidity and Temperature Sensor - https://www.smart-prototyping.com/DHT11-Humidity-and-Temperature-Sensor-Module
- Sunlight Sensor - https://wiki.seeedstudio.com/Grove-Sunlight_Sensor/
- Rain Sensor - https://www.amazon.com/HiLetgo-Moisture-Humidity-Sensitivity-Nickeled/dp/B01DK29K28/ref=sr_1_8?keywords=rain+sensor&qid=1674709659&sr=8-8
- Dust Sensor for PM2.5 - https://www.amazon.com/KEYESTUDIO-Particle-Monitor-Arduino-Raspberry/dp/B07B2PFPB5/ref=sr_1_1_sspa?crid=2IZSOXO2TUWC&keywords=dust+sensor+arduino&qid=1674710017&sprefix=dust+sensor+%2Caps%2C88&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEySjVZNktJNUlOMEtEJmVuY3J5cHRlZElkPUEwODY4ODY4M0w3WlZXSUs0OEEyMCZlbmNyeXB0ZWRBZElkPUEwODk3NTU4NDA2MUtXVEpCQUxBJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==
- Ultrasonic Sensors - https://www.amazon.com/Smraza-Ultrasonic-Distance-Mounting-Duemilanove/dp/B01JG09DCK/ref=sr_1_1_sspa?crid=3THQW59WDTPH4&keywords=ultrasonic+sensor&qid=1674767394&sprefix=ultrasonic+sensor%2Caps%2C98&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExN1lJSTUwV1RJRzFYJmVuY3J5cHRlZElkPUEwMzIxMDE0M1U4MTlFRU43R0VYSiZlbmNyeXB0ZWRBZElkPUEwNjgwMDI0M0FZVUdVR1dXQk1LUiZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=

## Safety Module
- Pressure Sensors - Amazon.com: Thin Film Pressure Sensor Flex/Bend Sensor ZD10-100 500g Resistance Type FSR Sensor Thin Film Pressure Sensor Force Sensing Resistor, Force Sensitive Resistor : Industrial & Scientific

## Power and Control Module
In the Smart Home Conditioning System, we will send the data measured by the sensor module to the microcontroller to determine whether opening/closing the window or drawing the curtain will provide a better environment. The power is supplied by a 6V battery and the close/open operation is achieved by DC motors.
- 6V 2000mAh battery - https://www.amazon.com/EMEPOVGY-6V-Connector-Rechargeable-Receivers/dp/B09TKTL8WX/ref=sr_1_53?crid=QNBK0KT6P28H&keywords=6v+battery+arduino&qid=1674710775&sprefix=6v+battary+arduino%2Caps%2C82&sr=8-53
- Customized PCB and microcontroller

## Window Control Module
With instructions sent by the controller, the window would be closed or opened with a DC motor that is powered by a 6V battery.
- DC motor for opening and closing of slide window - https://www.amazon.com/KOOKYE-28BYJ-48-Stepper-ULN2003-Arduino/dp/B019TOJRC4/ref=sr_1_47?crid=38BGIC631XE8Z&keywords=dc+motor+arduino&qid=1674710593&sprefix=6v+dc+motor+ardu%2Caps%2C115&sr=8-47

## Curtain Control Module
With instructions sent by the controller, the curtain would be closed or opened with a DC motor that is powered by a 6V battery.
- DC motor for opening and closing of slide window - https://www.amazon.com/KOOKYE-28BYJ-48-Stepper-ULN2003-Arduino/dp/B019TOJRC4/ref=sr_1_47?crid=38BGIC631XE8Z&keywords=dc+motor+arduino&qid=1674710593&sprefix=6v+dc+motor+ardu%2Caps%2C115&sr=8-47

# Criterion For Success
We hope to realize a system that will automatically open or close the window and the curtain given the change in the environment by collecting data from the sensors and making decisions in the microcontroller. We want to increase the accuracy of the sensors in the detection of different scenarios and achieve the precise movement of the motor. We need to make sure that the power offered by the motor wouldn’t be too large since the battery has a limit and the motor may lead to security problems. At the same time, we want to limit the operating time for the project to make sure that our smart system can respond to the different scenarios as quickly as possible.
Besides from above expectation, we also need to:
- Order the necessary (and backup) motors and sensors ahead of time
- Provide good protection for the different sensors we are using, allow stable usage
- Adjust the motors to have the right speed and position setting
- Keep track of the lab notebook and every code we write
- Good testing and debugging skills

Prosthetic Control Board

Caleb Albers, Daniel Lee

Prosthetic Control Board

Featured Project

Psyonic is a local start-up that has been working on a prosthetic arm with an impressive set of features as well as being affordable. The current iteration of the main hand board is functional, but has limitations in computational power as well as scalability. In lieu of this, Psyonic wishes to switch to a production-ready chip that is an improvement on the current micro controller by utilizing a more modern architecture. During this change a few new features would be added that would improve safety, allow for easier debugging, and fix some issues present in the current implementation. The board is also slated to communicate with several other boards found in the hand. Additionally we are looking at the possibility of improving the longevity of the product with methods such as conformal coating and potting.

Core Functionality:

Replace microcontroller, change connectors, and code software to send control signals to the motor drivers

Tier 1 functions:

Add additional communication interfaces (I2C), and add temperature sensor.

Tier 2 functions:

Setup framework for communication between other boards, and improve board longevity.

Overview of proposed changes by affected area:

Microcontroller/Architecture Change:

Teensy -> Production-ready chip (most likely ARM based, i.e. STM32 family of processors)

Board:

support new microcontroller, adding additional communication interfaces (I2C), change to more robust connector. (will need to design pcb for both main control as well as finger sensors)

Sensor:

Addition of a temperature sensor to provide temperature feedback to the microcontroller.

Software:

change from Arduino IDE to new toolchain. (ARM has various base libraries such as mbed and can be configured for use with eclipse to act as IDE) Lay out framework to allow communication from other boards found in other parts of the arm.