{"id":6449,"date":"2022-11-20T23:25:56","date_gmt":"2022-11-20T22:25:56","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=6449"},"modified":"2022-11-29T08:37:07","modified_gmt":"2022-11-29T07:37:07","slug":"auto-21-post-13","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=6449","title":{"rendered":"Auto 21- Post 13"},"content":{"rendered":"\n<p>this week works<\/p>\n\n\n\n<p>started working on connecting all the control unit to breadboard and then connect it all to Arduino, using VGA cable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"291\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-25.png\" alt=\"\" class=\"wp-image-6830\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-25.png 505w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-25-300x173.png 300w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><figcaption>VGA Kable: one side is cut off and used the lines to connect to LCD display and the buttons.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-24.png\" alt=\"\" class=\"wp-image-6829\" width=\"553\" height=\"446\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-24.png 544w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-24-300x242.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><figcaption>VGA connector: connected VGA cable to VGA connector and then to breadboard later to Arduino.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"628\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/Button-pins.png\" alt=\"\" class=\"wp-image-6831\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/Button-pins.png 601w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/Button-pins-287x300.png 287w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><figcaption>the buttons are connected to this Arduino pins<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-27-edited.png\" alt=\"\" class=\"wp-image-6834\" width=\"618\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-27-edited.png 391w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-27-edited-300x195.png 300w\" sizes=\"(max-width: 391px) 100vw, 391px\" \/><figcaption>the four pins from LCD display is connected to Arduino pins GND, VCC (5 V), SDA and SCL<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"691\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-1024x691.jpg\" alt=\"\" class=\"wp-image-6847\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-1024x691.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-300x203.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-768x518.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-1536x1037.jpg 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/a-2048x1382.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>this is how the VGA are connected to the breadboard. <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"691\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-1024x691.png\" alt=\"\" class=\"wp-image-6849\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-1024x691.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-300x203.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-768x518.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-1536x1037.png 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-29-2048x1382.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>and this is how the drivers, servo and dc motor is connected.<\/figcaption><\/figure>\n\n\n\n<p>^- Mehdi <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n-1024x461.jpg\" alt=\"\" class=\"wp-image-6613\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n-1024x461.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n-300x135.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n-768x346.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n-1536x692.jpg 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/313369187_795510468218675_693241730819349993_n.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>The circular plate is not level.<\/figcaption><\/figure>\n\n\n\n<p>For solve the problem, we made a support and installed a total of three, one for each 120 degree angle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"400\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-23.png\" alt=\"\" class=\"wp-image-6618\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-23.png 937w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-23-300x128.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/image-23-768x328.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><figcaption>Support parts and 3D modeling with Solidworks<\/figcaption><\/figure>\n\n\n\n<p>It has a roller function, so it helps to  rotate of circular plate. And it will reduces pinion gear stress.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n-1024x461.jpg\" alt=\"\" class=\"wp-image-6620\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n-1024x461.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n-300x135.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n-768x346.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n-1536x692.jpg 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/316138686_3341745082736053_4593957162050389574_n.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Started to work on merging the codes related to the game logic and image recognition to have the game logic use the image recognition to know the cards in the card dispenser. Had troubles with using the raspberry pi program we made to take pictures as we were getting \u201cout of resources\u201d errors. Fixed it by rewriting some of the code so that the camera is only initialized once. We want there to be a variable in the image recognition program that keeps count of how many cards has been dispensed so that we can adjust the camera based on how many cards are in the dispenser. Since the image recognition program is reset each time, we need to keep the variable throughout all the programs to keep the value. We also wrote some of the code incorrectly because we misunderstood how one of the the black jack rules works. &#8211; Nikolai &amp; Andreas<\/p>\n\n\n\n<p>Me (Martin) and Lord started working on optimizing the arduino code for the motors. We made the code more compact and clean. After that we started working on making the code for the merge. That includes a lot of new functions, classes and logic. We will continue working on the merging code for the whole week and hopefully get it working. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/Untitled-2.mp4\"><\/video><\/figure>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2022\/11\/Untitled-4.mp4\"><\/video><\/figure>\n\n\n\n<p>Here is a video of our system. A better video is on the way. It will be posted really soon! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>this week works started working on connecting all the control unit to breadboard and then connect it all to Arduino, using VGA cable. ^- Mehdi For solve the problem, we made a support and installed a total of three, one for each 120 degree angle. It has a roller function, so it helps to rotate [&hellip;]<\/p>\n","protected":false},"author":86,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97,93,1],"tags":[],"class_list":["post-6449","post","type-post","status-publish","format-standard","hentry","category-auto-21","category-smart-systems-2022","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/6449","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\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6449"}],"version-history":[{"count":11,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/6449\/revisions"}],"predecessor-version":[{"id":6853,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/6449\/revisions\/6853"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}