Jeffrey’s Status Report for 11/21/2026

This week, I completed several tasks for the integration of our system, as well as continued to add functionality and improve the accuracy of our system.

For total system integration, I setup the Raspberry Pi anchor station, transferred/ran all the firmware for the Pi on SSH, installed Matthew’s web dashboard code onto it, and setup the connection between the output of the firmware onto the web dashboard hosted by the Pi. Now, the pipeline from anchor/wireless input to the web dashboard, which other devices are able to connect to, is complete. It was validated real data from our pool testing with simulated anchor input, and was able to show the motion of the swimmer live on the web dashboard.

To do so, I expanded the firmware on the Pi by creating the script streaming each tag to the web dashboard, as well as created the file to upload the pool’s configuration to the dashboard. I also completed several accuracy improvements. As mentioned last week, the formula was overcounting several strokes as two strokes due to the change in motion in the arm in air versus in water. I adjusted the formula to track the continuous rotation along the swimmer’s axis in addition to looking at the peaks of gyroscopic motion. Together it weigh both factors to better see what peaks are a continous stroke. That reduced the margin of error from our real data from ~43% to ~15%. To further reduce the number, I implemented wall detection firmware that will take the swimmer’s position and IMU data to determine when the swimmer touches the wall. It can then know to ignore motion associated with wall touches, which should further reduce the amount of overcounted strokes. Wall detection will also help with our location accuracy, as it provides a reference point to where exactly the end of the pool is. Another major firmware change I worked on was converting function calls in my c code into Zephyr formats to get those to run on the NRF, since our final prototype doesn’t have a Pico.

My progress is on schedule. For now, I have done most of the firmware of my system, so I will spend the remaining time working with the rest of the team towards full system integration. That will include both the physical setup of the devices, pool testing, further fine tuning of my system to improve accuracy, and work towards deliverables like the final presentation and report.

Over the course of this project, I learned a lot about the practical integration of systems, which differs a lot from studying the details of how components work and such. For example, I am currently taking a MEMS class and part of the class is studying how devices like accelerometers work; it is a completely different task to take an IMU and learn how to process the data it outputs and connect it to other devices. 

Overall, I would say the greatest challenges were not limitations of ECE knowledge, but the task of getting all the different interfaces to connect, (such as converting c code to run on a Pico, getting the Pico to convert into binary and then into Zephyr for the NRF). And on the anchor side the conversion from reading serial into Python, and then converting them into webhook calls for the web dashboard. All of that effort went into just converting formats. There’s also the physical aspect of integration challenges. During the planning phase, I had to search digikey extensively to find the right components to connect the various components we were buying. There were all sorts of different variables to consider such as connector layout and voltage it runs on. All that planning was necessary to reduce the orders needed and save on shipping costs.

Our antenna adapter illsutrates the challenges of that. No specific harness existed, so we would have to build it from scratch, so I researched the correct connectors, pins, and UART boards to create the adapter. But during physical assembly, we found that the connector did not give us enough pitch to solder individual wires to pins. So I again scoured DigiKey to find an alternative connector that had different pitched output pins. And once we got the components I had to consult the datasheets to know which pins to connect and so on.

A huge part of my learning in this project was just how to efficiently find resources to handle those types of practical challenges. I learned how to efficiently find datasheets for components and know where to look to find the information I’m looking for, as well as find and understand guides for setting up and using development tools/libraries to convert between all sorts of formats. I also found that I did have to utilize a lot of informal sources to find solutions to specific problems. I mentioned the antenna connector above, and the replacement component that worked well I actually found through a link on some random forum. In general, this course taught me a lot about the practical challenges of integrating a multifaceted system, which has been very different than the conceptual learning done in courses.

Jeffrey’s Status Report for 11/14/2026

This week I did work on several systems to made progress towards full system integration.

On the Pico prototype, I rebuilt the IMU to Pico connection and changed the code to retry connections based on reliability issues encountered during real-world testing. The system would sometimes stall, which was found to be caused by the ground losing connection to the pin on the Pico. I fixed that by resoldering all the connections and making the code send retries to connect to the IMU. With the reliability improvements, that allowed us to conduct real-world testing with the prototype device. With Matthew’s help doing the swimming, we tested in the CUC pool all four stroke types, while I was manually counting strokes for accuracy. The results from the recorded data is pictured below. With the more accurate conditions of the pool, it seemed that the algorithm recorded almost exactly double the amount of strokes, which is due to the change in motion when the arm is in the air versus the water. The previous testing on land did not account for that effect, so I am in the process of improving the stroke detection to account for that.

On the Raspberry Pi firmware side, I also made significant progress with the firmware and system integration. Having received the format of antenna messages from Haowen, I implemented the code that will receive the antenna data, separate that into IMU data and AoA data, convert the AoA data into position/lane in the pool, perform filtering to remove noise, and impelment the EkF to fill in gaps about the swimmer’s position/velocity. All methods were verified with testbenches that was fed our real session data. I am in the process of implementing the Pi’s connection to Matthew’s web portal.

I am currently on schedule with my tasks. Most of the initial development is done, leaving the rest of the semester as time to perform and smooth out the integration of our separate subsystems, as well as iterate on the code/processes to improve accuracy metrics. Next week, I will attempt to have the web app running on the Pi as well as the firmware (development was done on a separate computer) running on the Pi. With a successful swim session, I will also attempt to get the stroke detection accuracy closer to the real recorded numbers. And depending on when our team can meet, I may help with establishing the wireless connection from tag to anchor.

So far, the tests that I have run have been primarily related to stroke detection. With Matthew’s help, we have conducted numerous trials consisting of the wearer performing a certain number of strokes and making sure that the outputted number on the code reflects the number actually performed. Additionally, we introduced other motion into the IMU readings, such as by bumping the wearable, to ensure that motion that is not a stroke gets filtered out properly. Most of our dry land tests were correct with about 1/2 extra strokes that may have been caused by my handing the wearable over or relation motions that were not 100% filtered out. After that, as mentioned previously, we conducted a real-world test in the swimming pool. During the test, Matthew performed a variety of stroke types (IM, butterfly, backstroke, breathstroke, freestyle). For every lap done, I manually recorded the type of stroke and the number of strokes performing during the lap. With the raw data on hand, I will then tune the stroke detection algorithm to improve accuracy to the real numbers. Within the data, there are gyroscopic peaks showing every stroke as well as turns that leave a different motion signature. From there, I can tune the algorithm to better fit the training data we recorded. Our stroke count accuracy goal was stated at 85%, which can be verified by comparing the recorded stroke count to the count produced by the code.

In terms of future tests, we plan on conducting more real-world testing. We can use those to not only test out the revised stroke detection algorithm on new data (better reflecting the algorithm’s true accuracy), as well as test other aspects of my code that haven’t been fully implemented with other parts yet. Stroke detection will be tested the same way in the future as previously mentioned. Once implemented, we can also test the positioning accuracy, which depends on both the Pi’s firmware and the antenna setup accuracy. That can be tested in the pool by measuring certain distances along the lane and comparing the measurements to what is read on the Pi. A variety of lanes can be tested. Those tests will tell us whether we have met the 1.07m position accuracy. Testing of the 110ms timing, 1s latency and 25 device throughput requirements are affected by my system, but will be tested as a team since they involve all of our systems.

Additionally, all of my firmware I wrote (on the Pico and the Pi) has been verified using testbenches. Initially, the testbenches were fed simulated data to make sure that each individual step produced an expected outcome. Afterward, simulated data was fed to the end-to-end firmware dataflow to produce expected outcomes. Finally, the firmware was run using recorded measurements from our test sessions to verify functionality. In doing so, I confirmed the functionality of my code (pre-integration in an ideal environment).

Jeffrey’s Status Report for 11/07/2026

The majority of my effort this week went into code and getting our system ready for integration.

Continuing from last week where I designed the core firmware for the prototype wearable, the code I did this week for integrating the wearable with the rest of the components, as well as starting the code on the anchor’s side to analyze/process the raw data produced by the wearable and turn that into real metrics. Methods/scripts I worked on this week on the Pi side include code to read UART frames from the antenna and verify the CRC and decode the binary, code to filter the gyroscope data and identify peaks to determine stroke count, and the main routine of the Pi that calls the processing functions in order. Pictured is a graph of the stroke detection. It doesn’t work perfectly so far, but it was able to filter out noise caused by extraneous motion to some extent and identify the peaks caused by strokes.

For ease of integration, I also made changes to the Pico wearable prototype code. The pico previously saved raw IMU data to as a csv to a local file for testing. It now send the IMU data through the processing pipeline and save the binary frames as a binary file in the format that we are planning to send wirelessly. With that change, I was able to validate the end-to-end pipeline and dataflow from the IMU through the pico to the ready-to-send frames without waiting for the wireless connection to be ready. I also was able to use those binary files stored locally to test the anchor’s code without needing to establish the wireless connection. So the Pico->Antenna dataflow is now verified on the data/non-wireless aspects. Now the Pico code is now ready to interface with the transmitter our team’s agreed upon format. Other smaller tasks I worked on during this week was repairing the ANT-B10 anchor connector using a different component (we found an adapter on Digikey, which was easier to use than the previous wiring harness component we ordered), as well as I setup the NRF programming environment on my computer and ran a test script to verify the functionallity of the CPU on our transmitter.

This week I didn’t get to finishing the full data processing pipeline on the Raspberry Pi anchor’s side, as I instead focusesed more on debugging existing systems and integration ahead of the interim demo deadline next week. That is essentially shifting some of the work of later weeks to this week, so I am confident in my ability to stay on schedule, as I hope to make further progress on the data processing pipeline on the Pi’s side and work with my team to establish the wireless connection between the transmitter and the antenna anchor.

Jeffrey’s Status Report for 10/24/2026

This week I focused primarily on the assembly of the prototype wearable device. All of the prototype components arrived over break, so I was able to start connecting and troubleshooting the prototype’s assembly (Matthew assisted with some of the soldering). I consulted the parts datasheets/schematics to figure out the connections (power/ground/data/GPIO) between the Pico and the IMU and soldered the connections. With that, as well as a simple test program I ran on the Pico, the device was able to start reading the 6-axis motion data. I also consulted schematics to set up the Nordic radio in the right configuration we need and figure out the connections to the Pico, which were also soldered. The prototype device is essentially complete hardware-wise. The only thing is that I could not validate functionality of the Nordic radio yet, as the antenna receiver is not yet set up. 

I also assisted in manufacturing the wiring harnesses required to connect the ANT-B10 array to a computer via USB (no off-the-shelf adapter existed so we had to create one). Additionally, I have begun organizing more formally the exact code that needs to run on the Pico in order to start writing the device’s final firmware (I have been using test programs so far to test specific components).

I am not behind schedule. Next week, I hope to start gathering motion data on swimming strokes (on land most likely) as well as make significant progress towards the prototype wearable’s firmware.

Jeffrey’s Status Report for 10/11/2026

Status Report for Oct 4-11

Accomplishments:

One of the major tasks I worked on this week was to reevaluate our team’s decision to use an FPGA, based on feedback from the design review presentation as well as additional research. To get more information, I ran a C testbench on the Linux core of the Ultra96, simulating the workload using mock data. The results showed that the Ultra96 was able to produce a low enough latency to where we don’t need to utilize an FPGA. To further solidify the decision, I also created a testbench and ran it on the Raspberry Pico, which was also able to perform our workload with a low enough latency. The results from the testbench and the prototype device are pictured. 

Additionally, some parts for the wearable prototype arrived, so I was able to work with Matthew to start assembling the wearable prototype. We have successfully connected the Pico with the power shim and the battery, so we are just waiting on some other components like the transceiver to arrive.

Additional work went into writing the design review document, which included doing further research to expand on our requirements and solution approach as well as the writing involved to document our project. Specifically, that included researching some of the last few small parts/connectors involved on our system to have a complete bill of materials. 

My progress is on schedule. Next week I hope to get the prototype wearable completely assembled, and possibly begin writing the firmware for it.

Jeffrey’s Status Report for 10/3/2026

This week I made progress in various areas. Earlier in the week (mainly Sunday) I worked on polishing my presentation for the design review, including adding visuals to the slides, reducing/simplifying the text on the slides,  and practicing the presentation multiple times. I also made progress towards the development of the wearable prototype, which was one of my focuses this week. I finalized the decision of the charging shim to connect to the prototype board, and I received the Pico from Matthew that will power the prototype. I also finalized some other small components need for power conversion between the FPGA and ANT array. Some other components for the prototype including the wireless transceiver and the IMU have not yet arrived, so I was limited in making further progress. However, I believe those parts have been finalized/ordered by other members and should be in soon. Additionally, I received the power adapter for the FPGA, so I was able to power the FPGA and enable the Linux core to communicate with my laptop, which took some troubleshooting. But I now have the ability to communicate and send files to the Linux core via SSH. Lastly, based off of feedback from the design presentation on Wednesday, I decided to investigate more on the design decision to use an FPGA versus traditional computer. Conceptual research has given me mixed results, so I plan on benchmarking to get concrete numbers about the latency of each. I will write a C benchmark that will perform the tasks required of the FPGA, and run it on the FPGA’s ARM core. I will then compare the latency to that I get using simulated data on SystemVerilog code running on the FPGA. I am currently in the process of writing/debugging the C test suite for the ARM Core. This task has taken precedence, since I want to make a final decision for the design document.

 

 

In terms of timeline, I completed my task of 100% finalizing the prototype parts I’m responsible for. They will be ordered either Sunday or Saturday, pending some coordination for the DigiKey order. I was not able to test the FPGA-Pico connection, since the transceiver has not arrived yet. I hope to be able to do that next week. Next week I also hope to connect the modules of the prototype if the parts arrive, and finish my benchmarking of the C code versus SystemVerilog on the FPGA’s core and fabric.