E-Rack
A smart clothes hanger.
Description
This project is about a smart clothes hanger named E-Rack, which can detect the environment, set the alarm, and analyze data meanwhile being controlled by the user 24/7. It is made for those who spend less time at home, for example, office workers and students. Our proposed E-Rack can detect abnormal weather like rain, snow, sand dust, etc. Then it can send a message to the mobile devices of the user to let them decide whether to retract the hanger. It can also help the user to estimate the remaining time for the clothes to dry.
System Design

As shown in the figure, the framework of E-Rack consists of three parts, which are illustrated in detail as follows.
Hanger End

The hanger end includes all the hardware deployed around the rack. It has three sensors that monitor temperature, humidity and raindrops respectively. A servo motor is installed on the end of the hanger to stick out and retract the clothes. All the peripherals are controlled by a central board, which also communicates with the database through the protocol of HTTPS to upload the sensor information and download control information from the mobile application.



Database & Server Backend
In this project, we choose to use the Weixin Cloud Base as our database and server. This cloud service not only provides a database to store our data, but also offers functions to interact with our application frontend.
In the server, we also call a public internet weather API of Amap to get the real-time weather data, which is compared with the data from the sensor to get a more accurate analysis. We can also use the weather information to trigger an alarm of weather that cannot be detected by our sensors, like sand dust.


Application Frontend
The mobile application UI of this project is based on the Weixin Mini Program. Users don’t have to download extra applications if they’ve already downloaded Weixin on their mobile phones.



Display
The whole codework and hardware design files of this project are published on GitHub. See here.