{"id":8134,"date":"2023-10-20T11:50:26","date_gmt":"2023-10-20T10:50:26","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=8134"},"modified":"2023-10-24T14:06:03","modified_gmt":"2023-10-24T13:06:03","slug":"micromind-autonomous-week-9-2","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=8134","title":{"rendered":"MicroMind Autonomous &#8211; Week 9"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/MGawBzTBCcs3hO-qTmcc-XasDQhB40BvtRk6dmtWIzS38Wtx63MHdF_jBiMzpMtC9bSJTGEpX_aO2HK4QmJjnLoltTwUmxEszlo8i9eXtEfdd_kd6XHFKMtif-LiwGuRNL3TlNiXHjmh_RZ_XlXHTTA\" alt=\"\" \/><\/figure>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>Ilir Bylykbashi<\/strong><\/p>\n\n\n\n<p>This week John and I decided to establish a plan B in case it is not possible to create a functional algorithm for the micro-mouse project. We want to be able to drive the mouse with another micro:bit. We are now in the stage of establishing it to work correctly, and this is how we want it to function.<\/p>\n\n\n\n<p>The microbit will have manual mode enabled initially. On the chart we are able to distinguish between both micro:bit v2, and can see their operation.<\/p>\n\n\n\n<p>For instance, the mounted unit will check if there is any data to receive, and will see if it is valid when it is received. If the data is not valid, it will continue operating in its current state. Otherwise, it will change modes and send a verification to the other microbit controller.<\/p>\n\n\n\n<p>Additionally, the remote controller which is connected to the computer, will await instructions based on whether or not button \u2018A\u2019 is pressed. Moreover, we have implemented a debounce delay on button \u2018A\u2019. This has been done to prevent a single press being read multiple times, and acts as a small filter to prevent noise on the microcontroller being read&nbsp;&nbsp;<\/p>\n\n\n\n<p>As we can see from the video from John, we can see the mode from the Matrix display on both units. This will change accordingly when the modes are changed and confirmed.&nbsp;<\/p>\n\n\n\n<p>Here is a flowchart showcasing our point.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/GwahaCVFUplcbyKokyZd707ZDRQ8jw0qb24V56O9fNTQSg9tgg2zKI70BirQYHgEVRksc6jd2pCGgEHVdNB4pNbjABKrJosEIhZS5OJLA-Nt5vFtyb50LuY_D3j0Puere4we8eeian87MTyRXsM9MvQ\" alt=\"\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong>John Frederick L\u00e6rum<\/strong><\/p>\n\n\n\n<p>This week I&#8217;ve been working on the radio communication between two MicroBits V2. Both MicroBits are set in manual mode in the setup, but as the A button is pressed on the controller we want to send data to change mode and receive confirmation back. Both MicroBits also display an \u2018A\u2019 or \u2018M\u2019 on the led matrix to represent which mode we\u2019re currently in. <\/p>\n\n\n\n<p>The idea is to use flags to confirm whether or not we should send\/process accelerometer data from the controller. So if i we set the MicroBits in manual mode we can then continuously while those flags are checked send data and have that control the movement of the mouse. Currently we\u2019re not there yet, but we\u2019re getting closer. As for now both MicroBits fire up in the correct mode and once we press the button on the controller it will change mode on the other. <\/p>\n\n\n\n<p>However we\u2019re in need of getting the confirmation sorted out. We\u2019re able to swap from the initial manual mode to auto get confirmation, and back to manual, but then we\u2019re running into problems as we dont get the confirmation this time. Short demonstration of current progress: <a href=\"https:\/\/youtube.com\/shorts\/hWX5HVNx3qs\">https:\/\/youtube.com\/shorts\/hWX5HVNx3qs<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong>Thomas Frimann<\/strong><\/p>\n\n\n\n<p><strong>Summary:<\/strong><br><br>(Waiting submission)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong>Daniels Blomnieks<\/strong><\/p>\n\n\n\n<p><strong>Summary:<\/strong><br>Laser cut test gears to test meshing and size requiared for the wheels.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4-1024x400.png\" alt=\"\" class=\"wp-image-8205\" width=\"650\" height=\"253\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4-1024x400.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4-300x117.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4-768x300.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4-1536x600.png 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-4.png 1701w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption class=\"wp-element-caption\">the different gears i laser cut and tested<\/figcaption><\/figure>\n\n\n\n<p><br>Got 3d ptinted prototype frame and wheels. <br><\/p>\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\/2023\/10\/bilde-2.png\" alt=\"\" class=\"wp-image-8203\" width=\"440\" height=\"321\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-2.png 743w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-2-300x219.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><figcaption class=\"wp-element-caption\">the frame<\/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\/2023\/10\/bilde-3.png\" alt=\"\" class=\"wp-image-8204\" width=\"412\" height=\"331\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-3.png 794w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-3-300x241.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-3-768x617.png 768w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><figcaption class=\"wp-element-caption\">basket to hold the circuit board underneath<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Summary:&nbsp; Ilir Bylykbashi This week John and I decided to establish a plan B in case it is not possible to create a functional algorithm for the micro-mouse project. We want to be able to drive the mouse with another micro:bit. We are now in the stage of establishing it to work correctly, and this [&hellip;]<\/p>\n","protected":false},"author":96,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/8134","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\/96"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8134"}],"version-history":[{"count":3,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/8134\/revisions"}],"predecessor-version":[{"id":8206,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/8134\/revisions\/8206"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}