Team Status Report for 12/5

Team Progress

Since the last report, our team worked hard to implement all the feedback we’ve received such as compacting the design into an enclosure and shot analysis. During Thanksgiving Break, we worked together on creating our Final Presentation. We are currently doing final integration testing. Clarence and Jayden worked together to finish the 3D design and assembly of the system-on-hat and Ankita is refining the CV shot analysis with newly filmed clips on the OV5640.

Risk Mitigation

For the remainder of the course, our primary risks are failing to perform thorough integration testing. Although the primary features of our system work, we need to stress test them for the full 90 min use-case requirement. If we fail to meet some of our use-case/design requirements, we must justify the reason.

Changes

We applied a register fix to its output settings to reduce overheating. The app now downloads one clip at a time over a small number of connections, because more simultaneous connections caused the recorder to drop frames.

Testing

WiFi Testing
We wrote a benchmark script that measures transfer speed from the hat to a laptop across different transmit powers and numbers of simultaneous connections, while the hat is recording as it would in normal use. Real clip downloads reached roughly 0.15 MB/s on a single connection and up to about 0.35 MB/s with several connections. At that rate, a full 60 second clip takes a few minutes to transfer. Signal strength was strong in every test, and raising the transmit power made no noticeable difference. Reading from the SD card while recording was itself only slightly faster than the downloads. Together these results suggest the main limit is the chip’s workload during recording rather than the wireless link, since recording, storage and Wi-Fi all compete for the same resources.

Camera Testing
We compared the OV3660 to the OV5640. Both cameras can capture 1280x720p frames at the same FPS (above our requirement of 24 FPS). Through visual tests, we noticed that the OV5640’s image quality was more in-focus due to its auto focus feature. Another advantage was that in came with a longer ribbon attachment meaning the camera could be place further away from the actual ESP32-S3 Sense board (aka outside of the enclosure).

Thermal Testing
One drawback we encountered with the OV5640 was its known overheating problem when paired with the ESP32-S3 Sense board. Even with a heat sink attached to the camera, image quality heavily deteriorated (white streaks, overexposure, lack of color). Through checks with our thermal gun, some parts of the camera were above our 40C threshold. However, with a simple fix found online that involved changing a register value, the measured temperature dropped significantly and image quality returned to normal. Thermal testing over a full 90 min operation has yet to be completed.

Clarence’s Status Report for 12/5

Accomplish
Since my last report, I’ve essentially finished the assembly of the final compact system on the hat. I designed and 3D printed a variety of clip sizes, the battery holder, and system enclosure via OnShape and TechSpark. We switched over to the OV5640 camera but I had to debug a known overheating issue with the OV5640 when paired with the ESP32-S3 Sense board. The whole system is now on the hat and ready for final integration testing. I did some preliminary thermal checks and the enclosure definitely is under 40 C and the camera with the overheating fix reaches around 30-35 C.

Progress/Schedule
The hardware progress is on track and all that’s left are final testing and verification/validation of use case and design requirements.

Deliverables
There are many deliverables to hit within the next week including the poster, video, and final report. We need to schedule time accordingly and prioritize assignments with the earliest deadlines. Because we are presenting at the TechSpark Expo we need to have our poster completed a day and a half earlier.

Ankita’s Status Report for 11/21

Accomplishments

This week I started prototyping the computer vision feature for replaying a pool shot from overhead. I set up a Python/OpenCV workflow and reviewed frames from a CapSure recording. Several balls and table rails were visible while the player was aiming, but the camera turned away around the shot, leaving the ball’s full path out of view.

Progress/Schedule

I’m on track for an initial prototype. The footage review narrowed the first milestone to mapping visible balls onto an overhead view during a short, steady segment.

Deliverables

Next week I plan to manually calibrate an overhead view from a clear frame, plot the visible balls, and test whether I can track them across consecutive frames.

New Tools and Learning Strategies

I learned how to use OpenCV’s VideoCapture to pull frames at specific timestamps and why table reference points matter when mapping ball positions to an overhead view. I learned through hands-on experimentation with a real CapSure clip, comparing frames side by side to see how camera motion, blur, and cropping affected what I could track.

Team Status Report for 11/21

Team Progress

Our team worked this week on the features and improvements discussed during our Interim Demos. This includes collecting more video footage in order for Ankita to work on CV features, and designing enclosure and changing layout for a more compact system. We are integrating our new camera and determining its limits.

Risk Mitigation

Major risks now are determining if the footage quality that CapSure records is detailed enough for accurate computer vision. A CV idea in mind is to recreate the shot playback in bird’s eye view. Another small risk is designing a neat enclosure with proper holes for the wiring paths from the ESP to buttons/switches on brim as well as a slots for the camera and LED to poke out. As we don’t have much experience designing, this may prove to be a challenge, especially when 3D printing because we may need to splice our design and hot glue parts together in order to avoid printing with supports.

Changes

No major changes have been made. We are working on compacting our design which moves our system to a smaller mini breadboard (for now).

Clarence’s Status Report for 11/21

Accomplish
This week, I worked on compacting our physical electronic system onto our smaller breadboard we ordered. By transitioning from Dupont jumper wires to basic stripped wires we can cut down a lot of excess wire and space taken up. The mini breadboard layout also paves the way for a true breadboard-less version that we would essentially stuff into a 3D printed enclosure. I’ve also begun designing a specialized battery clip that will hold the LiPo battery in the back of the hat to balance the weight from the frontal ESP. I also helped test our new OV5640 camera and solder more components for our system.

Progress/Schedule
Our progress is on track.

Deliverables
Next week I hope to have our battery clip and next enclosure iteration 3D printed and on the hat for testing. Additionally, I will place an order for a temp gun (IR thermometer) to test our thermal requirements.

New Tools

Over the course of CapSure, I’ve learned how to use OnShape to CAD. To do this, I consulted LLMs as well as simple YouTube tutorials or Google searches on how to access certain tools and transformations. Adjacent to this, I learned how to gain access to TechSpark’s services which I’ve never used during my academic career so far. All I had to do was set up an FBS account.

Team Status Report for 11/14

Team Progress

Our team made significant progress to meet all our MVP features for the Interim Demos. We’ve upgraded our resolution (at the cost of FPS), implemented a blue/green billiard color detection threshold (specific threshold still needs to be tested once we receive our mini billiards table), and confirmed our system works off of LiPo battery power. We also showed successful clip transfers and clean playback.

Risk Mitigation

The major risks now are compacting our system design so it ergonomically seats on the bill of the hat. To do this, we will use resources from 18220/18349 lab and carefully plan out measurements for a new 3D printed enclosure. As a fallback option, Clarence placed an order for a miniature breadboard that is light and small enough to fit on the front of the bill.

Changes

We increased our resolution to 1280x720p and have placed an order for an upgraded OV5640 camera for further testing. We also added pool table detection as a feature for our project, since we had achieved most of the work corresponding to the MVP, and were able to get this done by the Interim Demo. We will continue iterating on this detection to ensure that it works under all types of lighting and is compatible with a wide range of pool tables. Furthermore, to add additional benefit for the user and to expand our use case to be for players wishing to get feedback on their pool shots, we’ve added a “shot analysis” feature to our project schedule. Ankita will begin developing the CV for the shot analysis features.

Validation

During the interim demo, we ran CapSure on LiPo battery power and demonstrated the full recording workflow. We used the hat-mounted button to save pool footage, transferred clips to our phone using the device’s WiFi, and confirmed that they played back cleanly. We also tested the blue/green table recognition using the UC basement pool tables and smaller green pieces of plastic/cardboard during the actual demo.

For our planned integration tests, we will run the ESP32 on battery power with the button, LED, and microSD card connected. We will press the record button 100 times and log whether each press produces the expected LED indication and saves a playable clip. We will also log whether each clip transfers to the phone, how long the transfer takes, and whether the clip plays back in the app. We will calculates the success rate at each stage and the percentage of button presses that result in a playable clip on the phone. We will compare those rates and the measured transfer times with the requirements in our design report. Logging each stage will help us identify where any failures occur.

Then, we will also test table recognition with a variety of conditions, including blue/green cloth and different lighting conditions. Once the mini billiards table arrives, we will repeat the tests to check whether the thresholds still work on that surface. We will record missed detections and false positives by each color and lighting condition, and also measure the achieved frame rate at 1280 x 720 in typical and dim lighting to check whether the higher resolution still provides smooth enough playback for shot review.

Once we have a more compact hat assembly, we will also finally weigh the complete system against the 100g limit and check whether it stays secure and keeps the table in view during normal play. We will measure battery runtime and component temperatures during repeated recording and transfer, then compare those measurements with the design requirements. After we build an initial version of the CV shot analysis feature, we will compare its output with manually reviewed pool clips to check whether it supports the intended shot-review use case.

Clarence’s Status Report for 11/14

Accomplish
This week I worked on getting our MVP onto the hat so we could demo all of our essential features in the demo. To do this, we used two clips to tape our breadboard/components onto the bill of the hat. In addition, I also soldered our second ESP to have pinheaders so that we could use the battery powered ESP with the rest of our system. I worked with Jayden to conduct testing on the battery-powered CapSure system to make sure clip saving and transfer features still worked.

Progress/Schedule
The progress is on track and I’ve successfully shown that the electronics work. To follow our updated schedule, I now need to work on removing the breadboard and soldering wires directly to components.

Deliverables
Next week deliverables need to be designs for our new breadboard-less system as well as planning out specifically where the battery should go on the hat (since the demo was very front-heavy). I also plan to start conducting our integration testing for battery life and thermal.

Verification

To verify the components of my subsystem, I tested to make sure the firmware worked while running on our LiPo battery power. I worked with Jayden for this to confirm that all features ran smoothly including button press, LED indication, and WiFi for clip transfer. Some other tests I need to run are thermal tests (I may need to look into purchasing an infrared thermometer) and weight checks (total mass doesn’t exceed 100g).

Team Status Report for 11/7

Team Progress

Our team has done thorough testing on the WiFi capabilities. We’ve also designed and printed our first versions of the clip and enclosure. We are preparing to demo a live recording and clip saving. Due to the current transfer limitations, we may have to use a microSD card reader to show the clip.

Risk Mitigation

One of the major risks that has come up is the WiFi bandwidth which has tested to be much lower than we anticipated. Although in our report we stated that the maximum theoretical Wi-Fi PHY rate was 150 Mbps, we are achieving only 5 Mbps, which is not enough to timely transfer our clips. This is because the 150 Mbps number is the maximum physical-layer signaling rate, not the rate at which an application can transfer file contents. Actual throughput is lower because of Wi-Fi overhead, TCP/IP and HTTP processing, microSD reads, ESP32 memory limitations, and interference. To mitigate this, we are testing alternate WiFi configurations and utilizing different channels to possibly boost the throughput.

Changes

Since Clarence has mostly finished design and researching/purchasing components, he will shift to helping Jayden and Ankita on firmware and integration of all component code for the demo. Other than that, no other changes. Another major change we are adding based on professor feedback is the ability for the ESP to detect whether a green pool table is in view, which will toggle the recording on/off.

Clarence’s Status Report for 11/7

Accomplish
This week, I designed, printed, and tested the first version of our clip and enclosure for the main ESP system. I used OnShape for the 3D design and sent in the order to TechSpark through the FBS system. I’ve tested that the clip easily attaches to the brim of the hat and remains in place. In addition, I sent in purchase forms for a miniature billiards table for our demo and testing. I also prepared one of our ESPs to connect to the battery by soldering JST connector pigtails onto the bottom pads while preparing a test setup with a breadboard for our full integrated system.

Progress/Schedule
The progress on my part is pretty on track although I would like to begin integration testing with the battery and ESP instead of using laptop power for the ESP. I plan to work with Ankita and Jayden on the firmware for power on/off when the SPST switches arrive.

Deliverables
Next week, I want to refine the enclosure design to support the camera that will be facing outwards and better stabilize the ESP module. I would like to account for wires and components that will be connected to the ESPs pins, likely by directly soldering the wires.

Team Status Report for 10/31

Team Progress

This week, our team made significant progress on the firmware for video/audio capture. The device now continuously records timestamped video and audio into rolling 2-second segments on the microSD card, and a save command preserves the previous 60 seconds as a clip without interrupting recording. We verified that clips are saved correctly and converted them into playable video on a laptop. We also fixed dropped video frames by enlarging the camera’s frame buffers, and improved audio with filtering, gain, and corrected timestamping, which removed a buzzing artifact. We confirmed high quality audio (enough to hear Steve Lacy’s “Oh Yeah?”) and proper video resolution. We tested the forehead-mounted camera and realized the brim would block the video, so we have decided to move our camera system forward to the brim. This allows for more accurate line-of-sight POV video and unobstructed video replay.

Risk Mitigation

Moving the camera to the brim places more weight farther from the head, which increases forward torque and could make the cap uncomfortable over a full session. To mitigate this, we will keep the battery and other heavier parts near the crown, keep the brim clip as light as possible, and weigh the full assembly against our 100 g limit. A second risk is wireless transfer: clip saving now works, but we have not yet measured Wi-Fi throughput between the ESP32 and the phone. We will test transfer speed at 3 m next week, before building the app’s download feature.

Changes

As discussed above, we are moving the camera system closer to the brim to keep the brim out of the clips. This led us to a clip-based 3D design that attaches onto the brim. We will update the physical design and mass distribution sections of our design report to match. This change does not affect our budget or schedule.