{"id":7896,"date":"2023-10-06T12:40:06","date_gmt":"2023-10-06T11:40:06","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=7896"},"modified":"2023-10-06T13:15:48","modified_gmt":"2023-10-06T12:15:48","slug":"micromind-autonomous-week-7","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=7896","title":{"rendered":"MicroMind Autonomous &#8211; Week 7"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/bNVDGoOQpXoyQPQ1wSKIvil6iVGu0KM5IGJoEwe49uyBjcF8O79LJ59OUUDRlIngb8rr8yhKd3ImICn5JojUsriQRJcR2IIpzpYdI9apjFsQL7VAaJESM3Ll4Q52p7ON9T9J7HhOt92CeB45QNDRCGI\" alt=\"\" \/><\/figure>\n\n\n\n<p>Group weekly reports<\/p>\n\n\n\n<p><strong>Ilir Bylykbashi<\/strong><\/p>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<p>This week, we had a presentation on Monday that took several hours. Due to the presentation, I didn&#8217;t have the opportunity to work further on the project that day.<\/p>\n\n\n\n<p>Throughout the week, my focus has been on establishing radio communication between two micro:bit units. Currently, we have two micro:bits, and we want to utilize both of them. I&#8217;ve been working on creating code that can transfer real-time information from one micro:bit to another, allowing us to receive sensor or motor data. This required making modifications to the main code, setting up loops, and configuring values to ensure smooth operation.<\/p>\n\n\n\n<p>We successfully achieved our objective, creating a system that operated as if we had a single micro:bit connected at all times, with the transmitted information remaining consistent. To achieve this, we introduced the following code:<\/p>\n\n\n\n<p><strong>#include &lt;Arduino.h&gt;<\/strong><br><strong>#include &lt;NRF52_Radio_library.h&gt;<br><\/strong> <img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"511\" src=\"https:\/\/lh6.googleusercontent.com\/fgnAIzDWq_KWla6ksJ76371HJdTxAmobas_fQsTw9qNh4dIn9ke48qtYUbkoj0Zs4oDGjd1Xu8LFX9VbePybBjAbZivtwOr4A0JqWbfoBFLHgV5Gfp39TnzOx0d67Ku4ozcKSnAIAQLi40qR4O4nL8g\"><\/p>\n\n\n\n<p>We&#8217;ve included a screenshot of the receiver&#8217;s code in this report, but please note that the main micro:bit&#8217;s code is considerably more extensive and intricately integrated into the project, making it impractical to include it here.<\/p>\n\n\n\n<p><strong>Challenges:<\/strong><\/p>\n\n\n\n<p>Our progress was not without its challenges. One significant challenge was managing the power consumption during radio transmission. Initially, we set the transmit power to its default value, which was 4. This decision resulted in inconsistent sensor readings. While various factors could have contributed to this issue, reducing the power settings proved to be a practical solution. This adjustment resolved the issue with receiving unstable sensor readings.&nbsp;<\/p>\n\n\n\n<p>Moreover, we recognized that higher transmission power could lead to signal interference within our micro:bit setup, prompting us to opt for a lower power setting as the most suitable solution for the time being.<\/p>\n\n\n\n<p>In conclusion, this week marked significant progress in our project as we achieved seamless radio communication between micro:bit units. Despite initial challenges related to power consumption and signal interference, we have successfully laid the foundation for more advanced functionalities.&nbsp;<\/p>\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><strong>Summary:<\/strong><\/p>\n\n\n\n<p>This week I have been updating some of the existing code in our project. While going over our code I found a simple, but \u201cstupid\u201d fault in our StateMachine.cpp where after doing NumberOfReadings and storing the average in the result variable we did actually take a new single reading to determine which state to transition to. Updated it to instead be based on the result variable that we generate.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/zwOffMZpCEsiJu6WqPta5tho2Hg56Lwbnx_4RIHWpt0Y5cZeg78-KR_GFdMg5xGN_ZASmvgEWZRHSsnNQ7XN0U9sfOSQyUhm0oPDumzVhYUYrkzm_nHuiP8elW5xLBrgmjLfkab3NvxATHoJPEPhwRQ\" alt=\"\" \/><\/figure>\n\n\n\n<p>Also added mostly for testing now turn left, right and around functions that we will be needing during traversal and speedrunning in the maze. A challenge tied to the turning is to make sure we implement it in a way that we are confident the mouse will stop at the correct orientation more or less at least.<\/p>\n\n\n\n<p>As I had the two micro:bits I tested the implementation Ilir did in our project and joined working with the implementation.<br><\/p>\n\n\n\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=8qQu5YN8I4o\">Video of output:<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=8qQu5YN8I4o\">https:\/\/www.youtube.com\/watch?v=8qQu5YN8I4o<\/a><\/p>\n\n\n\n<p>Ahead now I will turn my focus to implementing mapping. Storing cell values with different conditions\/values to represent walls in cells which we will be using to map the maze. I imagine we will do a step-by-step solution to implementing the algorithm to solve the maze, implementing a mapping system for the cells is perhaps a good point to start.<\/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:\u00a0<\/strong><\/p>\n\n\n\n<p>Modelled two versions of the labyrinth, one 18&#215;18 and one 36&#215;36. For walls, Daniels&#8217; posts are intended to be slightly modified for use in this model I have designed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"595\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-1024x595.png\" alt=\"\" class=\"wp-image-7903\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-1024x595.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-300x174.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-768x446.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-1536x892.png 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-46-2048x1190.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-1024x603.png\" alt=\"\" class=\"wp-image-7904\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-1024x603.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-300x177.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-768x452.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-1536x904.png 1536w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/image-47-2048x1206.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>further modified and prepared the platform for the mouse and some covers for 3D printing for next week. Also started making a part to adjust motor placement\/tightening against the drive wheel.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/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><\/p>\n\n\n\n<p>Modeled 18X18 maze<\/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-1.png\" alt=\"\" class=\"wp-image-7900\" width=\"317\" height=\"420\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-1.png 552w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-1-227x300.png 227w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><figcaption class=\"wp-element-caption\">the posts slide on and have a small clip that holds it in place, and 4 small pegs that hold tiles together in corners. <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"689\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde.png\" alt=\"\" class=\"wp-image-7898\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde.png 896w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-300x231.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/10\/bilde-768x591.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong>Sigurd S\u00e6ther\u00f8 Spangelo<\/strong><\/p>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>(awaiting submission)<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Group weekly reports Ilir Bylykbashi Summary:&nbsp; This week, we had a presentation on Monday that took several hours. Due to the presentation, I didn&#8217;t have the opportunity to work further on the project that day. Throughout the week, my focus has been on establishing radio communication between two micro:bit units. Currently, we have two micro:bits, [&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-7896","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7896","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=7896"}],"version-history":[{"count":4,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7896\/revisions"}],"predecessor-version":[{"id":8673,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7896\/revisions\/8673"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}