Alan’s Status Report for 04/27/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week, I worked on our final bottle assembly. We have a new board, which should be more stable and less vulnerable to solders breaking, since it uses JHT connectors. I crimped connectors, tested sensor connections, and debugged solder and connection issues. I also worked on our final bottle, sealing sensors in place,  moving the display and adding a new switch (for the battery circuit) to the taller bottom compartment.

Is your progress on schedule or behind?

On schedule

What deliverables do you hope to complete in the next week?

Next week, I’ll finish the battery circuit and clean up any final issues with the bottle, to make sure we’re ready for a successful demo.

Alan’s status report for 04/20/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week I worked with Erin to resolder our assembly and produce the bottle we will use in the final demo. I also got the display working, and it shows liquid level, temperature, and classification. I then wrote and FSM to detect when the bottle is stable based on the stability of the ultrasonic sensor’s reading, eliminating the need for a pressure plate. Finally, I designed the integration tests we are performing to validate our final product

Is your progress on schedule or behind?

On schedule

What deliverables do you hope to complete in the next week?

Next week, I’ll continue testing the final bottle,  will add more liquid samples, and the capability for user-added liquids.

 

As you’ve designed, implemented and debugged your project, what new tools or new knowledge did you find it necessary to learn to be able to accomplish these tasks? What learning strategies did you use to acquire this new knowledge?

I’ve learned a lot about different sensors used to test and identify liquids, their principles of operation, and their libraries. I mostly learned this by googling, reading reviews, forums, and wikis. I also learned about bluetooth low energy, again, mostly by googling, reading forums and tutorials. Finally, I learned some things about hardware, fabrication, and durability, mostly by talking to classmates and trial and error as we build our product.

Alan’s Status Report for 04/06/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week, I worked on getting the prototype ready for the interim demo. I worked on our backup microcontroller (after we had issues with the Adafruit’s, where they stopped working), re-writing code to be compatible with it. I collaborated with Erin to get the new setup working on the app. I also worked on the new physical prototype (as part of a team effort), and we now have a leak-free, working, classifying bottle! Finally, I calibrated the classifying algorithm for the bottle with nothing in it, water, milk, coffee, and orange juice, and rehearsed for, and delivered my portion of, the team demo.

Is your progress on schedule or behind?

On schedule

What deliverables do you hope to complete in the next week?

Next week, I will work on improving classifier accuracy, with more data points, and in detecting when the bottle is stood up correctly, with FSR’s. I will also begin work on testing, running a fuzzer and a static analysis tool on my arduino code.

 

Now that you have some portions of your project built, and entering into the verification and validation phase of your project, provide a comprehensive update on what tests you have run or are planning to run. In particular, how will you analyze the anticipated measured results to verify your contribution to the project meets the engineering design requirements or the use case requirements?

I will run tests with the sensors in the bottle against the ground truth – the thermometer with a reference one, and TDS and turbidity against reference metrics for our liquids. I will test these against the expected (and acceptable) tolerance of the sensors. For the color sensor, I will test it against different liquids in our final bottle, to make sure the interference of the bottle material is small enough to still give use usable data (as it has been in previous translucent prototypes). This will make sure our final assembly is within our tolerance.

I will also run a fuzzer and a static analysis tool on my microcontroller code, to ensure the code is reliable and secure, and does not have egregious, easily correctable faults in it.

For the classifier, I will test it with different beverages to ensure it can correctly classify them within an allowable tolerance. As I provide more data points and better calibration, I will expect the accuracy to improve.

Alan’s status report for 03/30/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week, I mostly worked on fabricating the bottle for the interim demo. I planned and drilled holes for the sensors, and sealed them in place with our food-safe sealant. It took a few days (the curing time for the sealant is 24 hours) and about three layers, but we now have a leak-free bottle! I also worked with Erin on soldering our circuit so we would no longer need a breadboard (she did most of the soldering; I did some of it, supported her on pieces that took two people, helped with planning for the circuit, modified the code to make connections easire, and tested the sensors once they had been soldered).

Is your progress on schedule or behind?

On schedule.

What deliverables do you hope to complete in the next week?

At the start of next week, I’ll focus on the interim demo – rehearsing my part of the presentation, helping define content, and troubleshoot any issues that come up so we can do to have a successful presentation.

I also plan on working some on connecting the battery, on working with Erin on the app to parse bluetooth data and implement the classifying logic in the app, and on the mechanism for testing whether the bottle is upright. We may need to purchase more pressure pads for this last part. I will also work on waterproofing solutions for the circuits in the bottom compartment (in case the sealant becomes leaky, which should not happen, but we will add a contingency measure to protect our circuit better).

Photo of fabricated bottle, holding water:

Alan’s status report for 03/23/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week, I accomplished a few things for the project:

1-Added Total Dissolved Solids and Turbidity sensor to the circuit, and tested them, finding significant differences in the liquids tests (water, milk, and coffee).

2-Re-wired the circuit to use a single Adafruit ItsyBitsy Arduino board, rather than 2.

3-Improved the ble connection, writing a TCP-like protocol that waits for requests and waits for acknowledgement from the recipient.

4-Tested with different liquids (milk, water, coffee) for color, TDS, and turbidity, finding significant differences.

5-Wrote a vector-distance based classifier in python, to differentiate liquids.

 

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

On schedule

What deliverables do you hope to complete in the next week?

For the next week, I will fabricate the bottle, placing the sensors and holding them in place with sealant (as one of my current problems for testing is that I need to hold all sensors in place to get the readings), and work with Matthew to integrate with the cadded parts. I will also work with Erin on the app, to process ble packages and do the classifying logic in the app itself. Finally, I will plan and rehearse the interim demo, to identify potential issues and make sure it goes smoothly.

 

BLE communication (Adafruit ItsyBitsy <-> Bluefruit app on my Android phone):

Alan’s Status Report for 03/16/24

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

This week, I worked on bluetooth. I managed to connect the ItsyBitsy boards to my phone using the Adafruit’s testing app, to my computer using a python script and, finally, to our app (with Erin working on the bluetooth code for React)! I relayed sensor data (temperature, pressure, and color), and tested that transmission is reliable. I also received data back from my cellphone to the Arduino board, also reliably. Furthermore, I wrote the FSM to only relay liquid level data the first time after a bottle is closed (to avoid wasting power).

Other than this, I tested the new waterproof ultrasonic sensor, which doesn’t seem to be working, so I ordered a new one, as well as RS485 communication modules to test with another sensor we had also tried. I did some work (both by myself and with Matt) on capacitance testing, and it seems that the variations found in liquids (from a study done by Matt) are rather small, and heavily affected by room temperature. Finally, I looked into turbidity as a possible metric and ordered a sensor to test it.

• Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

On schedule

• What deliverables do you hope to complete in the next week?

Over the next week, I plan on writing a classifier, based on color, density, and possibly capacitance and turbidity, and tests its accuracy with different drinks. For this first step, I will write it in a Python project, for ease of testing.

 

Bluetooth communication:

Arduino serial monitor:

 

Adafruit’s Bluefruit testing app, showing the device, the transmitted data, and the received data:

Alan’s Status Report for 03/09/2024

• What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Last week, I mostly work on the design report. Once this was finished, I turned back to the hardware and integration. I helped Matt test the waterproof ultrasonic sensor, and figured out the issue was with the RS485 protocol. I placed the order for the new sensor. I also investigated an issue with an order we hadn’t received (a photoelectric water level sensor) and coordinated to re-place the order – the sensor should be here sometime next week.

Finally, I picked up the Adafruit ItsyBitsy board from receiving, set them up for usage (soldered pins and burned bootloaders) and assembled the bottle circuits on a breadboard! As you can see on the picture, there are two independent circuits. The one on the left is the bottom assembly, with a thermometer, color sensor, and pressure plate, while the one on the right is the top assembly, with an ultrasonic sensor and a pressure plate. I used driver code (adapted and combined from online tutorials) to ensure that all the sensors worked together as I assembled them.

Finally, I began testing the bluetooth connection. I succesfully ran bluetooth code from the ItsyBitsy, but am having issues on the React end.

• Is your progress on schedule or behind? If you are behind, what actions will betaken to catch up to the project schedule?

On schedule

• What deliverables do you hope to complete in the next week?

Next week, I hope to successfully connect the ItsyBitsy board to the app over BLE. I will also write the FSM to only update the level reading when necessary, according to the pressure plate readings.

 

Circuit:

Alan’s status report for 02/24/24

What did you personally accomplish this week on the project? Give files orphotos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

At the start of the week, I worked on rehearsing the presentation and preparing for questions. Once it was past, I focused on the design review, bluetooth connection, and sensor testing. I finished the sections that were assigned to me in the status report, successfully tested the color sensor and the temperature sensor (using an arduino nano), and found good references for bluetooth connection, both on the arduino side and on the React side.

Unfortunately, this week, Matt and I noticed the seeed boards are quite spotty in their connection to the computer (when testing and uploading arduino code), so we’ve decided to use a different board. We are still deciding on the new board, but the current options we are considering are Adafruit ble boards, Arduino nano ble, Arduino Uno R4 Wi-fi (which is bluetooth capable), and the bluetooth module for non-bluetooth capable boards sold by Arduino.

Erin and I also decided to rebase the app to use the Expo framework (which works on top of React Native). This will make development and bluetooth integration smoother. I helped her with setup and creating the new codebase.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule

I am ahead of schedule on sensor testing, on schedule with the design report, and behind schedule with the bluetooth code (due to issues with the seeed boards and our decision to move to Expo). I will have plenty of time next week to work with our new board and codebase to bring progress to schedule.

What deliverables do you hope to complete in the next week?

By next week, I hope to have received the new board and be working on it with a basic bluetooth project. I also hope to work with Erin on the app, working on the backend for local database connection and to integrate it with the bluetooth library (though bluetooth may not be completely finished by next week).

Alan’s status report for 02/17/24

  • What did you personally accomplish this week on the project? Give files or

photos that demonstrate your progress. Prove to the reader that you put sufficient

effort into the project over the course of the week (12+ hours).

At the start of the week, I spent a lot of time setting up my environment for React Native development (I ran into a lot of problems during set up, but was able to figure them out). After this, I did some work on addressing the feedback we had received from our last presentation. I found the 3-A sanitary standards for sensors (https://www.omega.com/en-us/resources/3a-sensors-sanitary-applications ), which I used to updated our use-case requirements. I also updated other use case requirements on which we had received feedback. Then, I worked on the slides for the design review and on rehearsing the presentation. I also did an initial draft (in bullet points) of our design review writeup.

In the meantime, as a team, we analyzed some more materials for the project, and I placed most of the orders and tracked them in the BOM. Finally, I did some more reading on React Native and Arduino bluetooth interaction and analyzed options for libraries to use in this space.

  • Is your progress on schedule or behind? If you are behind, what actions will betaken to catch up to the project schedule?

My progress is on schedule.

 

  • What deliverables do you hope to complete in the next week?

By next week, we should receive our second bluetooth-capable Seeed board. Once I have that (which should be on Monday), I will use it to test bluetooth code from the arduino end. I will also work on adding boilerplate code for the React Native Bluetooth interaction. Finally, I will (in collaboration with other team members) turn the Design Review draft into a much more developed version (as it is due on the 31st), incorporating the feedback we receive in our Design Review presentation.

Alan’s Status Report for 02/10/2024

  • What did you personally accomplish this week on the project?

At the start of the week, I worked on the presentation. I helped come up with the technical requirements and their quantifications. This included doing research on machine learning models and their accuracy and on tolerances for food items according to the FDA. I then helped Erin prepare for our presentation, rehearsing with her a few times and thinking about how to best present each idea. After this, I spent some time reviewing the slides and our project so I could be prepared to answer questions after the presentation.

Once the presentation was over, my work this week was mostly exploratory. I’ve been looking into how to interact with bluetooth data, both from the arduino end and from the react end. I’ve been setting up my environment to start developing in react native, and I’ve been refreshing my knowledge of React Native, since it’s been a long time since I last used it. I also helped select the sensors we’ll order (over our group meeting), for which I’ll place orders this weekend so they can be reviewed by the next cycle, early next week. Matthew gave me an Arduino I will use to help test sensors, once we get more (we currently have one, which Matt has). I have created a file to organize the reference links I am using to study for this project. Lastly, I have started a spreadsheet to be used as a bill of materials so that we track what we use over the course of the project, making it easier to create a final bill of materials at the end of the semester.

 

  • Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

My progress is on schedule.

 

  • What deliverables do you hope to complete in the next week?

By next week, I hope to be fully set up with my environment and up to speed in react native. I will also have ordered the sensors, and, since some will be over Amazon (shipped in two days with Prime), I will probably have sensors I can start testing.

Lastly, given the feedback we have received on our presentation, I will work on better specifying our requirements, particularly in terms of food safety. I will create an updated list of requirements considering “latency, food safety, and battery life considerations” (from the feedback) and will review it with the team and present it to our TA.