Josef’s Status Report for 11/21

This week I helped troubleshoot the interference we were seeing in the microphone recordings during playback. When we drove a resistor in place of the speaker, the microphone recording still contained the 1 kHz test tone. That gave us a way to reproduce the interference without the speaker producing sound. Soma’s follow-up test with an RC filter on the microphone power lines cleared the noise in the initial setup. We discussed carrying that change into the speaker PCB and getting the Fusion design file ready for the revision.

I also took on fabrication of the eye mask and coordinated the design with Soma’s hard case. My plan is to use the eye mask we bought at the start of the semester as a reference for the shape and coverage, then make a crocheted prototype with an adjustable fit. I want to get the mask comfortable on its own first, especially around the strap and the areas that touch the face. Once Soma has the case dimensions, I can place the mounting points and check how the added weight affects the fit.

I’m aiming to have the first mask ready for a fit check by Monday, November 23. The mounting points depend on the case dimensions, so I can work on the mask and strap while Soma finishes the case. Next week I plan to attach the case and check whether it shifts when the wearer turns their head, whether the strap needs to be tightened to hold it in place, and whether the case creates pressure points when lying down. Those checks will tell me where to adjust the strap or mounts before we spend more time testing the full wearable.

Josef’s Status Report for 11/14

This week, I focused on the firmware and hardware integration requirements for our audio processing system. I spent time investigating the clicking artifacts we observed during speaker playback, which appear to occur at DMA buffer boundaries. I also continued reviewing the STM32 clock configuration and audio interface requirements to better understand how we can maintain continuous audio transfers without introducing discontinuities. This involved looking into how our DMA buffers should be synchronized with the codec and how our RTOS can support the timing requirements of the audio processing pipeline.

I am slightly behind schedule with firmware integration since we are still resolving issues with continuous audio playback. However, identifying the buffer boundary issue has helped narrow down what needs to be addressed before we can proceed with the ANC algorithm. Next week, I plan to work on resolving these playback artifacts, implementing continuous DMA-based audio transfers, and testing the integration between the STM32 and audio codec.

Josef’s Status Report for 11/7

Accomplishments

This week, I focused on finalizing the custom PCB design for our ANC system. I completed the necessary revisions to support the audio codec interfaces, including the microphone inputs, speaker outputs, and digital communication with the STM32. I also reviewed the component connections and routing to ensure that the board would support our intended audio pipeline. In addition to the PCB work, I helped with initial firmware testing of the audio codec, where we were able to successfully record and play back audio through our development setup.


Progress on Schedule

We made significant progress this week by successfully demonstrating audio recording and playback. The PCB design has also been finalized, which puts us in a good position for hardware integration. While we still need to validate the custom board once it arrives, we have demonstrated that the basic audio interfaces work.

Deliverables for Next Week

Next week, I plan to continue working on the STM32 firmware, particularly DMA-based audio transfers and clock configuration. I also want to investigate the periodic clicking we observed during playback and improve the reliability of continuous audio streaming. Once the PCB arrives, I will begin hardware bring-up and validation of the codec interfaces.


Josef’s Status Report for 10/31

Work Accomplished

This week, I primarily focused on firmware development for the STM32U575 and made a few revisions to our PCB design. Most of my time was spent investigating the STM32 clock tree and determining how to configure the clocks needed for our audio processing system. In particular, I looked into the PLL configuration and how to generate the appropriate clock frequencies for the ADAU1372 audio codec, which requires a 12.288 MHz master clock for our intended audio configuration.

I also researched the STM32’s SAI peripheral and how we can configure it to communicate with the codec. This included understanding the relationships between the master clock, bit clock, and left-right clock, as well as how audio samples will be transferred between the codec and the microcontroller. Since our system needs to process audio continuously with low latency, I also considered how DMA can be used to transfer samples without requiring the CPU to handle every individual transfer.

On the hardware side, I made some smaller PCB revisions involving component selection, footprints, and routing. I also reviewed the connections between the STM32 and codec to ensure that the signals required for audio communication were accounted for.

Schedule Progress

I am mostly on schedule, although configuring the audio clocking and peripherals has required more investigation than initially expected. Getting the clock configuration correct is important because the rest of the firmware depends on reliable audio sampling. I plan to prioritize basic codec communication and audio input/output before moving on to the ANC processing implementation.

Deliverables for Next Week

Next week, I plan to finalize the STM32 clock configuration and begin implementing the SAI and DMA drivers. My main goal is to establish a basic audio pipeline that can receive samples from the codec and transmit samples back to it. I also plan to finish reviewing the remaining PCB changes so that we can move toward manufacturing and hardware testing.

Josef’s Status Report for 10/12 and or 10/17

This week, I focused on moving our custom PCB designs closer to fabrication and preparing for the initial hardware verification process. With the breakout-board designs largely completed last week, I continued reviewing the schematics and layouts to ensure that the selected components could be reliably connected to our development hardware. In particular, I paid attention to power distribution, component footprints, signal routing, and the connections required to interface the audio codec with the STM32. The immediate objective is to fabricate and assemble these breakout boards so that we can begin testing individual components rather than relying entirely on datasheets and simulations.

I also continued investigating how our eventual custom PCB will accommodate programming and debugging without requiring large permanent connectors. Following our teardown of a commercial headphone, I explored the use of small exposed programming pads or temporary wire connections for the STM32 SWD interface. This would allow us to flash and debug the processor during development while keeping the final PCB compact enough to fit inside the wearable. I also considered how the board layout could minimize rigid areas and simplify connections between the microphones, speakers, battery, and processing circuitry.

Another area of focus was establishing a hardware bring-up procedure for the breakout boards once they arrive. This includes checking continuity, verifying power rails, confirming clock signals, and testing communication with individual components before connecting the full system. My work is progressing toward physical fabrication and assembly, although the functionality of the boards cannot be fully confirmed until they are manufactured and tested. Next week, I plan to continue fabrication and begin assembling and validating the first boards as soon as they become available.

Josef’s Status Report for 10/2

This week, I focused on understanding how we can transition our STM32 firmware from development hardware to the much smaller hardware required for the final wearable. As part of this work, we disassembled a commercially available headphone and examined how its internal electronics were packaged and accessed. This gave us a useful reference for compact wiring and connections, while also helping us consider how we can maintain access for firmware testing and debugging once the electronics are integrated into the mask.

One specific issue I investigated was how we will flash and debug the STM32 without the built-in programming interface provided by a development board. Based on our research, we decided to use an ST-Link through the STM32’s SWD interface. Our current plan is to expose the necessary programming and debugging connections using individual wires or small programming pads. During development, these connections will allow us to upload firmware, inspect program execution, and diagnose issues. The temporary wires can later be cut or removed once the firmware has been tested and the final device has been programmed.

I also continued considering the firmware and RTOS requirements for running the audio processing on the wearable. This includes planning how audio acquisition, processing, and output should be coordinated, and how task timing, buffering, and memory usage could affect the feedback loop. As we move toward implementation, maintaining reliable debugging access will help us evaluate these constraints on the final hardware. Over the next week, I plan to refine the programming and wiring approach and continue developing the firmware structure, with particular attention to RTOS task organization and meeting the timing requirements of the audio processing.

Josef’s Status Report for 9/26

This week, I focused on researching the firmware and real-time software architecture for implementing ANC directly on the STM32. I studied digital feedforward ANC implementations using FxLMS and investigated how we can structure the processing around DMA-driven audio transfers and an RTOS. One of our main technical challenges is that commercial ANC is often implemented using dedicated hardware or DSP functionality, whereas our goal is to implement the adaptive cancellation algorithm ourselves in software. I therefore focused on the timing, buffering, computation, and scheduling requirements needed to keep the feedback loop operating in real time.

I also investigated the memory requirements of the ANC algorithm. We initially considered whether an external memory chip could allow us to maintain much longer audio histories, but decided against this direction because the ANC workload is fundamentally streaming and additional memory-access latency could work against the low-latency requirements of the cancellation loop. Instead, our current plan is to maintain small DMA buffers and only the recent sample histories required by the adaptive filters. This also makes the RTOS and DMA architecture especially important, since audio must continuously move through the processing pipeline without missing deadlines.

My firmware work is currently on schedule, although the software implementation will be one of the major technical risks of the project. Over the next week, I plan to begin implementing the RTOS-based firmware framework, DMA audio buffering, and the initial processing pipeline so that we can benchmark CPU utilization and latency before implementing the complete FxLMS algorithm.

Josef’s Status Report for 9/19

This week, I focused on the PCB fabrication side of the project. I created an initial estimate of the PCB manufacturing cost and started drafting the PCB designs. One of the main challenges was working with flexible PCBs, since I had not designed with them before. I had to spend additional time researching flex PCB constraints, materials, and layout considerations compared to standard rigid PCBs. Despite the learning curve, I was able to make progress toward a preliminary design and a more realistic estimate of the fabrication requirements and cost.