May’s Status Report for 11/21

This week I worked on refining the adaptive filter weights for our filtered-x least mean squares (FxLMS) ANC algorithm. One challenge is that the cancellation signal changes as it travels from the speaker, through the mask, to the feedback microphone. That path introduces delay and changes the signal’s amplitude. FxLMS uses an estimate of that path when updating its weights. If the estimate is off, the algorithm can update the weights in the wrong direction and make the residual noise louder.

The other challenge is choosing the adaptation step size. A small step size can take too long to converge, while a large one can make the weights oscillate. The noise we were seeing in the microphone recordings also made tuning harder because the algorithm uses that same recording to decide how to update the weights. With the revised protoboard, I can repeat the tests with less interference and see whether the residual noise actually drops and stays down.

I’m at the bench-validation stage. Next week I plan to measure the speaker-to-feedback-microphone response on the revised protoboard, then run the same test tone with ANC off and on for several step sizes. I’ll compare how long each run takes to settle and how much of the tone remains at the feedback microphone. That will give us a starting configuration to retest once the speakers and microphones are mounted in the mask.

May’s Status Report for 11/14

This week, I continued refining the firmware architecture for our active noise cancellation system, focusing on the organization of DMA buffers and the timing requirements of our feedback processing loop. I worked on determining how audio samples should be transferred and processed to minimize latency while maintaining continuous playback and recording. I also considered how the firmware should handle buffer transitions, particularly given the clicking artifacts observed during our initial audio tests. These considerations are important because even small interruptions in the audio pipeline could significantly affect the performance of our ANC algorithm.

My progress is generally on schedule with respect to the firmware design, although implementation and testing are still ongoing. Next week, I plan to continue implementing the audio processing architecture, validate the DMA buffering strategy, and begin testing the feedback processing pipeline with the available hardware.

May’s Status Report for 11/7

Accomplishments

This week, I focused on designing and documenting the firmware architecture for our real-time ANC system. I created a detailed firmware architecture document outlining how the STM32 will handle audio acquisition, processing, and playback. In particular, I analyzed the DMA buffering requirements and calculated appropriate buffer sizes based on our sampling rate, processing deadlines, and latency constraints. I also considered the timing requirements of the feedback control loop and how audio data should move between interrupt handlers, DMA buffers, and processing tasks. This helped establish a more concrete plan for implementing the ANC algorithm while keeping the audio pipeline deterministic.

Progress on Schedule

The firmware architecture is now much more clearly defined, which should make implementation and integration easier over the coming weeks. By calculating buffer sizes and considering the latency introduced by each stage of the pipeline, we have a better understanding of the constraints our ANC algorithm will need to operate within. This is particularly important since excessive buffering or unpredictable processing delays could significantly reduce noise cancellation performance.

Deliverables for Next Week

Next week, I plan to begin translating the firmware architecture into the actual STM32 implementation. This includes setting up DMA-driven audio buffering, defining the interaction between the audio processing tasks and interrupt handlers, and validating the timing assumptions made in the architecture document. I also want to begin measuring end-to-end audio latency so that we can compare our actual system performance against the theoretical estimates.

May’s Status Report for 10/31

Work Accomplished

This week, I focused on the hardware integration and physical design considerations for our active noise cancellation system. I reviewed the placement of the reference and feedback microphones and considered how their positions will affect the system’s ability to measure ambient noise and the resulting cancellation signal.

I also worked on planning the connections between the microphones, speakers, and main PCB. Since our device is intended to be worn on the head, the size and positioning of the components are important considerations. I considered how the microphone and speaker connections can be arranged to keep the device compact while still allowing adjustments during testing.

Additionally, I reviewed the hardware requirements for integrating the audio codec with the rest of the system, including the microphone inputs, speaker outputs, and power connections.

Schedule Progress

I am generally on schedule with the hardware planning, although some of the physical integration decisions will need to be validated once we receive and assemble the hardware. The main challenge is balancing the size of the wearable device with the microphone placement requirements. We plan to address this through testing and adjustments to the physical arrangement.

Deliverables for Next Week

Next week, I plan to finalize the initial microphone and speaker placement strategy and continue preparing for hardware integration. I also hope to begin testing the physical arrangement of the audio components and identify any mechanical or electrical issues that need to be addressed before assembling the complete system.

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

This week, I focused on beginning the implementation and bring-up of the embedded software that will run on our STM32 processor. With the development boards ordered, I began transitioning from planning the firmware architecture to implementing and testing the low-level functionality required for our ANC system. This included working on the processor’s clock configuration, basic peripheral initialization, and establishing a reliable workflow for programming and debugging the STM32 using ST-Link and SWD.

I also continued developing the DMA-based audio-processing infrastructure that will eventually connect the processor to our audio codec. Our current architecture uses a 48 kHz sampling rate with 64-sample processing blocks, so I focused on designing a double-buffered DMA system that allows audio transfers and computation to occur concurrently. I also began configuring the SAI/I2S peripheral and investigating the clocking and synchronization requirements of the codec. My immediate goal is to establish reliable audio input and output before introducing more computationally intensive filtering operations.

Additionally, I began considering how to benchmark the computational performance of the processor once the audio pipeline is operational. In particular, I plan to measure processing time per audio block, CPU utilization, DMA timing, and overall latency to determine whether our current architecture provides sufficient computational headroom for the Hybrid LxFMS algorithm. My work is currently progressing toward hardware validation, and next week I plan to continue peripheral bring-up and work toward establishing a complete audio passthrough pipeline.

May’s Report for 10/2

This week, I focused on preparing the firmware side of the project as we transition from system design into implementation. Since we have now ordered the STM32 development boards that we plan to use for prototyping, I began drafting the low-level drivers and software infrastructure that will be needed once the boards arrive. This includes looking at the interfaces required for the audio codec and planning how peripherals such as I2C, SAI/I2S, DMA, and timers will be configured. Starting this work before the development boards arrive should allow us to begin hardware testing relatively quickly once we have access to the processor.

I also continued refining how the real-time audio pipeline will operate on the STM32. Our current architecture relies heavily on DMA to continuously transfer audio between the codec and processor while allowing the CPU to perform the ANC computation in parallel. One of the first goals after hardware bring-up will therefore be to establish a basic DMA-based audio passthrough system before implementing the adaptive FxLMS algorithm. This will allow us to measure the actual latency, transfer timing, interrupt overhead, and processor utilization of the platform.

My work is currently on schedule, and the main dependency is receiving the development hardware so that the drivers can be tested on the actual processor. Over the next week, I plan to continue writing the initial peripheral drivers and preparing a basic audio-processing framework. Once the boards arrive, I will begin validating the drivers and working toward a simple real-time audio input and output test before adding the full ANC processing.

May’s Status Report for 9/26

This week, I focused on researching and selecting components for our active snore-cancellation system. I compared different options for the microphones, audio codec, speakers, processor, power system, and other supporting components while considering their latency, power consumption, physical size, and compatibility with the rest of the system. I also spent time considering the physical and mechanical design of the wearable, including how the microphones, speakers, battery, heating elements, and electronics can be positioned while keeping the mask comfortable for sleeping and especially for side-sleeping.

I also contributed to refining the overall system architecture as we learned more about the constraints of implementing ANC. In particular, our research reinforced that the placement of the reference microphone, error microphone, and speaker is closely tied to the effectiveness and latency of the cancellation loop. Our current design therefore treats the physical geometry and electrical design as interconnected problems rather than designing the enclosure only after the electronics are complete.

My work is currently on schedule, although we need to finalize and order several components soon so that hardware availability does not delay integration. Over the next week, I plan to finalize the remaining component selections, help place our initial orders, and continue refining the physical arrangement of the wearable around the selected components.

May’s Status Report for 9/19

This week, I focused on the CPU selection and the general computing requirements for the system. I finalized the STM32H742 as our main processor and selected a development board that we can use for early experimentation. I also looked into how the processor would interface with the audio codec, particularly using SAI and DMA to continuously move audio data with minimal CPU overhead. Since the ANC processing is relatively focused, I also investigated using a bare-metal architecture rather than an RTOS. Finally, I considered power consumption and processing requirements to make sure the CPU provides enough performance for real-time audio processing without unnecessarily increasing battery usage.