Yoyo’s status report for 4/25

This week I worked on system integration with my teammates. On the physical board we added frosted acrylic pieces in the holes on the board for led light diffusion and for cv to not recognize the leds through the hole as pieces.

On computer vision part everything is integrated to the system, we decided to avoid led flashing and add a button in the UI for the users to indicate they are done with a move and the leds will turn off for cv to capture the frame and then turn back on to guide the users for the next move. So there are changes made in the cv code for receiving frame capture requests.

For system integration we switched from hotspot to cmu device to connect everything. we will continue to debug and finalize the whole system especially the UI.

I am on track with schedule and next week we will be doing user testing.

Charlie’s Status Report for 4/25

This week, I focused on revising the server architecture and refactoring the state bridge to address limitations from the previous single-channel WebSocket model between the web client and Rust engine. While the earlier design worked for the React frontend, integrating additional hardware components such as CV-based board state detection and LED control required a more robust distributed architecture to support asymmetric clients. The updated design establishes the bridge as the single orchestrator and external gateway, with the engine reduced to pure game logic and stateless analysis. All components—including UI, CV, LED, and coaching—now interact through a unified bridge-owned command/event model, ensuring consistency and eliminating split-brain state. This redesign also ensures that all authoritative moves are broadcast as events, prevents helper operations from mutating live state, and enables CV-detected moves to act as first-class command inputs. I also revised the LED light configuration on the client to better match the physical board design, improving visual alignment between digital and hardware feedback.

In parallel, I continued developing the agent orchestration system, implementing a fast-path execution flow and iterating on decision routing based on board state. I integrated the Go-based coaching service into the new architecture and expanded integration testing across the bridge, client, and agent layers. I also conducted additional testing on the RAG pipeline, fixing issues with context injection and improving prompt constraints for token usage. . For better agent observability, I added a visualization and logging panel to display tool usage and track all agent actions in real time. On the data side, I collected more game position samples for puzzle generation and began revising the puzzle curator agent and state detection logic.

Overall, my progress is mostly on track, with continued focus on stabilizing the new architecture and improving system reliability.

Team’s Status Report for 4/25

Unit Tests:

  • CV Pipeline
    • Tested piece detection on single-piece and multi-piece images
    • Verified correct grid mapping after ArUco-based warping
    • Checked FEN consistency across repeated captures
  • Chess Engine
    • Validated legal move generation across edge cases (check, capture, invalid moves)
    • Verified no illegal moves are returned to downstream modules
  • LED System
    • Tested LED addressing and color mapping correctness
    • Verified correct highlighting for legal moves and best move
  • LLM Pipeline
    • Tested that generated suggestions are always legal (engine-bounded)
    • Verified latency under different prompt lengths

We conducted end-to-end system testing under realistic gameplay scenarios.

We found that LLM latency was quite long which made the overall latency of running the whole pipeline longer than we wanted, therefore we decided to use a token-limited setting and was able to boost the latency.

The most significant risks that could jeopardize the success of the project is the Raspberry Pi needing to be reflashed right before the demo, because we have faced some instances were we are forced to reflash and reupload our code. Another risk is our hotspot not working fast enough or at all in the location of the demo, which is needed by all 3 of our subsystems.

There were no changes to the existing design of the system.

Claire’s Status Report for 4/25

This week I finished the verification of the LED subsystem. I tested the remaining 3 full games for the move suggestions and the 30 board states for the latency and move suggestion accuracy. These last three games ended up having 99% average accuracy and 185ms average latency, which meets the <200ms metric we were aiming for. I also added tests to tell the latency between when the chess engine send an API request to the LED subsystem to turn on the opponent’s moves and when the LEDs are actually turned on. This is in addition for the 7 full games and 70 board states I collected last week where we had slightly less accuracy at 98% and also around a 185ms average latency. We did not make any design changes after the analysis of these test results since these meet the metric we were aiming for and we thought the experience of playing the game was how we envisioned. One thing we did talk about adding is a button for when the player is done making either their move or the opponent’s move so that the LEDs could be turned off for the CV, which hasn’t been trained with the LEDs lit under the pieces.

My progress is on schedule. Next week, I hope to finish the report and poster to be ready for the demo.

Yoyo’s status report for 4/18

This week I mainly focused on integrating the whole subsystem and with the other subsystems.

The cv part now produces results like this which can distinguish all different pieces.  The subsystem now outputs a request to the LED system for the leds to turn on and off when capturing a frame, and a FEN string to the integrate server as a result of board state detection.

I’ve also discovered some small changes that need to be made to the design of the physical board. like the need to raise the leds as close to the board as possible for the light to be seen clearly by the user.

Next week I will continue to address those small changes to improve user experience.

About new knowledge for this project, this is my first time learning about computer vision, I learned not only how to use the code for YOLO models, but also how different things would affect the outcomes of the models, how I should take the photos for the datasets to address different edge cases, how different yolo models work. About learning strategies I learned a lot by reading the official documents of yolo and anylabeling(the tool I used to label datasets), blogs about similar chess board state detection projects, and I also got help from Chatgpt when YOLOX didn’t support mps on macOS much and I had to learn to modify the code for yolox to support mps.

Team’s Status Report for 4/18

The most significant risks that could jeopardize the success of the project is the verification and integration of the subsystems. All of the subsystems are integrated in pairs of two like the computer vision with the LED subsystem and the chess engine with the LED subsystem and the computer vision with the chess engine, but we still need to verify that all of the subsystem can all function as one. We are also slightly worried about our hotspot speed, brightness of the room, and height of the table because all of these factors during the demo can affect the experience of our project.

There were no changed to the existing design of the system.

Claire’s Status Report for 4/18

This week I integrated the LED subsystem with the computer vision system and the chess engine. I formatted my functions that can show the move suggestions and the opponent’s moves as API function calls so that the integration engine could send requests in real time. I also started the verification process by testing 7 full games and 70 board states for the latency and the accuracy of the move suggestions.

We are on schedule. The next week I hope to finish the verification of the integration of all the subsystems like testing the remaining 3 full games for the move suggestions and the 30 board states for the latency and move suggestion accuracy.

As I’ve designed, implemented and debugged my project a new tool I learned to use was the Raspberry Pi Imager to flash my Pi and upload code onto it. I read Intro to Robotic’s documentation on how to connect to a Raspberry Pi as a learning strategy to acquire this new knowledge.

Team’s Status Report for 4/4

The most significant risks that could jeopardize the success of the project is still the integration of the subsystems. We did not realize that the computer vision portion may be more complicated than intended and that the output format we chose, an FEN string, may be harder for the other subsystem for interpret than intended. These risks are being managed by building the portions of all 3 subsystems that depend on the CV in conjunction so that any tweaks to make either side of the exchange easier can be done and tested more quickly.

There were no changes to the existing design of the system.

We are planning to run the CV, move suggestion, opponent move generation on 100 different board states and testing the accuracy. Each subsystem during these 100 different boards states will also be measuring the latency and seeing whether they are under our goals of 500ms, 100ms, and 5s respectively. We also plan to run 10 full games to see whether the move deemed “most optimal” is indeed the most optimal and also whether the LLM is able to provide meaningful help during these 10 games.

Claire’s Status Report for 4/4

This week I reordered the LEDS to consistently skip 2 LEDs in between even with the slack at the ends. I tried to store the power bank, Raspberry Pi, and breadboard is a way that preserved the structure of the wires by unplugging all of these individual components before the demo, but I accidentally wired the raspberry pi off by one on pin 10 instead of pin 12 during the first day of the demo and blew out all the LEDs that I had previously connected. So this week I rewired all the LEDs onto the wooden strips back to its original state. I hope to glue everything into place so that I do not have to worry about wires popping out and to get starting on the verification of the move suggestions generated from my code.

Despite this I am on schedule and no changes need to be made. This next week I hope to test the move suggestions on the 100 different board state and piece combinations that are part of our testing plan. For my verification plan , I will generate these board states randomly with an RNG to decide the index each piece is at and which piece’s potential moves are being questioned. Then, I will have to manually check whether the suggestions are correct and if any are wrong, take note of the accuracy percentage.  I will make a spreadsheet and keep track of the board states that cause incorrect suggestions and see if I can find a pattern with the wrong ones. If the computer vision subsystem is able to out an FEN string of some sort, I will also integrate that into the generation of my moves since right now it uses command line inputs. If I can get the FEN string output from the CV, I will also have to test the latency during these 100 different boards by subtracting the timestamp of when the LEDs are turned on by when the FEN string is inputted into the LED system.

     

Yoyo’s Status Report for 4/4

This week I’m mainly working on the cv part. I trained model for individual type of chess pieces, and tested them like this:

I’ve also started to integrated all the photos I took for each type of chess pieces into one model. I will need to take more photos with multiple pieces in one frame to train the model so that it will learn to tell the pieces apart. So thats my plan for next week, and also write code for the rest of the cv part such as taking a frame in live videosteam when nothing moves in 200ms, and board capture with aruco markers. Then I should be able to get output from my subsystem that can be fed into the led system and chess engine for integrating with my teammates.

I am on schedule and no changes will be made to the schedule.

About verification on my subsystem, the physical board won’t need any verification, so it’s mainly about the cv subsystem. I will evaluate detection performance of the yolox model both on precision and recall, the overall accuracy needs to exceed 95% to meet our expectations. The evaluation will be done with datasets including different circumstances such as dark environment, or different angels of camera placement. I will also measure the end-to-end detection latency from image capture to output to make sure it’s under 1s to minimize the users’ notice on latency.

the phone mount set up looks like this: