{"id":3751,"date":"2019-11-23T20:07:12","date_gmt":"2019-11-23T19:07:12","guid":{"rendered":"http:\/\/dronesonen.usn.no\/?p=3751"},"modified":"2019-11-23T20:07:12","modified_gmt":"2019-11-23T19:07:12","slug":"group-02-project-report-week-12","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=3751","title":{"rendered":"Group 02 \u2013 Project Report \u2013 Week 12"},"content":{"rendered":"\n<p><strong>Integration<\/strong>\u00a0<\/p>\n\n\n\n<p>This week,&nbsp;similarly&nbsp;to the week before, the entire group has worked together to integrate the various subsystems into a single system. The electro students have made progress on the wiring of the system, having begun soldering connections to the various components, the mechanical student have been printing parts on-demand as the other disciplines need them (such as new pulleys to better fit the band, a better part to connect the band and the stick, to name a&nbsp;couple). Furthermore,&nbsp;the computer students have&nbsp;been working closely with the electro students to finalize the Python and Arduino programs, making them communicate (detailed further in the computer section).&nbsp;<\/p>\n\n\n\n<p>The mechanical student\u00a0have\u00a0kept on modifying and creating new parts to fit even better for the systems overall performance. We have had some problems with getting enough air flow from the fans and it seems we need to cut out a new\u00a0plexi-plate with smaller holes so that we can get the air pressure we want to make the disk float.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-11-1024x768.jpeg\" alt=\"\" class=\"wp-image-3752\" width=\"532\" height=\"399\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-11.jpeg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-11-300x225.jpeg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-11-768x576.jpeg 768w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><figcaption>Plexi plate holes<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-12-1024x768.jpeg\" alt=\"\" class=\"wp-image-3753\" width=\"544\" height=\"408\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-12.jpeg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-12-300x225.jpeg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-12-768x576.jpeg 768w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><figcaption>Mounted fans<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-13-768x1024.jpeg\" alt=\"\" class=\"wp-image-3754\" width=\"482\" height=\"642\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-13.jpeg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2019\/11\/image-13-225x300.jpeg 225w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><figcaption>Air hockey board<\/figcaption><\/figure><\/div>\n\n\n\n<p>The mechanical student is also having some troubles with the goal  on the robot side. Since there is little to no time left doing it more complex because of all the exams and projects going on, he&#8217;s trying to make a very simple solution that will work 100 % of the time, but because of the size restrictions on the 3D printers he has available it still needs some more work. Pictures of these will be shown on the next blog post.\u00a0<\/p>\n\n\n\n<p><strong>Computer\u00a0<\/strong><\/p>\n\n\n\n<p>This week the computer engineering students and electro students have put the final piece in the basic defense puzzle, and we have been able to implement the 1-axis basic defense functionality. Initially we were faced with an alarming bug that caused the Python\u00a0 program to compute the incorrect intersect coordinate, but we came to realize that since the program will always use the newest and second newest points to compute the intersect coordinate, the newest point would frequently be zero (because we nudge the puck, and it eventually goes stationary). To prevent this, as well as ensuring we don\u2019t compute unnecessarily, we now ensure there is a large enough difference between the two most recent points before computing the intersect coordinate. Furthermore, since the slope could be less than 1, we had to ensure python did float division (as opposed to int division) to ensure we could have decimal slopes.\u00a0<\/p>\n\n\n\n<p>To interact with the Arduino, we used the serial communication functionality we implemented a few weeks back, with a few changes. Most notably, we realized we couldn\u2019t simply send a string (e.g. \u201cTest\u201d) from the Raspberry pi to the Arduino, as this would be interpreted as ASCII. Consequently, we had to convert the string into a series of bytes (using the string\u00a0encode() function), at which point the Arduino received the information correctly.\u00a0 Currently this appears to be rather slow, and the computer is unable to respond to the puck quick enough, so we will have to investigate means of speeding this communication up.<\/p>\n\n\n\n<p>Finally, to&nbsp;ensure&nbsp;that&nbsp;the&nbsp;Arduino&nbsp;and&nbsp;Raspberry&nbsp;Pi&nbsp;was&nbsp;on&nbsp;the&nbsp;same&nbsp;page,&nbsp;we&nbsp;had&nbsp;to&nbsp;<br>define&nbsp;how&nbsp;many&nbsp;pixels&nbsp;the&nbsp;board&nbsp;dimensions&nbsp;were,&nbsp;which&nbsp;the&nbsp;Arduino&nbsp;can&nbsp;interpret as a&nbsp;certain&nbsp;number&nbsp;of&nbsp;steps. All&nbsp;of&nbsp;this&nbsp;put&nbsp;together,&nbsp;we&nbsp;are&nbsp;now&nbsp;capable&nbsp;of&nbsp;sending<br>information&nbsp;to&nbsp;the&nbsp;Arduino, and&nbsp;the&nbsp;Arduino&nbsp;will&nbsp;respond&nbsp;accordingly, and for the first time, we have a rudimentary prototype.&nbsp;  <\/p>\n\n\n\n<p>Other&nbsp;than&nbsp;that,&nbsp;we&nbsp;have&nbsp;made&nbsp;more progress&nbsp;with&nbsp;the&nbsp;presentation,&nbsp;added&nbsp;the&nbsp;cosmetic&nbsp;<br>plates&nbsp;on&nbsp;the&nbsp;bridge, and&nbsp;aided&nbsp;with&nbsp;integration&nbsp;across&nbsp;the&nbsp;board.&nbsp; \n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Integration\u00a0 This week,&nbsp;similarly&nbsp;to the week before, the entire group has worked together to integrate the various subsystems into a single system. The electro students have made progress on the wiring of the system, having begun soldering connections to the various components, the mechanical student have been printing parts on-demand as the other disciplines need them [&hellip;]<\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,52],"tags":[],"class_list":["post-3751","post","type-post","status-publish","format-standard","hentry","category-smart-systems-2019","category-the-unbeatable-air-hockey-team"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3751"}],"version-history":[{"count":1,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3751\/revisions"}],"predecessor-version":[{"id":3755,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3751\/revisions\/3755"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}