Jie Sun Weekly Reports

Jie Sun Status Report for 04/29/2023

For the past week, I have been testing all systems working together. For my main integration test, I set up the system in the bathroom so there’s a small enclosed space. Then I set the temperature on the web application to be 68 degrees – 2 degrees lower than the current temperature without any heaters on. The heaters then promptly turned on after this configuration. After a couple minutes, the heaters turned off as the temperature is reached. To trigger the heater back on, I cracked open a window to let cold air in, lowering the temperature in the room. Then the heater turned on again since the temperature is lower. This ensured that our system is working properly.

I feel like our team is on schedule now, we need to work on the final report and poster next, and prepare for the demo. The next step is when the tent comes we need to perform testing inside the tent so it will properly showcase our project during the final demonstration.

Jie Sun Status Report for 04/22/2023

For the past two weeks, I completed the python script. Now the script will fully support the functionalities of the web application and ESP32. I updated the web page for it to display the heaters currently in queue to be turned on, and send the data computed by the script over to dyanmoDB for it to be displayed on the web page. I have also conducted a lot of testing between the script and the web application, and I can say now with confidence that everything between the script, web application, and Shelly smart switches are working as intended. Now that Eric is able to populate the ESP32 dyanmoDB table, I can fully test all four sub systems working together.

Although our team might be a little behind schedule right now, I believe we can catch up this week in time for the demonstration. The next step for me is to test all systems working together, with the sensors, web application, script, and the shelly smart plugs in sync.

Jie Sun Status Report for 04/08/2023

This week, Rong and I continued our work on the python script. We completed the circuit layout for the python script. Now, if the a user adds a heater into a circuit, the server will catch if there are too many heaters turned on in that circuit. For example, if there are 5 heaters in a circuit with 3 heaters already turned on, and the user tries to turn another heater in that circuit on manually, the script will realize that and add that heater into a queue; if a heater is turned off in that circuit, the script will in turn turn the heater next in queue on. In order to test the web application, I have hosted the website locally on my computer and change the users setting on the web application, then checking if the table will update with user’s input. For the script portion of the project, I will test it by manually inputting the sensors data into the dynamoDB, and see if the script will respond correctly to the inputted data.

I believe our team is currently on schedule, once the sensors are updating the dyanmoDB table we can officially test if everything is working together. My next step is to continue testing if the script is working consistently.

Jie Sun Status Report for 04/01/2023

This week, Rong and I worked on the python script for our project. We made solid progress on the python loop. First we established connection between the script and the DynamoDB tables, ensuring we can pull data from the web application as well as the hardware sensors. Then, we decided that we will run the infinite loop with 5 second delay between each iteration, and checking for new information inside the DynamoDB table during each iteration. We believe this is a solid compromise between heater performance and EC2 usage. We also connected the python script and the shelly plugs so if the temperature from the sensors exceeds the temperature set in the web application table we will turn the respective shelly smart plugs off. We are now working on the circuit layouts in the python script.

I do believe our team is currently on schedule. With the python script almost complete we are in good shape going into the midterm review to showcase what we have accomplished so far. As mentioned above I will keep working on the python script and deploy it on EC2 once completed.

Jie Sun Status Report for 03/25/2023

This week, I worked on synchronizing the web application to DynamoDB. Now every time user performs an action on the Web application (such as changing the temperature from 70 degrees to 65 degrees, or adding the heater to a circuit), the web application will update the DynamoDB table accordingly. I have also started writing the python script for the table management, reading sensor data and shelly control. I am currently working with Rong to make the right API calls and read sensor data correctly.

I believe our team is currently on schedule, once we complete the python script I believe we will be in good shape to finish the project on time. As mentioned above the next step for me is to continue working on the python script, and I am confident that we can finish the project on time.

Jie Sun Status Report for 03/18/2023

This week, I continued my work for the web application for our space heater project. I completed the homepage to display all the heaters created by the user, the manage circuits page that allows users to create circuits and assign circuits to them, as well as connected the web application to DynamoDB. Examples of the two pages are shown with the screenshots down below. After connecting the DynamoDB to the web application, the web application will create or modify heater entries depending on the user’s actions.

I think our team is on schedule now, especially with Eric and I succeeding in connecting to DynamoDB. The next steps for me is to start on the python script mentioned in the team report. Other than that, I am confident that we can finish the project on time.

Jie Sun Status Report for 03/11/2023

Over the past 2 weeks, I worked along with Rong and Eric on the design review report.  We looked at the comments made by our classmates, Professors, and TAs to further improve our design plan. Within the document, I personally worked on section 2 Use-Case Requirements, section 6 System Implementation, and worked together with the team on the testing and summary section.  Other than the report, I continued working on the web application, I completed the database portion of the user and heater storage; and I am currently working on the all heaters page so the users can see all the heaters they have added into the system.

I believe we are close to being on schedule, once I finish up the all heaters page next week we will be in good shape to completing the project on time. Hopefully next week we can start connecting the parts we have been individually working on, and I can connect the web app with Eric’s arduino or Rong’s shelly smart remote plugs.

Jie Sun Status Report for 02/25/2023

This week, I started coding the website for our web app, I incorporated multi-user functionalities as well as editing the heater settings. Currently, it supports location, and circuit number so the breaker doesn’t overload, as well as the temperature setting. The next step for me is to finish up this website so the database for the heater is more robust. I believe our project is currently on schedule and we have a good idea of what to do next.

Jie Sun Status Report for 02/18/2023

This week, I helped Rong with ordering the necessary equipment for our project. Also, I started to set up the website for our web application, and I am using Django as the core for our application. I will also try to incorporate react into our web application to make the website look more modern. The next step for me is to think about how to send the sensor data into our web app. One of the ideas I have is to use AWS dynamoDB as the data center since I have some experience with using it. Our project is currently on schedule and we have a good idea of what to do next once our sensors arrive.

Jie Sun Status Report for 02/11/2023

This week, I researched different viable devices we can use to connect our sensors/smart plugs to the internet. I found that shelly smart plugs and ESP8266 working alongside Raspberry Pi are good options for integrating the whole system. I will run the main control system on Raspberry Pi while using Arduino for temperature sensors. The next step for me is to figure out how to connect all the sensors/smart plugs to the raspberry pi and collect the necessary data. Our project is currently on schedule and the whole team has a sense of direction on what our next steps are.