Team Status Report for 4/29/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?  

The most significant risk is how fragile the pressure sensors are. We ordered extras, but currently have broken 3, which means that if we break any more, we might be down a glove. Because we have broken so many, we have gone ahead and ordered more sensors, although they might not get here in time. In addition, we are handling the pressure sensors with a lot of care so that they won’t break in the future. The backup plan is to have one fully working glove with the pressure sensors, and the other glove with as many pressure sensors as possible. While it might not be receiving pressure inputs, the CV code can still detect which key is being pressed.

 

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?  

We have not made any changes to the existing system design.

List all unit tests and overall system tests carried out for experimentation of the system. List any findings and design changes made from your analysis of test results and other data obtained from the experimentation.

Note accuracy -> We tuned each note that is being outputted to an online tuner and ensured that they were all correct.

Key segmentation -> We used multiple test images and assigned values to each key and saw that they were all different and correct.

Color thresholding -> We tested the paper piano printout in various different lighting and ensured that they all work.

Key Identification -> We tested each finger on each key and ensured that the correct note and finger were being detected.

Warp Consistency -> We tested the paper piano at different angles to ensure that it would work even if the piano wasn’t straight.

Team Status Report for 4/22

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

The most significant risk currently is still the integration of our entire project. Our entire CV portion is written in Python, while our interface is done in C++. We know that there are packages that are available that can use the code we wrote from Python and integrate it into our interface. However, we aren’t sure of the speed of using these packages as they are going to be slower than if we ran the CV using C++. We will be testing out this in the next week to see if the difference in speed is crucial for our project. The backup plan is to translate the existing code from Python into C++.

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

There are currently no significant changes made to the existing design of the system.

Team Status Report 4/1/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

The most significant risk is how we are going to be integrating our computer vision with our Xcode platform. Specifically, we have decided to not use Kivy, due to its constraints. We have separately developed our app and computer vision algorithms, but have yet to integrate them together. We hope that our source, a Python package that works in Xcode to integrate Python language into Apps, will work, but we have not yet tested this. If this doesn’t work, we will work on translating our code from Python into C++, as there is an Open CV package that will work but may require more understanding of C++. Overall, this is our greatest risk. Since we are already now learning Swift due to Kivy’s limitations, we hope to not have to learn how to code computer vision in  c++ language. However, if we need to, this is still an option as we have already developed our parameters through Lee’s work with Open CV in Python.

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

We have decided not to use Kivy for our interface. This is because we discovered that although Kivy is a good inter-platform development tool, it does have limitations. Specifically, it is unable to access the iPhone’s hardware, such as the BLE, speakers, and camera, which are all integral to our project. Thus, we are now learning Swift UI language in order to develop our interface. We will use a Python package to write our Open CV, described above but our interface and camera access will be in Swift.

Team Status Report 3/25

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

Our most significant risks is sourced from our ethics discussions this past week. Some groups gave some ethical critiques on our design and how if they were not addressed in a worst-case scenerio, could certainly jeapordize the success of the project for prospective users. For computer vision, having a camera filming could introduce privacy concerns. If our design doesn’t simply work the user may just go back to using an actual piano. If for some reason the battery shorts/explodes, it could injure the user too. If played for extensive periods of time without breaks, it could bring about fatique and physical pain to the user. Lastly, if the user wasn’t aware of some information before using the product, it may fail in environments that isn’t a flat surface or with low lighting. The user may also wear the glove backwards/weirdly or can’t pair with their phone interface if they aren’t familar with the device. They may not be able to pair at all if there are too many bluetooth devices as well.

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

We did not make any changes to the existing design of the system since last week.

Team Status Report 3/18

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

I think our most significant risks in how we are going to be integrated our different components and subsystems. In order to be able to work, we have different branches in our repo for CV, Interface, and Audio, and plan on integrating them together in the master branch. However, when CV and Audio are integrated together, we will probably have to write in some threading capabilities so that CV can continually run  while MIDI timing is being taken with  the pressure sensor, so we will require a timing mechanisms.

In order to mitigate this, we will take a few steps. Firstly, we will edit points in our schedule so that we merge in each CV milestone with our interface. This will require us to set up the bare bones of the interface rather quickly, so we will be pushing the audio details later. In our interface, we will set up a software timer that runs/is checked as necessary, with a minimum BPM of 30, so we will always merge the CV milestones with a timer in place and software interrupts are triggered by a note being played via the pressure sensors to check the timer and send the MIDI message.

Our contingency plan is to have a MIDI message sent on each beat. This is not ideal, as we may have a note that starts on a half beat, but given that we are focusing on the note accuracy + volume and interface in this project, we feel that it would be okay to have this as a contingency plan.

 

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

Given the feedback on our design report, we have decided to edit our implementation of the audio processing flow. We will not spend time trying to figure out the frequency spectrums of each note, but rather use a piano package with MIDI available through Python to render our sounds. We are currently exploring a few different options for these packages. This will reduce a lot of workload by using work already available to us rather than starting from scratch and trying to build deep sounds. Although we received feedback that suggested we use a soundcard as we are under budget, 1) we want to play the sounds through the phone for the portability aspects, as we expect our user to be using their laptop for actual score writing, and 2) we want to minimize cost to the user, as outlined in our use case.

Team Status Report for 3/11/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

Some of the significant risks that could jeapordize the success of the project are edge cases if the user presses inbetween two keys. How are ties broken? What if they are closer to one but still on the other? We mitigated this risk by simply taking the higher note (in pitch) to break ties.

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

We made  several changes to the existing design our system requirements. The first being identifying a battery to charge the gloves + micro-controller. We decided to settle on using AAA batteries in order to power this since they are small and lightweight and can provide enough to power the device at 3.3v for about roughly 3 hours.

Another change we made to the system is coloring the white keys of the keyboard layout to differentiate between octaves. We know that the camera field of view cannot see the entire length of the keyboard, so if it is only fixed on viewing two octaves at once (our current requirement), distinguising which octaves via different colors will significantly aid the CV algorithm.

For identifying fingers, we dicussed that we would add another color to the finger by printing a color out and attaching it to the top of the gloves in the view of the camera. This would help the CV algorithm identify what in the image are fingers. In addition, we are considering attaching fiducials of that color to these fingers, so the algorithm can further differentiate the fingers from one another, which will be integral when it gets the data from the micro-controller about which finger it is that is pressing a key from the pressure sensor.

As you’ve now established a set of sub-systems necessary to implement your project, what new tools have your team determined will be necessary for you to learn to be able to accomplish these tasks?

We’ve established that the iphone or android camera will need to interface with the app. This sometimes poses a technical challenge since making our product for both apple and android phones is tricky. We will be using and need to learn to use Xcode since it will be used as a wrapper over the python kivy interface to accomondate for apple products.

For interfacing the cameras of apple phones to Lee’s windows laptop for testing and streaming was also a challenge. He learned to use a tool called Iriun webcam to help accomplish having a streaming video feed from his iphone camera to work on his windows laptop. Android phones have an easier time doing this since the apple app store has may have more restrictions.

 

Team Status Report for 2/25/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

Since last sunday, we developed the block diagram, design requirements, and system specification for our new project for the design review presentation. Some of the changes we made are stated in the slides:

We were also considering making a change from the STM32 to another micro-controller. Details on this will be discussed today.

Please discuss teaming with your team.. and, please enumerate how you have adjusted your team work assignments to fill in gaps related to either new design challenges or team shortfalls (e.g. a team member missing a deadline).

Since we changed our entire project last week, we made significant changes to our team work assignments to account for these changes:

Nish: Pressure Thresholding, Xcode + Kivy Interface

Caroline: PCB and Glove Design

Lee: CV processing

Testing and verification remained the same

Team Status Report for 2/18/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

The most significant risk that we are facing right now is being behind because we just changed our whole capstone project idea last week. We received lots of feedback from our proposal presentation, and we believed that it would be best if we changed our idea. Our previous idea contained a lot of moving parts that didn’t necessarily fit together, but we tried to force them together. In addition, we decided to switch because, as a whole, we are more passionate and interested in our new project idea. Lastly, the original idea had some fundamental issues regarding practically and cost that made it seem as a whole more infeasible.

Because this is a huge setback, we are working overtime in order to not fall too far behind. We started to order parts already and are in the process of finalizing our design review presentation.

Since we are changing our project so late in the semester, we have a contingency plan that involves creating a simple MVP project first, and then building on it when we have time. This allows us to create a product that meets our expectations while not overcomplicating it and bringing in too many factors. We would love for our project to be as complex as possible, but with the given time, we realize that it may not be feasible to add every single component that we want.

Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

Because we completely changed our project idea, we have created a new requirements for our the new design of our system. The first set of requirements is that we want our product to be light and portable (weight and size) while still retaining a level of robustness. These changes are necessary so the user can have the accessibility and agency to conduct music arrangement and composition anywhere they are. Additional requirements were regarding number of chords, volumes, and octaves the user could play on this piano. This was also necessary since the user needs to feel that this product can be worth-while to use rather than the effort used to find a real piano. These requirements provides the fundamental needs of the arranger and composer so that our product can stand on its own uniqueness (portable) and be differentiated from most pianos. Lastly, the requirements that target accuracy is beyond paramount for the user since they desire a reliable and accurate product for their needs. If our note and playback is inaccurate, then it won’t be sufficient for the user to enjoy using this over other pianos.

The costs that these changes incur take up our own time to edit and develop these changes to the design.  Moving forward, additional costs to our time can be mitigated by finalizing our design after the design review this next week so there won’t be any confusion and fewer errors.

Provide an updated schedule if changes have occurred.

Here is a link to our new GANTT chart: https://docs.google.com/spreadsheets/d/1Cjl4wdKSUFSZtF_5Mw1JuqtcA23wlrnsTV8MYDUDK88/edit?usp=sharing

Please enumerate one or more principles of engineering, science and mathematics that your team used to develop the design solution for your project.

We used the reliability principle of engineering to design how each of the components in our design, when integrated, would remain functional while also providing the user a strong sense of our product’s robustness and accessibility. We designed our product to be simple so that it would remain lightweight and portable for the user including dependencies on everyday devices (phones and laptops) so the user would not have to bring additional equipment with them to enjoy a level of satisfaction that comes with playing the piano anywhere they go.

 

Team Status Report for 2/11/2023

What are the most significant risks that could jeopardize the success of the project? How are these risks being managed? What contingency plans are ready?

Some of the risks are that some of the components we want to use in our design may align well with our use case requirements. As an example, for our coin battery, it may not supply the 2 year length of time we have for our use case requirement. It also may perform differently depending on the use of the coin battery, which could make results unpredictable. We’ll try to manage this risk by being very thorough with our research when analyzing datasheets.

Another risk that could pose complications would be having ill-equipped foresight of how our solution approach may not take into account well of envisioning every stage of where the product ends up affected by. We should analyze how our product would perform when being checked in, on the conveyer belt, being loaded onto the airplane, being picked up at baggage claim, etc. To manage this risk, we plan on creating block diagrams like we did for our theivery flow slide in order to illustrate and demonstrate how this would work. By planning out every minute detail, we increase the chances of a successful project.

Lastly, we might want to consider the risks of how practical our product would be for consumers in real life. This also means looking into whether there are some forms of data communication that may be better than others such as bluetooth or wifi. Some contingency plans we thought of in order to address these risks is writing out some of the pros and cons to both. We discussed how wifi had security issues or that not every user connected to the airport wifi, but bluetooth also had a shorter range than wifi as well.

Another practical risk was addressing multiple passengers who would go through the scanner or a family of passengers and their luggages, and how we would adress our solution approach to address these issues. To address this risk, RFID ensures that each luggage and user would be paired with the same data that identifies them correctly. So multiple people passing through with different data that identifies them would not intefere with each other. For the families with mutiple bags who go through the scanner, it is a grounded assumption that families register themselves and their children under the same account for the airlines. Using this information, we would give them luggage tags with the same identification data so that the scanner would be looking for the luggage tags to match with any one of the tags on the family members. These are some of the ways we plan on mitigating these risks to practicality.  

“ Were any changes made to the existing design of the system (requirements, block diagram, system spec, etc)? Why was this change necessary, what costs does the change incur, and how will these costs be mitigated going forward?

Over the week we decided to make the change to remove the geolocation, airtag capabilities on the luggage tag. After discussing with course staff  and ourselves, we concluded that it was an additional task to locate the luggage and would be outside the scope of our use case of preventing baggage claims thefts. Knowing the location of the luggage might aid in that effort, but the issue is that location doesn’t prevent, it only helps with identifying where the missing luggage went after the event. Furthermore, the widespread use of apple airtags makes this task pretty much already solved, so it we would rather focus our efforts toward something that consumers would be more interested in solving (no reason to reinvent the wheel).  

Provide an updated schedule if changes have occurred.

The above change was conduced this past week before we created our schedule, so the schedule created for the proposal presentation is still up to date.

“Our project includes considerations for __________”

Our project includes considerations for public safety and welfare for airport passengers, which could have a global impact as air travel is a commonly used technology used world-wide. Since our use case for our product aims at diminishing luggage claims theft or midhandling this would help in the safety and security of people’s property and possessions. Lastly, there could be an environmental benefit, as we plan on making these RFID tags reusable by having a disposable bin outside airport exits for people to dispose of their tags so that they can be reprogrammed by the airlines to be used for future passengers.