This week, our team continued making progress toward implementing the hardware and software components of our active noise cancellation system. With most of the major architectural decisions and component selections finalized, our focus has increasingly shifted toward developing the individual subsystems that will eventually be integrated into the final wearable device. In particular, we continued working on the STM32 firmware, preparing the Hybrid LxFMS algorithm for embedded execution, and advancing the fabrication of our custom breakout boards. Although the complete system is not yet ready for integration, these efforts are helping establish the foundation needed to begin hardware testing and validation.
On the software side, we continued developing the low-level firmware infrastructure required to support real-time audio processing on the STM32. A major focus was the configuration of the SAI/I2S peripheral and DMA transfers, which will allow audio samples to move continuously between the processor and the audio codec without requiring the CPU to handle every sample individually. We also investigated the implementation of a double-buffered DMA architecture, in which the processor operates on one block of audio samples while the next block is simultaneously being received. This approach is particularly important for our application because ANC requires consistent processing intervals and minimal latency between detecting unwanted noise and generating the corresponding anti-noise signal.
We also made progress in determining how the Hybrid LxFMS algorithm will eventually be implemented on the processor. Our current system design uses a 48 kHz sampling rate with 64-sample processing blocks, meaning that the processor must complete the necessary computations within approximately 1.33 milliseconds per block to maintain continuous audio processing. While this provides a useful initial timing constraint, the actual available processing time will depend on peripheral overhead, DMA behavior, and other firmware operations. We therefore began considering how to organize the filtering and adaptive coefficient-update operations to make efficient use of the STM32’s floating-point and DSP capabilities. Our goal is to eventually compare the computational requirements of the algorithm against measurements collected from the actual processor.
On the signal-processing side, we continued examining the relationship between the ANC algorithm and the physical acoustic configuration of the device. Our previous MATLAB simulation demonstrated promising attenuation, particularly at lower frequencies, but the effectiveness of the algorithm in practice will depend heavily on the placement of the microphones and speakers, as well as the acoustic propagation paths between them. We therefore continued considering how the reference and error microphones should be positioned within the wearable to provide useful information to the adaptive filter. We also began planning how to test different acoustic configurations once the hardware is assembled, allowing us to evaluate whether the attenuation observed in simulation can be reproduced experimentally.
On the hardware side, we continued preparing our custom breakout boards for fabrication and assembly. These boards will allow us to test the audio codec and other supporting components independently before incorporating them into the final PCB. Particular attention was given to ensuring that the designs provide the necessary power connections, communication interfaces, and accessible test points for debugging. We also continued refining our approach to programming the STM32 on the eventual custom board, with the current plan involving the SWD interface and temporary programming connections rather than a large permanent connector. This should help minimize the physical footprint of the electronics while preserving the ability to program and debug the device during development.
Another important area of work was planning the testing and verification procedures for the individual subsystems. Rather than attempting to integrate the complete ANC system immediately, we intend to proceed through several stages of validation. The first step will be verifying basic processor functionality and communication with the audio codec. Once this is established, we plan to test continuous DMA-based audio transfers and implement a simple audio passthrough system. We can then introduce fixed filtering operations before moving toward the full adaptive Hybrid LxFMS algorithm. This incremental approach should make it easier to isolate issues related to peripheral configuration, audio synchronization, processing latency, and signal integrity.
We also continued considering the physical integration of the electronics into the sleep-mask form factor. Although the immediate priority remains getting the individual electrical and software components working, the final system must also satisfy our original requirements for comfort, low weight, and overnight operation. Consequently, decisions involving PCB dimensions, wiring, component placement, and power consumption need to remain compatible with the wearable design. We are continuing to treat the mechanical and electrical aspects of the project as interconnected challenges rather than separate tasks.
Overall, the project continues to progress from preparation and design toward implementation and testing. The firmware architecture is becoming more concrete, the ANC algorithm is being prepared for embedded execution, and the custom hardware is moving closer to physical validation. Our main remaining challenge is integrating these independently developed components into a reliable real-time audio-processing system. Next week, we plan to continue STM32 peripheral development, advance the fabrication and testing of our breakout boards, and work toward establishing the first complete audio input-to-output pipeline. Once that basic functionality is demonstrated, we will be in a much stronger position to begin integrating the adaptive ANC algorithm and measuring the actual performance of the system against our original design requirements.