{"id":225,"date":"2023-12-03T00:19:55","date_gmt":"2023-12-03T04:19:55","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/?p=225"},"modified":"2023-12-03T00:19:55","modified_gmt":"2023-12-03T04:19:55","slug":"hangs-status-report-for-12-2-23","status":"publish","type":"post","link":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/2023\/12\/03\/hangs-status-report-for-12-2-23\/","title":{"rendered":"Hang\u2019s Status Report For 12.2.23"},"content":{"rendered":"<p><span style=\"font-weight: 400\">This week I was working on setting up a flask server on the Raspberry Pi, so that we can set up a websocket for wireless bidirectional communication between the physical board and the web application instead of wiring the Arduino to a computer. I had to spend some time setting up the Raspberry Pi in headless mode so that I could simply SSH into the machine instead of setting up a monitor and keyboard each time, and once that was done, I started moving the websocket code from the original server code into the Raspberry Pi. The image below shows the flask server being hosted on the Raspberry Pi, and the communication between the web application and the Raspberry Pi.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-226\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.16-AM.png\" alt=\"\" width=\"1510\" height=\"790\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.16-AM.png 1510w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.16-AM-300x157.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.16-AM-768x402.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.16-AM-1024x536.png 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-227\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.25-AM.png\" alt=\"\" width=\"2640\" height=\"896\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.25-AM.png 2640w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.25-AM-300x102.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.25-AM-768x261.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-11-29-at-11.19.25-AM-1024x348.png 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Since we changed the board to accommodate 9&#215;9 games instead of 19&#215;19 games, I had to change some parameters in my code to fit the new board. While I was working on this change, I also added row and column labels into the board, so that it is easier for players to read the recommended game moves when the row and columns are listed. Below shows the new board\/ui.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-228\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-12-02-at-11.19.11-PM.png\" alt=\"\" width=\"1114\" height=\"714\" srcset=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-12-02-at-11.19.11-PM.png 1114w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-12-02-at-11.19.11-PM-300x192.png 300w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-12-02-at-11.19.11-PM-768x492.png 768w, http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-content\/uploads\/sites\/254\/2023\/12\/Screenshot-2023-12-02-at-11.19.11-PM-1024x656.png 1024w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><span style=\"font-weight: 400\">I\u2019ve also added the engine to the backend server, so the backend server is almost completely finished now as it takes in a game state and returns the top 5 moves with the probability of winning associated with each move. The only thing left for the backend server is to update the final weights once our new engine is completely trained.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The progress on the software is on schedule. The only important item left on the software side is setting up serial communication between the Arduino and the server on the Raspberry Pi, but this is currently bottlenecked by the completion of the physical board.<\/span><\/p>\n<p><span style=\"font-weight: 400\">By next week, I\u2019ll polish up some final visual items on the web application, and finish setting up serial communication between the Arduino and the server on the Raspberry Pi.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I was working on setting up a flask server on the Raspberry Pi, so that we can set up a websocket for wireless bidirectional communication between the physical board and the web application instead of wiring the Arduino to a computer. I had to spend some time setting up the Raspberry Pi in &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/2023\/12\/03\/hangs-status-report-for-12-2-23\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hang\u2019s Status Report For 12.2.23&#8221;<\/span><\/a><\/p>\n","protected":false},"author":791,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,4],"tags":[6],"_links":{"self":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/posts\/225"}],"collection":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/users\/791"}],"replies":[{"embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":1,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":229,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/posts\/225\/revisions\/229"}],"wp:attachment":[{"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f23-teama0\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}