Project Progress
This week, our team continued making progress on the hardware and software components of our active noise cancellation system. Our main focus was preparing the STM32U575 for audio processing, refining the PCB design, and investigating the integration of the microphones, speakers, and audio codec.
On the firmware side, we focused on the STM32 clock configuration and the SAI peripheral needed to communicate with the ADAU1372 codec. We investigated how to generate the required 12.288 MHz master clock and configure the audio interfaces for continuous sampling. We also considered using DMA and buffering to reduce CPU overhead and maintain low audio latency.
On the hardware side, we made several smaller revisions to the PCB, including reviewing component footprints, resistor and capacitor selections, and routing. We also continued evaluating microphone and speaker placement for the wearable device. In parallel, we investigated the timing and buffering requirements of the ANC algorithm to prepare for integration with the audio pipeline.
Risks and Contingency Plans
Our largest technical risk remains the latency of the complete audio processing pipeline. Since ANC requires generating an inverted noise signal with very little delay, latency introduced by the codec, DMA transfers, buffering, and signal processing could significantly affect cancellation performance. To manage this risk, we are prioritizing a minimal audio input/output pipeline before integrating the full ANC algorithm. We also plan to experiment with smaller processing buffers and measure the resulting latency.
Another risk is the integration of the STM32 with the ADAU1372 codec, particularly the clock configuration and synchronization of the audio interfaces. Incorrect clocking could prevent reliable audio sampling. We are addressing this by investigating the STM32 clock tree and SAI configuration before implementing the complete firmware. If necessary, we can initially test the codec using a simpler audio passthrough application to isolate hardware and driver issues.
Finally, hardware manufacturing and assembly remain potential schedule risks. We are continuing to review the PCB design and component selections to minimize the likelihood of manufacturing issues. We also plan to use development boards and codec breakout hardware for initial firmware testing so that software development can continue independently of the custom PCB.
Design Changes
We did not make any major changes to the overall system architecture this week. However, we made several minor revisions to the PCB design involving component selection, footprints, and routing to improve manufacturability and ensure compatibility with our selected components.
We also refined our approach to firmware development by prioritizing clock configuration, SAI communication, and DMA-based audio transfers before implementing the complete ANC processing loop. This does not change our system requirements but allows us to validate individual components before integrating them.
These changes do not introduce significant additional hardware costs, although the firmware work requires additional development and testing time.
Schedule and Next Steps
Overall, our team is making progress, although the audio integration work has taken more investigation than initially anticipated. We are prioritizing the core audio pipeline to avoid delays during system integration.
Next week, we plan to finalize the STM32 clock configuration, begin implementing the SAI and DMA drivers, and work toward a basic audio passthrough test with the ADAU1372. We also plan to continue developing the ANC processing code, finalize the microphone and speaker placement strategy, and complete the remaining PCB reviews.
Our immediate goal is to establish reliable audio input and output so that we can begin testing the complete ANC feedback loop on embedded hardware.