Team Status Report for 11/21

This week was dedicated to the software side of our project, we worked specifically on CV and website. We also did additional testing with hardware components such as the PCB to acquire data for our final presentation/report. We will also conduct additional end-to-end testing to verify that our system meets the requirements for move detection accuracy, illegal move detection, and response latency. 

The risks of integration stand from last week. We will be integrating the hardware and software this coming week. In the case that our PCB doesn’t work with the Jetson we can mitigate it by keeping it with the arduino and just plugging the arduino into the Jetson. We also talked about other pathways for detection other than the CV with our TA last week. We can possibly use the last and current state of the PCB to find which squares have changes, and using that determine if a move is in-process or completed. This does pre-requisite the board being set up correctly initially which was not part of our initial user story, although this can be used as a mitigation path in case our CV doesn’t meet our testing requirements. There have been no changes made to the design, and no updates on the schedule.

As we move to the final integration phase, our main priority is making sure that all hardware and software components are communicating reliably so that we can meet our design requirements. We also plan to prioritize integration testing this week so that any remaining issues can be identified and addressed before the final demo. 

Team Status Report for 11/14

We have already done the necessary testing of the PCB and have gotten near perfect results on digital board detection, validating our > 98% hall sensor accuracy user requirement. The chess software is mostly based on preexisting libraries which have already been tested, we also observed no issues with making moves solely in software. This validates our 100% illegal move detection user requirement. The next testing step will mainly focus on CV piece detection; since we already have the infrastructure built to capture from the camera on the Jetson, this week we intend on doing a lot of testing and verification of the models we use. 

We also got some good feedback from the interim demo from the use case standpoint. We need to make sure that all aspects of the game can be differentiated by a fully visually impaired user, which includes the pieces. The chess squares already can be differentiated from black and white based on the depth of the square, however, the color of pieces themselves currently cannot be distinguished without visually seeing them. So, some tactile features will be needed on those. To validate these improvements, we will plan to conduct testing to determine if users can correctly distinguish between two sets of pieces without relying on visual information. This will help make sure that the physical board meets the accessibility needs of our intended users. 

Also as we begin to move towards system integration, we will need to do validation across several subsystems. Along with complete system validation tests to check if our latency user requirement is met. The biggest priority will be getting moves to be detected by both the PCB and CV into the chess software, all on the Jetson. This will by far be the main integration challenge, and all the other peripherals on the Jetson will need to be ported to Linux, which we do not foresee to be much of an issue. 

For our upcoming verification and validation testing, we plan to measure the accuracy of each subsystem with specialized tests. For the CV subsystem, we will be comparing the detected chess pieces and their locations against the actual board configuration to determine whether we meet our piece classification accuracy of greater than 98%. We will also be testing different board configurations and lighting conditions to evaluate consistency. For full system integration, we will compare physically executed moves against moves registered by the chess software, including legal and illegal moves. We will also measure the time between a physical move being completed and the corresponding feedback being generated to verify that the system meets our end to end latency requirement of 1.5 seconds. 

The biggest risk will be integration, as we were able to show all main subsystems working as intended in the interim demo. Our main plan for integration will be to get a correct end to end move detection from physical to software working. All other features are of lesser importance and will be integrated later.

One main part of the integration is getting the PCB to work on the Jetson. Currently it works perfectly using the arduino, so we have to transfer the code from C++ to Python so it can work well with the software side. 

No changes have been made to the existing system design from last week. The main focus of the remaining weeks will be integration which we have already mentioned above. Other than that, we need to update all of our previous documentation to reflect the current system design, as it has changed since the design document. 

Team Status Report for 11/7

One risk that we identified is that the NeoPixels require a 5V output which the Jetson is unable to output. This may require us to use an Arduino which the Jetson would send outputs to and would output onto the NeoPixels. While this isn’t exactly an elegant solution, it would be very simple to implement and wouldn’t cause much of a scheduling problem. Another issue we faced this week was with the camera on the Jetson, it has turned out to be more difficult than initially thought to get correct drivers for the specific camera we purchased, and getting CUDA support with OpenCV on the latest version of Jetpack (the Jetson’s Ubuntu-based OS) is difficult, and there is little online support for this. A fall back option in the worst case would be to downgrade to Jetpack 5, which shouldn’t cause much issue with other subsystems. Some remaining integration challenges we will face will be forwarding the logging outputs from the Python Chess to our speakers and NeoPixels.

We are also struggling a bit to get braille to show up well with 3D printing, due to the heat of the filament some of the dots tend to connect. A mitigation for this would be to purchase separate braille strips that we will tape onto the board.

The hardware/electric design has changed.

As mentioned earlier, we are intending on using an Arduino to send our LED outputs to the board, the Jetson will still be responsible for telling the Arduino what to output. We will also run the button inputs through an arduino. Here is a new wiring/electric diagram: 

This will cost us extra for parts like the arduino and an additional power source. 

Although, for the material of the chess board & box we have decided to use PLA/PETG, as it is more accessible and environmentally friendly compared to acrylic. This also decreased our cost as we are able to use an at home 3D mini printer and Robo Club printers. So the earlier costs for additional parts have been mitigated. 

Additionally, our solution for sending moves to Python Chess may change. Instead of relying on the camera output to cross verify moves, we will only use it to identify the type of piece moved. We think this will still maintain our projected technical design requirements because the Hall Sensors on the PCB have proved to be very reliable and continuously output a correct state of the locations of all pieces. And using the PCB outputs to locate the position of a move and using the CV output to identify the type of piece moved will integrate nicely for our Python Chess software.  

This change should also help simplify our software integration process. Rather than having to rely on both the camera and Hall sensors to independently determine the board state, we can use the Hall-effect sensors to track the locations of chess pieces and the camera to help identify which pieces are being moved. This reduces the amount of image processing required while also allowing our digital board-state tracking and python-chess implementation to handle move validation. However, we still need to make sure that the two inputs are reliably identifying moves, particularly if multiple pieces are moved or if a piece is incorrectly placed. 

There were some movements and additional tasks

For hardware we added some tasks such as Designing Hardware Integration and printing the 3D board.

We also had to move the integration back a bit due to a delay in component delivery. This means we will have to do testing and integration together. 

On the software side we were able to successfully get the software chess code running on the JETSON you can see the image in the below link:

https://photos.app.goo.gl/G2g3LnZksxbZfuGB9

For hardware we started building the prototype board. As you can below each square fits right above the sensors with the led underneath. The black dots on the board are our magnets, fit into their slots.

Here in the results when running a simple loop test. We can see all 16 squares are detected to have a magnet over it!

Team Status Report for 10/31

One of the main risks that we are facing is the delayed integration of the PCB and Hall-effect sensors with the rest of our system. Although the PCB has been ordered, we still need to ensure that the sensors can reliably communicate with the Jetson and correctly detect changes in piece positions. To mitigate this risk, we have been using the individual Hall-effect sensors from our earlier testing to see if things are working properly. This lets us see if there are any potential issues early rather than waiting until the entire hardware system gets assembled. 

Another risk is the integration between the camera recognition system and our digital board-state tracking. Since the camera and Hall-effect sensors are responsible for detecting the physical chess pieces, we need to ensure that their outputs are consistent. 

One final risk we need to mitigate is the risk of the board being too distant from the PCB. The top layer is the acrylic board, the second is the NeoPixal matrix, and the third is the PCB. We have to minimize the distance between these three layers but still keep a distance such that the sensors & LEDs don’t overheat and cause any hazards. 

No major changes have been made to the overall system architecture or design requirements this week. We are still following our original approach of combining Hall-effect sensors, camera recognition, digital chess logic, and audio feedback to create an accessible physical chessboard. However, we have made adjustments to our development schedule to accommodate the delayed PCB and allow additional time for system integration. We intend on getting solid progress on all subsystems before the interim demo, and shift priorities to integration after the demo.

Team Status Report for 10/24

The risks are similar to the ones presented in the previous report. One main risk was the PCB being delayed. Now that it is ordered we believe it will make it in time for the integration & final product, but we cannot guarantee it will be here in time for the interim demo. To not delay integration or demo presentation we will use the 8 digital sensors from testing to set up a sensor row. Using this sensor row we can figure out the integration process between sensor output to jetson, which will then allow us to create the code for sensor routine. So once the PCB arrives we will have the entire integration set up completed and we will only need to solder and connect the pinout. Another risk that can potentially slow down our process is the arrival of the camera. We expect the camera for the Jetson to arrive next week on October 26. Once the camera arrives, the number one priority is to integrate the camera inputs into the Jetson and then to OpenCV. We expect OpenCV to utilize the CUDA compute cores on the Jetson, and it’s important to have that working as soon as possible. For now, we are testing individual components separately, making sure that they work on their own before we move onto integration. This will help us understand the root of the issue if there is an issue with integration. 

We have decided to go with 3D printing out the chess pieces rather than ordering them. Due to the price of the PCB board we decided to decrease the size of the PCB board and hence decrease the size of the entire chess board. In order to get pieces that perfectly fit our new board we decided to 3D print them. Since we have robo-club access we will be printing these for free, so our cost in terms of money decreases, but the cost in terms of time spent increases. The 3D printing should be complete by the end of next week.

This additionally added a task to our schedule. The updated schedule with all the addition tasks are shown below: 

Team Status Report for 10/10

One of the significant risks we identified in our previous progress reports was a delay in ordering the PCB, and this risk has now occurred. When we looked at the price of the PCB, we realized we could not afford to order two boards (in case the first one did not work). This created an additional risk, since it left us with no buffer. We had to weigh the tradeoff between two options, sending the PCB out on schedule and risking a mistake that we could not recover from, or sending it out a bit late after checking it thoroughly. We ultimately chose to send the PCB out one week later than initially planned. Although this may set our integration back slightly, we decided it was the safer choice for the project.

No changes were made to our design. This week we finalized the design spec of digital hall effect sensors, which is represented in our PCB design. This decision will require a working CV element to the system to detect specific types of pieces. However, this is still in line with our current design. 

Schedule Update:

We moved the integration back by two weeks in consideration of the PCB delay. 

Photos from Sensor Testing:

For both Analog and Digital Sensors we ran some distance testing (as cross-talking was our main concern). We ran each sensor with the magnet on top and in a 1/2cm distance.

Directly on top of sensor (7cm = 0cm):

1/2cm away from sensor (7.5cm =0.5cm)

Analog Results respectively:

Digital Results respectively:

 

A was written by Justin, B was written by Kevin and C was written by Sabah.

Part A: The product solution we are designing will meet a specific need with consideration of global factors. 

Our project, while offering a much more accessible way to play chess for the visually impaired, is still limited in the global scope. Mainly because the braille and audio feedback features will be in English. This is a tricky barrier to cross in a single system because all major languages use a different writing system for the visually impaired. We suppose translated versions of the project may be created with little difficulty, although we aim to only help the English speaking visually impaired play chess more effectively. However, we do not require our users to be very tech savvy. The user interface on the web will be accessible to everyone on the local network, and on the device, we will have automated scripts that connect to known internet hosts upon startup. There will be equal accessibility to nearly everyone in the US and English speakers with minimal tech experience and access. With consideration to all global factors, language is a clear barrier that our project currently will not seek to expand on. Although with our target audience in developed, English speaking countries, we aim to provide a much more accessible way to play chess. 

Part B: The product solution we are designing will meet a specific need with consideration of cultural factors.

Our project is aimed to make chess more accessible to visually impaired individuals while also considering different cultural backgrounds and experiences of our different potential users. Chess is a pretty famous game played all around the world. While the rules are standardized, players may have different levels of familiarity with assistive technology and different preferences to how they would interact with the game. Additionally, players might even have different experiences and expectations for how chess is played. This may include how the chess community values fairness, independence, and equal opportunities. But in our current state of the world, because technology has progressed so much, online chess has become a popular mode of play. However, virtual play can often be limited to visually impaired players since they cannot see the screen or have any physical contact with the game. With the values of fairness, independence, and equal opportunities in mind, we are creating an accommodation for visually impaired players by incorporating tactile features so that they can participate in the same game as sighted players. Since chess is often played in a social environment, reducing these barriers between visually impaired and sighted players can help with play between friends, family, or even competition. By doing so, we are maintaining the social aspect of chess and encouraging inclusion within the chess community. 

Part C: The product solution we are designing will meet a specific need with consideration of environmental factors. 

In consideration of environmental factors we choose materials and designs to limit waste and conserve natural resources. The board surface is acrylic, which is both durable and scratch resistant, hence the board can last for years and be recycled at the end of its life. We are also considering 3D-priniting our chess pieces, in this case we will use a PLA. PLA is extracted from plant-based renewable resources and can be composted in industrial facilities. Our overall system is built with a modular design which allows users to replace the PCB, camera, speaker, or LEDs (neo pixels) individually instead of discarding the whole product. This design choice saves the raw materials used to manufacture these electronic pieces and additionally keeps the electronic waste to a minimum. Finally, the system uses little energy as the Jetson can run in a low-power mode, and the neo pixels only light up when giving feedback.  Lower electricity use means fewer fossil fuels burned to power the board, which helps conserve natural resources. 

Team Status Report for 10/3

Based on some of the feedback from the design presentation, it is going to be a priority for us to make sure that there is some benefit for the computer vision aspect of the project. As of now, it seems like it will be the most effective way to recover from corrupted game states, i.e. a hall effect isn’t triggered and the virtual state of the board becomes out of sync with the physical game. For the Jetson microcontroller, in the process of installing the operating system, we realized we need some form of persistent storage which needs to be ordered; the most affordable option seems to be a 128 gig microsd card. Once that arrives, we can boot the Jetson without the ISO image. This may set our software development back about a week, although we are confident that using a performant high level language such as golang will allow us to seamlessly manage concurrent processes safely and fast enough for our target requirements. Since go is also built with a nice networking interface, it should be also relatively easy to do the web backend with it; later down the line we need to decide if an on-device database or a cloud based solution will be best. Additionally, for the computer vision aspect, we are considering having the computer vision aspect to act as a secondary verification / recovery mechanism rather than having it as a primary means of detecting every move. We want to keep the hall sensors as the primary source for detecting board changes if piece classification is difficult to achieve under varying lighting or camera conditions.

One big feature we are going to add to our project is a website for logging the history of moves  which can be used by either a user who is able to navigate the web or a caretaker/ coach who could go through and analyze past games. This will be a simple add on to our software stack and requires no additional hardware or modifications to the overall software architecture. 

No changes have been made to our overall design since the design presentation, although some of the questions we received during our presentation have got us thinking about how the overall design may need to be refined. One of these possible changes is switching to a hardware-only product, by using analog sensors and magnets with variable strengths. We do want to create a smart chess board with as close to 100% accuracy as possible. So along with testing digital vs analog sensors this week, we will also try analog sensors with variable magnet strengths. If an analog hall sensing for determining piece types is very successful, we would prioritize development for this; it would also require ordering more magnets with more precise strengths and using some sort of ADC which would be integrated over I2C. 

As we just received the sensors and magnets we moved testing to this upcoming week. We have completed the full (8×8) matrix schematics for both sensors, so as soon as a sensor is selected we will move on to layout. 

Other updates to the schedule are to integrate ethernet much sooner, this would allow us to access our code base and download supporting software such as Jetpack 6.x for openCV. This will be completed with setting up the Jetson’s OS. Even though sensor testing and Jetson setup have shifted slightly, not all of the software tasks depend directly on the physical hardware so we are able to continue along the set schedule. During this time, we can also opt to use simulated board states to test board-state tracking, move detection, move validation, and move logging. Once the actual hardware is available, we can replace the simulated inputs with real sensor and camera data. 

This is our updated price sheet & ordered products:

Team Status Report for 9/26

The significant risks, mitigations, and contingency plans are the same as last week.
There have been changes to the existing design of the system specifically to the PCB and chess board. We decided to test different types of sensors along with different types of board materials. For testing one type of sensor the cost was approximately $13, now that we are testing two types it resulted in additional $13. We believe these costs are necessary as they directly impact a user requirement measurement (98% accuracy from sensors). Testing on a smaller scale also reduces the risk of producing a full PCB that does not meet this requirement, which would be more expensive to redesign and replace.
In the schedule (software development) we had to push back the task: implement camera capture + board calibration due to us not ordering the camera yet. We have not yet ordered the camera because we wanted to confirm the Nvidia Jetson availability first before ordering a camera. We received the Jetson on Thursday so we will be ordering the camera next week. To minimize offset in the schedule, we determined that working ahead on software development such as implementing digital board state + python-chess rules, move logging, time stamps. This way, by the time we have our camera setup, we can integrate it more easily with the software aspect.

We were recently approved and received an Nvidia Jetson Orin Nano board which will be our main computing platform for computer vision processing

A was written by Justin, B was written by Kevin and C was written by Sabah.

Part A: … with respect to considerations of public health, safety or welfare. Note: The term ‘health’ refers to a state of well-being of people in both a physiological and psychological sense. ‘Safety’ is the absence of hazards and/or physical harm to persons. The term ‘welfare’ relates to the provision of the basic needs of people.

Our project seeks to positively impact the physical chess playing experience for everyone on the spectrum of the visually impaired. This type of user has specific needs for their safety that the rest of the population do not. Specifically, our project involves active moving of chess pieces in a system with fragile electric components. To adhere to the safety needs of the visually impaired, we need to have all components external to the chess board very secured to the table in order to avoid failure of components and avoid injury from accidentally bumping into them. The chessboard and PCB itself will be secured to the table (perhaps with suction cups) to avoid being accidentally pushed. And external power cables will need to be secure to avoid anyone from tripping over them. With respect to physiological harm, as long as the game will be fair, even in the situation of non-visually impaired playing against someone visually impaired, there will be no possibility of cheating or foul play. Additionally, as long as the chess interface helps bring some of the automated features of online chess to the physical board, I foresee there being no physiological harm as opposed to the existing solution. 

Part B: … with consideration of social factors. Social factors relate to extended social groups having distinctive cultural, social, political, and/or economic organizations. They have importance to how people relate to each other and organize around social interests.

One of the key factors that were considered when designing our project was social accessibility and inclusion. Our group noticed that traditional chess can often create barriers especially when they need to rely heavily on visual information from the board. By adding features such as a braille incorporated physical chessboard with digital features such as move detection, move validation, and board state tracking, we believe that this would reduce barriers between visually impaired and sighted players. Overall, this would lead to a more inclusive playing environment that does not require either player to use a completely separate interface. On top of this, we also considered the importance of independence and equal participation. Rather than having to depend on another person to identify pieces and track moves, the system we set up is intended to provide this information automatically to provide accessible feedback. This way, visually impaired players and/or sighted players can both participate more independently in casual games without having to have someone looking over their shoulder to help them. At the same time, we realized that the system should not be providing an unfair advantage to one player so all assistance and game information is designed so that it is consistent for both players. Overall, the goal for this project was to make physical chess more accessible while also preserving the valuable social interaction aspect. 

Part C: … with consideration of economic factors. Economic factors are those relating to the system of production, distribution, and consumption of goods and services.

The smart chessboard we are making for visually impaired users meets the need for a board that helps them learn chess, since many cannot visually access digital resources. Although, we also need to consider the economic factors surrounding this product, including production, distribution, and consumption. On the production side, the board requires more materials and labor than a standard chessboard because it includes braille labels, raised black squares, and differently sized chess pieces. In addition, the smart board requires a camera, LEDs, a speaker, and an NVIDIA Jetson (or another single-board edge computer ), all of which must be wired together. The Jetson or another edge computer (SBC) is a necessary expense because the final product relies on computer vision to detect piece positions. This increases manufacturing costs and assembly time.  The cost of the SBC itself stays roughly the same regardless of production scale, although other costs, such as design and engineering (only done once), LEDs, and sensors, can be reduced when components are purchased in larger quantities. Hence the production cost can be justified with scale.

Another economic factor to consider is distribution. The board would likely reach its intended users best through schools, organizations, and assistive technology retailers that serve visually impaired people. I believe these are the best channels because visually impaired learners and their teachers are likely to find the board through them. We could also make it available online for teachers (from schools) to purchase. Finally, looking at consumption, the board has to compete with free chess apps and cheaper tactile boards that have no electronics. For our target users, however, apps may require constant use of a screen reader and can be difficult to navigate. Similarly, tactile-only boards do not provide feedback on moves, such as hints or corrections, without a coach. This makes it difficult for someone who does not already know chess to learn. The additional cost of the electronics therefore meets a need for visually impaired users by giving them a way to learn and correct their mistakes without a separate human guide.

Team Status Report for 9/19

One of the biggest risks to the project is a delay in ordering or receiving the PCB, as well as the possibility of the PCB not working correctly. To reduce this risk, we will test the components on a breadboard and build a small 1 × 8 prototype before ordering the full 8 × 8 PCB. If problems occur, we can continue software testing with the prototype while correcting the PCB.  Another significant risk is the reliability of the computer vision system. Things like lighting, camera position, shadows, or similar looking pieces can cause the system to incorrectly identify the actual board state or identify a move being made. To reduce this risk, we will have to test the camera under different lightning conditions and use a fixed camera position. We can also compare the detected board state with info from the Hall effect sensors to improve reliability.  The main software risk that we determined on was keeping the physical board state synchronized with the digital chess state. Incorrect detections, missed moves, or communication errors between different components might cause the digital representation of the board to be inaccurate. To manage this risk, the software will validate detected moves against the current board state and chess rules before updating the game. Individual software will validate detected moves against the current board state and chess rules before updating the game. 

No changes have been made to the main system design since the proposal presentation. In terms of schedule update, the component delivery task has been moved from last week to next week. This gives us time to review our order plan and component choices with our TA before submitting the order.