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.

Matthew Kwee – Status Report for 11/7

This week, I exported the wearable device’s Printed Circuit Board to Gerber format, completed the Bill of Materials and Component Placement Documents to send to JLCPCB (our selected PCB manufacturer), fixed an error I made with the pinout of the motion sensor chip (IMU), and worked out component placements.

When I began to draft the order with JLCPCB, I noticed a discrepancy between the orientation of the IMU chip and the footprint; upon re-reading the datasheet for the NINA-B406, I found that I had incorrectly placed the pins clockwise for the chip’s footprint, while the actual chip’s pins are oriented counter-clockwise. After re-creating the footprint and rerouting the power/signal traces, I was able to save an order in JLCPCB’s cart and receive a quote for the cost of the PCBs.

Because we are constrained by our $600 budget, the cost-efficiency of our PCBs is lower than we would like. For 5 PCBs, the cost-per-unit is approximately $42 – while this does not meet our desired $40-per-unit cost, I believe that potential bulk orders will lower the per-unit cost significantly.

In preparation for the interim demo this coming Monday, I will be meeting with my team tomorrow to integrate our hardware and software systems as best we can.

While I am still slightly behind schedule, the webapp’s dashboard is mostly complete, hopefully allowing us to present a functional prototype in the next few days.

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.

Team Status Report for 10/31/2026

Overall Summary

This week, our team finalized the wearable PCB layout for manufacturing export, validated the core wearable firmware modules, and established our Bluetooth direction-finding toolchain. While working around limitations such as RF keepout rules for the NINA-B406 (our transciever chip), we completed and verified our final PCB design, replacing vertical pin I/O with through-hole pads to minimize water resistance. Core wearable firmware (including CRC16 verification, packet serialization, and ring-buffer management) passed stress tests, and small simulated swimming IMU datasets were recorded across all four strokes. On the direction-finding front, we configured the nRF Connect SDK, built tag firmware, and developed automated test scripts for validation.

Key Progress

Hardware

Matthew: Created the 24x32mm wearable PCB layout, passing all design rule checks and preparing files for Gerber export. Optimized board z-height and water resistance by replacing vertical battery and Qi pin headers with through-hole solder pads. Configured copper clearances and RF ground fill around the NINA-B406’s internal trace antenna, widened +3V3, V_BAT, and GND power traces to minimize impedance, and integrated as many hardware test points for power rails/debug lines as possible.

Firmware & Embedded Systems

Jeffrey: Implemented, debugged, and validated core wearable firmware, including CRC16 checksum calculation, timestamp/IMU/battery packet assembly, and a ring-buffer structure designed to buffer telemetry while submerged and burst-transmit upon surfacing. Validated routines and edge cases with testbenches and random stress tests.

Haowen: Configured nRF Connect SDK v3.4.1 and compiled direction_finding_connectionless_tx for the nRF52833 DK.

Signals & Base Station:

Haowen: Reviewed the ANT-B10 Manual and created anchor_tool.py supporting anchor configuration for verification.

Jeffrey: Connected the Raspberry Pi 4 base station to the ANT-B10 antenna array to supply power and establish the communication interface. Conducted initial dry-land wearable stroke simulations with Matthew, gathering baseline 6-axis IMU data across freestyle, backstroke, breaststroke, and butterfly; confirmed that stroke counting and classification are viable via planar motion filtering and peak detection.

We are largely on schedule for baseline testing with the prototype. While the webapp dashboard is running slightly behind, we believe that prioritizing the hardware is more important at this point in time.

Matthew Kwee – Status Report for 10/31

This week, I finalized the wearable PCB design, and am ready to export it to a Gerber file for fabrication with a manufacturer.

The wearable PCB had a few design constraints I needed to work around. First, the overall PCB dimensions were 24x32mm – making it significantly larger would add uncomfortable water resistance to the final wearable. Additionally, the NINA-B406 (our nRF52833 transceiver chip) required special consideration regarding its own placement and the placement of other components.

The NINA-B406 (U_MCU1 on the circuit schematic) uses an internal metal sheet trace antenna rather than an external antenna. This means that any unrelated components or traces around this area can interfere with its signal, increasing noise. To mitigate this issue, I minimized the amount of metal near this part of the component, removing copper fills and only including the necessary GND traces in this area. Note that the 3V3, V_BAT, and GND power traces are thicker than the other signal traces to reduce impedance.

After drafting the circuit schematic and creating an equivalent initial PCB design, I found that my choice of connecting the LiPo battery and charging assembly with pins extending upwards from the circuit board would significantly increase the device’s thickness, in turn increasing the device’s water resistance, which goes against one of our fundamental design requirements.

To mitigate this issue, I made the decision to replace the vertical pins with through-hole solder pads, which reduced the board thickness but occupied more horizontal area. Fortunately, there was still barely enough horizontal area for the necessary components and debug test-points, the placements of which are shown below.

I probably could have done better with the via placements but I was running out of space

I have done my best to verify the integrity of my design, and I believe that it will not cause any potential issues. However, I have included as many oscilloscope test points as possible for debugging.

While I am still slightly behind schedule, I believe that I should be able to complete my next priorities (finalizing the webapp’s live dashboard and helping set up the base station) without too much issue.

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.

Matthew Kwee – Status Report for 10/24

This week, I deviated from my expected schedule – after consulting with a course instructor and TA, I decided to develop the PCB instead of setting up the base station so that I can place an order with a PCB manufacturer and receive the final wearable PCB as soon as possible.

In addition to making a small change to the wearable device’s design, I drafted the schematic for the wearable PCB with KiCad, an open-source tool for electronic design.

When re-reading the specifications for the NINA-B406 (our nRF52833 transceiver chip), I found that the NINA-B40 series has open CPU architecture, allowing it to run custom programs. This means that we can omit the Seeed XIAO RP2040 microcontroller and write code for the NINA-B406 instead. Writing code for the B406 will likely be more difficult than for the XIAO, omitting the XIAO will allow us to slightly reduce the size and weight of the final wearable and cut about $4-5 off the device’s unit cost, which is approximately 10-15% of its previous estimated cost. Additionally, without the XIAO, we expect significantly reduced power consumption, increasing the device’s battery life by a few hours.

In order to keep the schematic tidy, I broke the design into four “blocks”: Power (LiPo battery and induction charging coil), Voltage Regulator (reduces the battery’s 3-4V to >=3.3V), IMU Subsystem (powering and receiving signals from the ST LSM6DSOX 6-Axis IMU), and Processing/Transceiver (the NINA-B406 subsystem, plus a debug connector). These blocks should be visible in the below KiCad screenshot.

Unfortunately, despite my progress, I am now slightly behind my ideal schedule, as I did not anticipate KiCad’s learning curve – although I certainly should have expected as much. As such, I have not yet created the full PCB footprint/traces that I will need to send to the PCB manufacturer. In the next week, I hope to finalize the wearable design and place the order, ideally receiving the final circuit boards in the next couple weeks.

Team Status Report (Week 8)

Overall Summary & Progress Highlights

Hardware & Wearable Assembly: After receiving the remaining prototype components, we assembled and soldered the wearable prototype. Using component schematics as a reference, we connected the Raspberry Pi Pico WH to the ST LSM6DSOX IMU, including power, ground, and data connections. A custom test script successfully captured 6-axis motion data from the IMU. The Nordic radio was also configured and soldered to the Pico, bringing the wearable hardware closer to completion. In addition, we built a custom wiring harness to connect the u-blox ANT-B10 antenna array to a computer for base station testing.

Signal Subsystem (u-blox ANT-B10 & nRF52833 Tags): The development environment was set up in Visual Studio Code using the nRF Connect SDK and Zephyr RTOS. We resolved macOS dependency and CMake package registry issues and configured the 18500signal workspace and core firmware files, including CMakeLists.txt and prj.conf, in preparation for BLE direction-finding development. The next step is to implement and validate 20 Hz periodic advertising with a 128 μs Constant Tone Extension (CTE) on the target hardware.

Software & Web/Cloud Backend: We initialized and configured the core AWS cloud infrastructure, including the database schema and endpoint listeners, in preparation for receiving and processing telemetry data. End-to-end data transmission remains to be tested once the serial parser and data stream are integrated.

Project Risks, Management & Contingency Plans

A key risk is successfully establishing communication and validating direction-finding performance between the wearable’s Nordic radio and the u-blox ANT-B10 antenna array. Indoor RF interference may affect reception and measurement accuracy. Another uncertainty is whether motion data collected on land will adequately represent swimming strokes in a pool environment.

To manage these risks, we completed the initial hardware assembly using prototype breakout boards and tested the IMU independently, allowing motion-data collection to begin before full system integration. The software development environment is being prepared in parallel with hardware integration so that receiver data parsing can proceed once the antenna array is connected to the host computer. Land-based stroke data collection will provide an initial baseline before in-water testing.

System Design Changes

No major changes were made to the system requirements, block diagram, or core specifications this week. We built a custom wiring harness to connect the ANT-B10 antenna array to a computer because a suitable off-the-shelf adapter was not available. This was a minor hardware integration adaptation rather than a change to the overall system design. The harness was assembled in-house, avoiding the need to source a separate adapter. No schedule impact has been identified from this adaptation.

Schedule Update & Deliverables for Next Week

The project remains on schedule this week, with the main outstanding tasks being the completion of the Signal Subsystem firmware and end-to-end integration testing.

Next week, we plans to begin collecting stroke motion data on land and integrate the existing test scripts into the wearable’s unified firmware on the Pico, implement the tag firmware for 20 Hz periodic advertising and 128 μs CTE, build the firmware for the nrf52833dk_nrf52833 target, begin developing a Python serial parser for incoming +UUDF ASCII frames and begin testing the telemetry pipeline from the serial parser to the AWS database endpoints.

Schematic:

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.