Josef’s Status Report for 10/24

This week, I continued working on the hardware implementation of our active noise cancellation system, with my primary focus being the preparation and refinement of our custom breakout boards. As we move further into the implementation phase, I have been reviewing the schematics and PCB layouts to ensure that the selected components can be reliably interfaced with the STM32 development board. In particular, I focused on verifying the connections required by the audio codec, including its power supply, clock inputs, and digital communication interfaces. I also continued considering how to make the boards easier to debug by ensuring that important signals and power rails are accessible during testing.

I also spent time investigating how the electronics will eventually be integrated into our final wearable form factor. Because the device is intended to be comfortable during sleep, minimizing the size and rigidity of the electronics remains an important design constraint. I continued looking into potential layouts for the custom PCB, including how to route connections between the microphones, speakers, processor, and supporting power-management components. Building on our previous investigation of commercial headphones, I also further considered the use of temporary SWD programming connections to avoid permanently incorporating large connectors into the final design.

Another area I focused on was preparing for the initial hardware verification process. Once the breakout boards have been fabricated and assembled, I plan to begin by checking continuity and verifying that the required power rails are operating correctly before attempting communication with the codec. After that, the next step will be testing the individual microphone and speaker interfaces and confirming that the hardware can reliably communicate with the STM32. My work is progressing toward physical hardware testing, and next week I plan to continue advancing the breakout boards toward fabrication and assembly so that we can begin validating the electrical design.

Soma’s Status Report

This week, I continued working on the signal-processing and physical integration aspects of our active noise cancellation system. My primary focus was on preparing the Hybrid LxFMS algorithm for implementation on the STM32 and considering how its performance in simulation will translate to the actual hardware. Our earlier MATLAB simulation demonstrated promising noise attenuation, particularly at lower frequencies, but real-world performance will depend on additional factors such as microphone placement, speaker response, and processing latency. I therefore continued examining the algorithm’s filtering operations and adaptive coefficient updates to better understand how they can be implemented efficiently within the computational constraints of the processor.

I also spent time considering how the physical arrangement of the microphones and speakers will affect the effectiveness of the ANC system. In particular, I looked into the relationship between the reference microphones, which detect incoming noise, and the error microphones, which measure the residual sound near the user’s ears. Since the adaptive algorithm relies on this feedback to update its filter coefficients, the placement of these components will be important in determining how effectively the system can cancel unwanted noise. I also considered how the secondary acoustic path between the speaker and error microphone may need to be characterized experimentally once we have a working audio-processing pipeline.

Alongside the DSP work, I continued investigating the physical design of the wearable and how the electronic components can be integrated into a comfortable sleep-mask form factor. This included considering the positioning of the speakers around the ears, the placement of the microphones, and how the electronics can be distributed without creating excessive pressure when the user is lying on their side. My work is currently focused on preparing both the algorithm and acoustic configuration for experimental validation. Next week, I plan to continue refining the embedded implementation of the ANC algorithm and develop a more concrete testing procedure for measuring noise attenuation across different frequencies once the hardware becomes available.

Team Status Report for 10/24

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.

May’S Status Report for 10/24

This week, I continued working on the embedded software for our STM32-based active noise cancellation system. My primary focus was on developing the low-level firmware infrastructure needed to support real-time audio processing. In particular, I continued working on the configuration of the SAI/I2S interface and DMA transfers, which will eventually allow audio samples to move between the processor and audio codec without requiring constant CPU intervention. I also looked further into implementing a double-buffered system so that the processor can perform computations on one block of audio samples while the next block is being received.

Another area I focused on was preparing the software architecture for integrating our Hybrid LxFMS ANC algorithm. Since our current design uses a 48 kHz sampling rate and 64-sample processing blocks, I considered how to organize the audio-processing pipeline to minimize latency and ensure that computations can consistently finish before the next block becomes available. I also began looking into how we could use the STM32’s DSP instructions and floating-point capabilities to accelerate the filtering and coefficient-update operations.

I also continued planning how to test and benchmark the firmware once the complete audio hardware is available. In particular, I want to measure the execution time of individual processing blocks, CPU utilization, and the timing of DMA interrupts to determine how much computational headroom remains for the ANC algorithm. Although full audio testing still depends on successfully bringing up the codec and associated hardware, the software infrastructure is gradually becoming more concrete. Next week, I plan to continue implementing the audio pipeline and work toward running basic passthrough and filtering tests on the development board before integrating the complete adaptive ANC algorithm.

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

This week, I focused on preparing our Hybrid LxFMS ANC algorithm for eventual integration with the embedded hardware. Our MATLAB simulation has already demonstrated promising noise attenuation, particularly in the lower-frequency range, so I began examining how the existing algorithm can be translated into an implementation suitable for real-time execution on the STM32. This involved reviewing the filtering operations, adaptive coefficient updates, and secondary-path modeling required by the algorithm while considering the computational and memory limitations of the embedded platform.

I also continued investigating the interaction between the physical acoustic configuration and the ANC feedback loop. Because the effectiveness of the algorithm depends heavily on the relative positions of the reference microphones, error microphones, and speakers, I looked further into how these components should be arranged within our wearable design. In particular, I considered how microphone placement and acoustic propagation delays could affect the ability of our system to generate anti-noise before unwanted sound reaches the user’s ears.

Alongside the algorithm work, I continued thinking about the physical construction of the wearable, including the integration of the speakers, microphones, and electronics into a comfortable sleep-mask form factor. My work is currently on schedule, although the final acoustic configuration will require experimental validation once the hardware is assembled. Next week, I plan to continue preparing the ANC implementation for embedded execution and begin developing a more concrete testing procedure for evaluating attenuation across different frequencies and microphone configurations.

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.

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.

Team Status Report for 10/12 and or 10/17

This week, our team continued transitioning from system design into active implementation and subsystem testing. Last week, much of our work focused on preparing for the arrival of the development hardware, completing breakout-board designs, and establishing a programming and firmware strategy for the STM32. This week, we began using those preparations to bring up the first portions of the system and verify that the hardware and software architecture we developed earlier in the semester can operate as expected.

A major focus this week was initial bring-up of the STM32 development board. We first verified the basic programming and debugging workflow using ST-Link and SWD, confirming that firmware could be reliably flashed to the processor and debugged through the same interface that we eventually plan to expose on our custom PCB. We then began testing several of the low-level peripherals required for the audio-processing pipeline. Initial firmware tests focused on clock configuration, GPIO, timers, serial debugging, and the peripheral interfaces that will eventually communicate with the audio codec. Establishing this basic firmware environment gives us a stable platform on which the remainder of the audio system can be developed.
We also began implementing and validating the DMA infrastructure that will eventually support continuous audio streaming. Our system is designed around a 48 kHz audio sampling rate and block-based ANC processing, with the current design using 64-sample processing blocks.

Rather than having the processor explicitly move every incoming and outgoing audio sample, DMA will allow the codec and STM32 peripherals to continuously exchange samples while the processor performs signal-processing operations on previously received data. This week, we focused on establishing the buffer structure and DMA transfer model required for this pipeline, including the use of alternating buffers so that processing and audio transfer can occur concurrently.

The next major software milestone is establishing a reliable digital audio path between the STM32 and the audio codec. We began configuring the STM32 SAI/I2S interface and determining the clocking relationships required to maintain the selected sampling rate. Because the codec and processor must remain synchronized throughout continuous operation, correct configuration of the master clock, bit clock, frame synchronization, sample width, and channel ordering is particularly important. At this stage, the goal is not yet to run the full adaptive ANC algorithm, but instead to confirm that known audio samples can be transmitted and received without corruption, dropped samples, or timing errors.

Progress also continued on the audio-codec breakout hardware. The breakout board is intended to allow us to evaluate the codec independently before integrating it into the much more constrained final PCB. Once the board is fabricated and assembled, our bring-up procedure will begin with power-rail and continuity checks before applying power. We will then verify the codec clocking and configuration interface, followed by basic microphone input and speaker output testing. This staged approach follows our planned verification strategy of validating components individually before attempting system-level integration.

On the signal-processing side, we began preparing the existing Hybrid LxFMS simulation for eventual migration onto the STM32. Our MATLAB implementation has already allowed us to study the behavior of the adaptive algorithm, including the approximately 17.88 dB overall attenuation observed in simulation and its stronger performance at lower frequencies.

The next step is therefore not to redesign the algorithm, but to convert the major signal-processing operations into a form suitable for real-time embedded execution. In particular, we are beginning to identify the filtering, vector operations, coefficient updates, and buffer management that can make use of the STM32’s DSP and floating-point hardware.

We are also beginning to establish measurements that will allow us to compare the actual processor against the computational assumptions used during the design phase. Once continuous DMA-based audio streaming is operating, we plan to measure the execution time of each processing block, CPU utilization, interrupt frequency, buffer headroom, and end-to-end audio latency. These measurements will determine how much computational margin remains for the adaptive filter and whether the selected 64-sample block size provides an acceptable tradeoff between processing efficiency and latency. This will be particularly important as we move from simple audio passthrough toward real-time filtering and eventually the complete ANC feedback loop.
Hardware fabrication also continued in parallel with software development. With the breakout designs largely complete, the focus is now shifting toward producing the actual boards and preparing for assembly. This represents an important step because it will allow components such as the codec, microphones, amplifier, and supporting circuitry to be evaluated under conditions much closer to the final system. At the same time, work on the wearable enclosure and physical layout is continuing so that electrical design decisions remain compatible with the eventual sleep-mask form factor rather than being developed independently.

Overall, this week represented the beginning of hardware and firmware bring-up rather than simply preparation for it. The project is now progressing along the implementation structure established during the design phase: testing the processor on a development board, evaluating the codec through a custom breakout board, continuing development of the ANC algorithm, and developing the physical wearable in parallel.

Our primary objective for the next week is to establish the first complete audio path through the system. Ideally, this will consist of microphone or test-signal input through the codec, DMA-based transfer into the STM32, simple processing or passthrough on the processor, and audio output through the codec and speaker. Once this basic path operates reliably, we can begin introducing fixed filtering and then progressively migrate the Hybrid LxFMS algorithm onto the embedded platform.

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.

Soma’s Report for 10/2

This week, I focused primarily on moving our custom hardware from the design stage toward implementation. I finished working on the breakout boards for several of the components that we will need to prototype the system, including preparing the designs so that we can begin fabricating and testing them. A major goal of these breakout boards is to allow us to test individual components independently before integrating everything onto a single custom PCB. This should make debugging significantly easier, particularly for components such as the audio codec where power, communication, and audio interfaces all need to be verified.

I also spent time considering how these breakout boards and development hardware will eventually translate into the final wearable design. As we move toward implementation, PCB size, connector placement, and accessibility for debugging are becoming more important constraints. We want the prototype hardware to remain easy to test while avoiding design decisions that would make the final system unnecessarily large.

My work is currently on schedule. Over the next week, I plan to begin designing the actual PCBs that will be used in the system, using what we learned from the breakout-board designs to guide component placement, routing, connector selection, and overall board size. The goal is to begin transitioning from temporary prototyping hardware toward boards that more closely reflect the form factor and electrical architecture of the final wearable.