Haowen’s Weekly Status Report (Week 12)

This week, I worked on integrating the software and testing it on my nRF52833 DK. I first went through Jeffrey’s Zephyr code to understand how IMU data is read, stored in the ring buffer, and converted into packets. I then implemented ble_set_payload() to connect the encoded packets to the periodic BLE advertising process. I also set up two build configurations so the firmware can run with either synthetic data or real IMU data.

I spent roughly 14 hours this week on this project.

  • Code integration and debugging: 4 hours
  • Firmware build and DK validation: 3 hours
  • Packet validation tools: 2 hours
  • AoA analysis tools: 3 hours
  • PCB review and documentation: 2 hours

I successfully built and flashed the firmware in synthetic data mode on my DK. I ran it continuously for 10 minutes and also tested it after powering the board off and on again. The logs showed no errors in packet generation, encoding, buffer management, or advertising updates. I also confirmed that the real IMU configuration compiles successfully, although I have not tested it with the physical sensor yet. In addition, I checked the packet format, which consists of an 8-byte header, 12 bytes per sample, and a 4-byte footer. The firmware supports both 5-sample and 6-sample packets, with total sizes of 76 and 88 bytes. I also wrote a PC-side Python script to check packet length, CRC, and sequence numbers. It passed validation with 1,000 generated packets.

Besides the firmware work, a Python tool for AoA data analysis also groups measurements by file, tag, and antenna, and generates statistics and time-series plots. It can also calculate MAE when reference angles are available. I tested the tool using two existing CSV files, although those datasets did not include reference positions, so I could not use them to evaluate positioning accuracy. I also organized the integrated code, build instructions, and usage notes, and reviewed the PCB documentation to identify the changes needed for GPIO assignments, LEDs, clock settings, and logging.

The software integration and initial DK testing are progressing as planned, but the hardware testing is not finished yet. I still need to test the integrated firmware with the ANT-B10 receiver, verify real IMU data on Jeffrey’s device, and collect AoA measurements at known angles and distances. The firmware also needs to be adapted and tested on the final PCB. These tasks depend partly on coordinating with my teammates and accessing the hardware. I have prepared the code and testing tools, so next week I plan to focus on completing the receiver and IMU tests first, followed by initial AoA experiments. I will also start adapting the firmware to the final PCB and document any issues found during testing.

During this work, I became more familiar with the Zephyr codebase and how BLE periodic advertising is connected to sensor data and packet generation. I also learned more about packet validation, CRC checks, and processing AoA measurement data in Python. Most of this knowledge came from reading the existing code, checking Zephyr documentation, looking at runtime logs, and testing individual parts of the implementation. When developing the analysis scripts, I also referred to Python documentation and online examples, then tested the results using existing CSV data. These hands-on tests helped me understand the code and find issues before moving on to testing with the actual hardware.

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.

Team Status Report for Week 11

Haowen finished the main part of the tag data path. The firmware can now receive Jeffrey’s sensor packets over UART, check the CRC, and discard packets that are corrupted. Valid packets, up to 88 bytes, are then included in the Bluetooth advertisement. The 160-microsecond tone used for angle measurement continues running at the same time. I tested this using a frame generator and on the actual board.

Jeffrey and Matthew also collected pool data at the Cohon pool this week. They recorded all four stroke types and counted the laps by hand. The current algorithm counted almost twice as many strokes in the water as it should. The thresholds were originally tuned using movements on land, which are different from actual swimming movements. Jeffrey is now using the recorded pool data to adjust the algorithm.

On the Raspberry Pi side, the software can receive messages from the anchor and separate the IMU data from the angle data. It also converts the angles into positions and lane information, filters noisy readings, and uses an extended Kalman filter to fill in missing data. We tested this with recorded session data. The connection to the web portal is still being worked on.

For the hardware, we placed the PCB order. The assembled boards are expected to arrive in less than a week and a half. We also reinforced the connections on the base station after experiencing some connection dropouts.

Risks and How We Are Handling Them

One concern is that the PCB may arrive later than expected, since the delivery date is close to Thanksgiving. To avoid holding up the project, we have already prepared the firmware for the same chip on the development board, and the required build versions are ready. If the PCB does not arrive in time, we can continue the pool tests with the current working wearable and test the PCB later in the lab.

Waterproofing and battery safety are another concern. We found condensation inside the prototype, so we are adding a sealed casing and a silica gel packet. We also plan to test the casing with shocks and longer periods of water exposure. If the casing is not ready for the demo, we will use a double-sealed bag while keeping the battery protection circuit in place.

The stroke counting algorithm also needs more work. The thresholds that worked on land caused the system to count too many strokes in the pool. Jeffrey is adjusting the thresholds using the recorded swimming data. We will then test the updated version on a new session rather than using only the data used for tuning. If the accuracy is still below the target, we will report the results separately for each stroke type.

Wireless reliability is another issue. In the initial test, the anchor received about 92% of the tag’s transmissions, and it can track up to 25 tags at the full update rate. We plan to send each packet more than once and test shorter advertising intervals next week. We have also changed the tag capacity requirement from 50 to 25. If more tags are needed later, the system may have to use a second anchor or reduce the update rate.

There is also a limitation with the angle measurements. A single anchor can measure direction, but it cannot directly tell how far away the tag is. This means we need to make some assumptions about the tag’s position in the pool. We plan to test at several measured points along different lanes. For now, the main goal is to make sure the system can correctly identify the swimmer’s lane.

We have reinforced the connections to reduce the chance of losing the hardware, and we are keeping recorded data so that software development and testing can continue even without the physical devices.

Design Changes

We changed the CTE tone length from 128 to 160 microseconds after checking the anchor manual, which requires this setting along with a specific beacon format. This did not require any additional hardware, and we updated the design document before testing.

We also reduced the maximum number of supported tags from 50 to 25 because the anchor can only track 25 tags at the full update rate. This is a smaller capacity than originally planned, but it should still be enough for one lane group. If we can get another anchor, we can consider increasing the capacity.

Another change was adding a 2 ms delay between characters when sending commands to the anchor. We found that commands sent too quickly sometimes lost individual characters. In the test, 11 out of 200 commands failed without the delay, while all 200 worked after adding it. This makes the setup process slightly slower but does not affect normal data transmission.

We also added a sealed casing with silica gel to the wearable design to address the condensation found inside the prototype.

Updated Schedule

During week 12 (November 16–22), we plan to work with Matthew on checking the forwarded packets and running the timing tests. We will also test the UART connection between Jeffrey’s Pico and the development board. On the software side, we need to get the web app and firmware running on the Raspberry Pi and test the updated stroke detection algorithm using a new swimming session. We also plan to complete the first half of the angle accuracy test and build and test the sealed casing.

During week 13 (November 23–29), we will bring up the PCB once it arrives. Pool testing is planned for Monday through Wednesday, including angle accuracy out to 25 m, lane discrimination, packet loss, and latency. We will then focus on final integration and the report. Since Thanksgiving is on November 26, we are not planning project work from Thursday through Sunday.

Verification and Validation

Each subsystem is responsible for testing its own technical requirements, as described in the individual subsystem reports. In addition, we need to test the complete system to make sure it works for the actual swimming use case.

For stroke counting, we will test all four stroke types in the pool and compare the system’s results with laps counted by hand. We will calculate the accuracy for each lap and the average accuracy for each stroke type. The final test will use sessions that were not used to adjust the algorithm. The target is at least 85% accuracy.

For position accuracy and lane discrimination, we will place the tag at points measured with a tape along several lanes, with test distances up to 25 m. We will calculate the position error at each point, along with the mean and 95th percentile error, and check how often the system identifies the correct lane. The position error should stay below 1.07 m.

We will also check timing accuracy by recording wall touches and comparing the actual times from the video with the timestamps shown on the dashboard. We plan to test at least 20 touches and calculate the error for each one, including the average and worst-case error. The target is less than 110 ms. For end-to-end latency, we will record the tag event and dashboard update in the same video and repeat the test at least 20 times. We will calculate the median and 95th percentile latency, which should both stay below 1 second.

To test capacity, we will use real tags along with replayed traffic to simulate 25 tags sending data through the Raspberry Pi and web app. We will check packet loss and latency as the number of tags increases. The system should keep packet loss below 5% and latency below 1 second.

Battery life will be tested by running the wearable PCB from a full charge until shutdown. If needed, we will also measure the average current consumption and use it to estimate battery life. The target is at least 4 hours. Finally, we will check the device’s weight, strap pressure, and waterproofing. This includes weighing the complete device, calculating the pressure from the strap, and checking for water inside after shock and water exposure tests. The device should weigh no more than 55 g, the strap pressure should stay below 9.5 kPa, and there should be no water inside the casing.

For each test, we will record the actual results and the number of samples. If something does not meet the requirement, we will first try a simple change, such as adjusting the advertising interval, changing the stroke detection thresholds, or moving the anchor to a better position.

Haowen’s Weekly Status Report (Week 11)

What I Accomplished This Week

UART frame receiver. I wrote a C module to receive and parse Jeffrey’s UART packet format, including sync bytes, length, packet data, and CRC-16. I also tested it on my laptop without needing the Pico. The CRC values matched Jeffrey’s implementation: 0x29B1 for the standard test string and 0x369B for his test frame. All nine automated tests passed, covering garbage data before a frame, invalid lengths, back-to-back frames, minimum and maximum packet sizes, and a stress test with 1,000 frames. I also wrote send_frames.py to generate test data and simulate the Pico.

Firmware v3. I updated the tag firmware to read UART frames, discard invalid ones, and put valid packets into the periodic advertising data. The payload can carry up to 88 bytes, which is within the anchor’s 255-byte limit. The 160-microsecond CTE continues running while the tag sends the data. I also added two LEDs to help check the receiver’s status. After flashing the firmware, I sent 20 frames per second from my laptop. The first LED flashed continuously, while the second stayed off. When I introduced bad frames and random bytes, the second LED started flickering, confirming that the firmware was detecting bad frames.

Pin selection. While checking the board files, I noticed that my original pin choice was shared with the radio’s antenna switch and SPI. I changed it to the board’s built-in Arduino serial port on D0.

Firmware v3.1. I made the tag ID and advertising interval configurable through build settings. I also built the versions needed for next week’s tests, with intervals of 50, 30, and 25 ms. The serial log confirms that the test build uses tag ID 000000000002 and a 30 ms interval.

I also collected the test outputs, build logs, LED test video, serial log, and pin analysis, and updated the firmware notes. The build uses about 20% of flash and 15% of RAM.

I spent approximately 16 hours on the project this week.

Is My Progress on Schedule?

The firmware work and everything I could test independently are done. The IMU test and power measurements are also still pending because I don’t have access to an IMU board or a current meter yet.

Verification

The signal subsystem needs to meet several requirements from our design review. The average angle error should be no more than 2.45 degrees, with a standard deviation of no more than 0.8 degrees, to keep the lane position error below 1.07 m. The system should also receive packets reliably at distances up to 25 m in line of sight, keep packet loss below 5%, maintain end-to-end latency under 1 second, and allow the tag to run for at least 4 hours on a 150 mAh battery.

So far, I have completed several initial tests. For the anchor command link, I found that the anchor occasionally missed individual characters in incoming commands. In the first test, 11 out of 200 commands failed. After adding a 2 ms delay between characters, all 200 commands were received correctly. I still need to run a longer test with 1,000 commands to make sure this is consistent. I also tested the tag-to-anchor link. During the first live test, the anchor received about 92% of the tag’s transmissions, at a rate of roughly 18 packets per second. The reported angle also changed smoothly as I moved the tag. For the packet receiver, all nine automated tests using Jeffrey’s test frame passed. I also tested the firmware with 20 generated frames per second. When I introduced damaged frames, the receiver rejected them instead of forwarding them to the anchor.

The next step is to collect enough data to check the angle accuracy. I plan to test 28 fixed positions, covering angles from -60 to +60 degrees and distances of 5, 10, 15, and 25 m, with 500 samples at each position. I will measure the positions with a tape and compare the reported angles with the actual angles. For each position, I will calculate the mean error, standard deviation, maximum error, and percentage of samples within 2.45 degrees. I will also calculate the overall mean absolute error. Before collecting the data, I will calibrate out any fixed angle offset at 0 degrees. The target is a mean absolute error of no more than 2.45 degrees and a standard deviation of no more than 0.8 degrees. I will also convert the angle error into sideways position error using distance × tan(angle error) and check whether it stays below 1.07 m, which is half a lane width, including at 25 m.

For packet loss, I will use the packet counter to identify transmissions that never reach the anchor. I plan to test advertising intervals of 50, 30, and 25 ms, followed by 10-minute runs. The target is to keep packet loss below 5%. Since each packet is sent twice, the expected loss would be around 0.6% if the two transmission failures are independent. However, I still need to check whether packet losses actually occur independently rather than assuming that they do.

I also need to test the system at different distances, up to 25 m, and check how it performs near the pool with a moving tag and water splashing. I will record the reception rate, packet loss, and RSSI at each distance. For the enclosure test, I will compare the tag in three conditions: without a cover, inside a plastic bag, and taped to the forearm. The tests will be done at a fixed distance of 1 m. I will compare RSSI, the number of received events per second, and angle variation to see whether the enclosure or the position on the body affects performance. Both tests should meet the packet loss and angle accuracy requirements.

For latency, I plan to record the tag event and the corresponding dashboard update on video and repeat this for 20 events. I will measure the time between the two and report both the median and worst-case latency. The requirement is to stay below 1 second. For battery life, I will measure the tag’s average current consumption if I can borrow a current meter. If the meter is unavailable, I will use the datasheet values to make an estimate. The calculation will use 80% of the 150 mAh battery capacity as usable capacity, divided by the average current. The target is at least 4 hours of operation.

Finally, I will test multiple tags and check the anchor’s current limit of 25 tags. I will record whether the anchor can receive the angle data from each tag and how long it takes to switch between tags. The results will also help determine whether the tag-count requirement needs to be updated.

If any test does not meet its target, I will first try changes that are relatively easy to make. For example, I can reduce the advertising interval if packet loss is too high, adjust the anchor position or recalibrate if the angle error is too large, and make the enclosure thinner or change its position if it affects reception. I will record the number of samples and actual results for each test so that the conclusions are supported by the measurements.

Deliverables for Next Week

  1. Testing with Matthew: Verify that forwarded packets reach the anchor with a valid CRC, including both normal and stress tests. Run timing tests at 50, 30, and 25 ms, check the angle at 1 m, and test the enclosure.
  2. Testing with Jeffrey: Connect the Pico to the DK and verify the complete UART data path, with his Raspberry Pi reading the data from the anchor.
  3. Accuracy testing: Complete the first part of the test at 5 m and 10 m.

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).

Team Status Report for 11/7/2026

This week, our team made progress towards continuing to integrate our system and working towards our interim working product. Haowen worked primarily on wireless firmware, Jeffrey worked on the compute firmware for the Pico/Raspberry Pi anchor, and Matthew worked on the PCB wearable used in our final product.

At this point, we are close to achieving a minimum viable product. The biggest risks will therefore be the unexpected challenges we encounter during integration, as well as the accuracy of the metrics we are able to measure. Specifically, some measurements such as wall detection, latency and AoA are still untested untill we have a systemwide integration. We are meeting on Sunday (Tomorrow) to work on systemwide integration, where we are hoping to establish a wireless connection between the wearable and antenna/anchor.

To address risks, In the short term, we have allocated significant time during the day tomorrow to account/derisk for integration challenges/hiccups. In the longer term, we plan to move ahead our integration time line to prioritize the cohesive system, while deprioritizing some lower-risk miscellaneous tasks. However we are still sticking to our relative schedule in terms of major tasks/deadlines. To address the risk relating to accuracy, we plan to do more extensive real-world testing after we are ready for our interim demo. The limited testing we have done with stroke count gives us an okay baseline accuracy, which will only get better with testing reflecting more realistic conditions. And once we have our rough integration ready, we should have a baseline working system that will allow us to make optimizations in parellel, reducing any risk of one dependency holding us up. In addition, Matthew’s prioritizing the PCB development helps derisk us from the PCB bringup risk identified in previous weeks.

Although some smaller tasks have shifted around, our overall schedule in terms of major goals has not changed.

Haowen’s Weekly Status Report (Week 10)

This week, I worked on firmware development, payload formatting, AoA data analysis, and DK setup. I successfully compiled firmware v2 for the nRF52833 DK, with Flash usage at 19.72% and RAM usage at 14.25%. I also created payload_format.h and payload_format.py to define the payload format for both the embedded firmware and Python scripts. In addition, I developed analyze_aoa.py to process AoA measurements and calculate angle statistics, and added a self-test to verify the script. For hardware setup, I configured the Nordic development environment and confirmed that nrfutil could detect the DK. I attempted to flash firmware v2 onto the board, but the operation was blocked by AP-Protect. I identified west flash --recover as the required next step and also identified the DK serial ports for checking firmware startup logs.

The main files completed or updated this week include tag_fw/, tag_fw/src/payload_format.h, payload_format.py, analyze_aoa.py, and checklist.txt. I spent approximately 15 hours on the project this week.

The tasks are on schedule. Firmware v2 compiles successfully, and the payload format and AoA analysis script are ready. Once the firmware is programmed, I will check the serial logs to verify that Bluetooth initialization, CTE configuration, and advertising are working correctly. I plan to prioritize these hardware integration tasks at the beginning of next week.

Next week, I plan to finish flashing firmware v2 onto the nRF52833 DK and verify its startup logs, including extended advertising, periodic advertising, and CTE configuration. I also plan to complete the first integration test between the DK and the anchor and obtain the first valid AoA measurements. I will collect measurements at three different positions: directly in front of the anchor and approximately 27° to either side. These measurements will be analyzed using analyze_aoa.py to check angle direction, standard deviation, and measurement frequency. In addition, I plan to use check_payload.py to verify the received payload data and check for missing sequence numbers. Finally, I will test higher UART baud rates and verify the final communication settings. The main goal is to get the DK and anchor communicating successfully and obtain the first set of valid AoA measurements.

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/31/2026

This week I made progress in firmware development and in testing/collecting data using the prototype wearable. 

I implemented, debugged, and validated the core functionality of the wearable, including the code to calculate/encode the crc16 checksums; the code to assemble data with timestamps, IMU values, and battery information into packets; and store packets into a ringbuffer (to store buffered packets that will be sent all at once upon surfacing). Additionally, I tested and validated the code using testbenches that account for edge cases, as well as a stress test using constrained random testing to simulate real-world behaviors. All tests passed. That is the majority of the firmware for the prototype wearable; the major thing left is the code to interface with the Nordic radio, which will be further implemented once the antenna side is functional. Otherwise it is difficult to verify if the signals are sent. We intentionally limited the computation done on the wearable to save on compute/battery life. The more complex algorithms are run on the compute station.

I also made progress with testing the prototype wearable. After getting the IMU working, with Matthew helping perform the swimming strokes, I collected IMU data on the four types of strokes, which will be used to implement the code on the Raspberry Pi’s side. A visualization of the motion data we collected is linked below. Before each stroke, the device was tapped a different amount of times(3 for freestyle, 4 for backstroke, 5 for breath stroke, 6 for butterfly) Based on the IMU data it seems like peak detection + filtering will be sufficient for counting strokes. And each stroke has a clear path it traces in a different plane, which should make identifying stroke type not too difficult. This week I also connected our Raspberry Pi 4 base station to the ANT-B10 array to power it, so it is now able to interface with a computer to receive code. 

I am on schedule. Next week my main goal is to make progress towards the development on the Raspberry Pi side, which I can do with the IMU data collected this week. We will also likely collect more data using the prototype wearable to get a larger volume of data (data so far is limited to a few stationary tests), which may help make the algorithms more accurate. I will also help with the systemwide integration/connection of components.. 

IMU Testing Data converted into motion gif

Haowen’s Weekly Status Report (Week 9)

What I Accomplished This Week

Toolchain and firmware setup

I set up nRF Connect SDK v3.4.1 and built Nordic’s direction_finding_connectionless_tx sample for the nRF52833 DK. I also reviewed prj.conf and main.c to understand the sample’s default configuration. The settings I noted include a 160 μs CTE, five CTEs per event, and the periodic advertising interval. These settings will be considered when configuring our firmware.

ANT-B10 documentation review

I reviewed the ANT-B10 System Integration Manual and the u-locateEmbed AT command manual to better understand the anchor’s interface and configuration requirements. I found several details that are relevant to our design. The documented CTE requirement is 160 μs, while our original plan used 128 μs. The tag also needs to include an Eddystone-UID frame in its extended advertisement. The documentation specifies a maximum of 25 continuously tracked tags, which may be an issue given our target of 50 tags. On the other hand, the UART supports baud rates up to 1 Mbaud, and hardware flow control can be disabled, giving us more flexibility when configuring serial communication. I also recorded the pinout, default UART settings, and the message formats for +UUDF and +UUDFP, then shared the relevant findings with the team.

Tag firmware changes

I used u-blox’s open-source c209-aoa-tag project as a reference and modified main.c for our tag configuration. The current version is configured to broadcast an Eddystone-UID frame, using the tag ID as the instance ID, with a 160 μs CTE and a 50 ms periodic interval. The firmware compiles successfully, with reported memory usage of 19.6% of flash and 14.2% of RAM. The actual advertising behavior still needs to be checked on the hardware.

Test script

I wrote anchor_tool.py to support upcoming ANT-B10 tests. The script includes functions for AT command testing, anchor configuration, monitoring +UUDF and +UUDFP messages, collecting statistics, testing baud rates, listing serial ports, and running a fake anchor for testing without physical hardware. It uses Python’s standard library on Linux/macOS and pyserial on Windows. I tested the six subcommands using the fake anchor with both serial backends. These tests checked the script’s behavior without requiring the physical ANT-B10, so actual communication with the anchor still needs to be tested.

Is My Progress on Schedule?

Yes. The firmware currently compiles, but its behavior still needs to be checked on the actual hardware.

Plans for Next Week

Next week, I plan to flash the firmware to the nRF52833 DK, check the startup logs, and use a phone scanner to see whether the Eddystone beacon is visible. Once the DK is communicating with the anchor, I will check the first +UUDF message and compare the reported angle with the expected direction. Ideally, the angle should be close to 0° when facing straight ahead, with the sign changing when moving from left to right.

I also plan to run baud-rate tests at 230400, 460800, and 921600 and record the results. Finally, I will review whether the XIAO board is still needed based on the current nRF firmware setup and the results of the upcoming tests.