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.

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.

Soma’s Status Report for 11/21

This week I debugged the noise we were seeing in the microphone recordings during speaker playback. The playback tone still showed up in the recording when we replaced the speaker with a resistor, which pointed to electrical coupling in the test setup. I added a low-pass RC filter to the microphone power lines and repeated the test. The noise I had been seeing went away in the initial bench test. I also built version 2 of the audio protoboard so we could continue testing microphone capture and playback with the revised hardware. Based on the bench result, I brought up adding the filter to the speaker PCB and coordinated with the team on getting the Fusion design file for that revision.

PCBWay finished assembling our custom PCB this week. I shared the assembly photo with the team and asked Josef to look it over before I responded to PCBWay. We can continue testing on the revised protoboard while we wait for the assembled board. Once it arrives, I want to check the microphone recordings with playback off and on and compare them with the protoboard results. That will tell us whether the interference we saw on the bench is also present on the custom board.

My mechanical target is to have a first hard case and share its dimensions with Josef by Monday, November 23, so he can lay out the mounting points on the eye mask. Next week I also want to try foam around the audio components and compare how much sound reaches the microphones with and without it. Over Thanksgiving break, we plan to check how securely the case stays attached during longer wear and whether it presses against the wearer’s head when lying down.

Team Status Report for 10/21

This week we built a second version of the audio protoboard. Adding a low-pass RC filter to the microphone supply lines cleared the unwanted noise in our initial bench test. PCBWay also finished assembling our custom PCB and sent us a photo of the assembled board.

Our main integration risk is that the noise could return when we run playback and recording together on the assembled hardware. Once the board arrives, we plan to test microphone capture and speaker playback separately, then run them together and compare the result with the revised protoboard. If PCB bring-up takes longer than expected, we can keep testing the audio path on the protoboard.

The RC filter is the main design change this week. It adds a resistor and capacitor to the affected supply path, and we’ll check that the microphone supply stays within its operating range. The mechanical design now calls for a hard case mounted to an adjustable eye mask. We’ll use the first case dimensions to place the mounting points and try foam as part of the acoustic testing.

We’re aiming to have the first case and mask ready for a fit check by Monday, November 23. Over Thanksgiving break, we plan to check comfort and mounting stability while lying down and during longer wear. PCB bring-up and integrated audio testing will start once the board arrives.

Team Status Report for 11/14

This week, our team continued working toward integrating the hardware and firmware components of our active noise cancellation system. We focused on investigating the clicking artifacts observed during audio playback and refining our approach to continuous audio processing. Our previous testing demonstrated that the microphone and speaker setup can successfully record and play audio, but the discontinuities at buffer boundaries remain an issue that needs to be resolved. We also continued developing the firmware architecture, particularly the DMA buffering strategy and timing requirements for the feedback calculations.

The most significant risk to our project remains the strict latency requirements of active noise cancellation. Even if our hardware can successfully record and play audio, delays or discontinuities in the processing pipeline could prevent the system from achieving effective cancellation. We are managing this risk by testing the audio pipeline independently before introducing the full ANC algorithm. If the current buffering implementation cannot provide sufficiently reliable playback, we plan to simplify the processing pipeline and prioritize continuous audio transfer before adding more computationally expensive functionality.

We have not made any major changes to our overall system requirements or block diagram this week. However, our testing has highlighted the need to pay closer attention to DMA buffer synchronization and the handling of audio samples at buffer boundaries. These refinements should not require additional hardware costs, although they may require more firmware development and testing time.

Our overall schedule remains largely unchanged, but we are slightly behind on full system integration due to the audio playback issues. Next week, we plan to prioritize resolving these issues, validating continuous recording and playback, and beginning integration of the feedback processing algorithm. This should put us in a better position to demonstrate the functionality of our ANC system.

Soma’s Status Report for 11/14

This week, I continued working on the hardware testing setup for our microphones and speakers. Following our initial success with recording and playback, I focused on evaluating the quality of the audio output and investigating the clicking artifacts that occur during playback. These tests are important for understanding whether our current hardware configuration can reliably support the continuous audio signals required for active noise cancellation. I also worked on identifying potential sources of distortion and determining whether the issues originate from the hardware or the audio buffering implementation.

My progress is mostly on schedule, although the playback artifacts still need to be resolved before we can begin more extensive ANC testing. Next week, I plan to continue validating the microphone and speaker setup, assist with debugging the audio pipeline, and prepare the hardware for integration with the final PCB.

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.

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.

Team Status Report for 11/7

Accomplishments

This week, our team made significant progress toward integrating the hardware and firmware components of our ANC system. Josef finalized the custom PCB design, including the interfaces required for the audio codec, microphones, and speakers. Soma assembled a protoboard for initial microphone and speaker testing, allowing us to validate the audio hardware before receiving the custom PCB. Using this setup, we successfully demonstrated audio recording and playback for the first time. May also completed a firmware architecture document that outlined our DMA buffering strategy, audio processing pipeline, and feedback loop timing requirements. Together, these developments have given us a much clearer path toward implementing the complete ANC system.

Progress on Schedule

We are making good progress toward our system integration milestones. Successfully recording and playing back audio was a major step forward, since it demonstrates that our basic audio hardware and firmware interfaces are functional. The PCB design is also finalized, and our firmware architecture now includes more concrete considerations for buffering and latency. Although we encountered some clicking artifacts during playback, we have established a working foundation for further development.

Deliverables for Next Week

Next week, we plan to focus on improving the reliability of our audio pipeline and preparing for full system integration. This includes debugging the clicking artifacts, implementing DMA-based audio streaming, and measuring the latency of the recording and playback paths. We will also continue preparing for custom PCB bring-up and begin integrating the firmware architecture with our ANC algorithm. Our primary goal is to move from basic audio functionality toward continuous, low-latency audio processing suitable for real-time noise cancellation.

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.