Aaqib’s Status Report (12/5)

This will be an ongoing report as it is the last to report how much the piezo sensor’s functionality changes. This is also a record for me to keep track of all the changes that I have done.
First off, the firmware design and implementation is finalized for 2nd test attempts until the demo.
The first design attempts has issues with crosstalk handling. The problem was when 2 or more strings were played at the same time, the firmware would have a hard time distinguishing crosstalk. This was fundamentally because the first pluck event would pick the high peak, but for the rest of the string (played within 2ms), we would not measure the max peak and only the peak measured in the 2ms which was obviously low. As a result, almost all such strings were considered crosstalk. The solution was to increase the 2ms to 7ms and collect max peak data for all strings that were played within 2ms of the corresponding first string. This way, we have enough time to collect the highest peak of all strings and then classify any latter string as a crosstalk based on that. In addition to this, I play to use calibration to set a 6×6 matrix of rejection ratios (i.e. ratios that will allow us to see whether explicitly a destination string is crosstalk from a source. Its 6×6 because different source strings can have different impacts to each other destination)
Unit tests are as mentioned in the final presentation.

  1. No playing testing: To see if there is a drift in our base voltage (and for ADC level). We did not see any marginal drift on the preliminary tests (see context above).
  2. Latency below 10ms: This is not directly possible anymore if multiple strings are played because it takes approximately 2-7ms first the first pluck to register and 5-7ms for the next consequent string to be classified. In most cases, we will cross 10ms. However, we can increase the threshold to less than 12ms.
  3. Soft, medium and hard single plucks to see if the piezo’s + firmware correctly distinguish velocity levels.
  4. 100 single pluck: To ensure that we don’t have high percentage of ghost notes and miscategorization.
  5. 20 strums: to ensure that strums work as intended.

Please see screenshot below to further understand how we pass these reqs.

Overall system testing: Pending for after integration. Waiting on PCB implementation completion.