{"id":7787,"date":"2023-09-29T13:08:01","date_gmt":"2023-09-29T12:08:01","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=7787"},"modified":"2023-09-29T15:47:18","modified_gmt":"2023-09-29T14:47:18","slug":"micromind-autonomous-week-6","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=7787","title":{"rendered":"MicroMind Autonomous &#8211; Week 6"},"content":{"rendered":"\n<p class=\"has-text-align-center\">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<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-130-1024x558.png\" alt=\"\" class=\"wp-image-7790\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-130-1024x558.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-130-300x164.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-130-768x419.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-130.png 1179w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This week has been more demanding than the previous weeks as it is very close to the first presentation and since i have been appointed the group leader i have had to set some deadlines in when things should be due. I also have also stiched up the reports together and worked a lot with the powerpoint presentation. <\/p>\n\n\n\n<p>As part of the software development with John, we have focused on getting the sensors to work together with motors. We have managed to create software that alters the motor speed, so it is giving the same power to each motor, and that it stops, and reverses based on the criteria that we have set for the sensor. We have also gotten out of the Unity simulation that we wanted to create, and instead used a simulation that is possible to get on the internet called the MMS Simulation. <\/p>\n\n\n\n<p>This simulation gives us some walls and cells to get through where we implement a code for the algorithm to make the mouse move through it. Here is the maze that is provided, and we also get a simple program to run the basics of the program, to visually illustrate how the mouse goes through the course. By using these codes, we have managed to make an example algorithm that gives us the possibility to go through a course, however, it is not functional in the way that we want yet so it needs to be worked with even more.<\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:33% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"410\" height=\"426\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-128.png\" alt=\"\" class=\"wp-image-7788 size-full\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-128.png 410w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-128-289x300.png 289w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p>Simulation maze in order to see how the mouse would function in a similar scenario. <\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:33% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"427\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-129.png\" alt=\"\" class=\"wp-image-7789 size-full\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-129.png 414w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-129-291x300.png 291w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-text-align-center has-large-font-size\">Code to get the mouse movement in the MMS simulation<\/p>\n<\/div><\/div>\n\n\n\n<p>As we just switched over to this code, we have not fully implemented the correct code but currently the result we get is as follows. The mouse goes through all the cells and then finds the fastest way back. The green cells are the ones that it went through first, then the red ones are the ones which it goes through on the end run to find the fastest way to the middle.<br><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:34% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"406\" height=\"408\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-131.png\" alt=\"\" class=\"wp-image-7791 size-full\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-131.png 406w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-131-300x300.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/image-131-150x150.png 150w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p>Illustration on how the maze is after a run<\/p>\n<\/div><\/div>\n\n\n\n<p>We have also put together some of the components so we can try to see the functionality of the robot and how our code would work. <\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:51% auto\"><figure class=\"wp-block-media-text__media\"><video controls src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2023\/09\/MicroMind-Autonomous-Prototype-1.mp4\"><\/video><\/figure><div class=\"wp-block-media-text__content\">\n<p>Video of how our sensor and motor are working with the code that we have set it. The motors have also been calibrated correctly so the wheels will move at the same speed even though you give the wheels more power. <\/p>\n<\/div><\/div>\n\n\n\n<p>Additionally, we also have more code to show which John and I have created together. This will be shown from his example. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong><br>John Frederick L\u00e6rum<\/strong><\/p>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<p>This week started off by continuing from last week working on the code for the Micro:bit V2<strong>. <\/strong>With the help of Steven on Monday and debugging with the oscilloscope we finally got on the right path as to controlling the motors. So this week the main focus has been on improving the code as to make the motors drive, sense and switch states accordingly. The code i am referring to can be found on our Github in the MicroMind folder: <a href=\"https:\/\/github.com\/Joffeey\/MicroMind_Autonomous\/tree\/main\/MicroMind\">https:\/\/github.com\/Joffeey\/MicroMind_Autonomous\/tree\/main\/MicroMind<\/a><\/p>\n\n\n\n<p>I have also been looking at how many readings we could and should do. It takes almost no time to do a single reading, but the value will fluctuate. Tested with different amounts of readings before doing an average and found the value to be much more stable that way.<br><br>Example from the StateMachine.cpp<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/ZNM4aH9xXl7rFJbPGrwCpM-yMdYKqX1aXpZ4o0QiBCmwBJr9jVnW86-rFmu69bm00r5SAOg-LisZEM1-9P1amu2gZllPf4ww6s9vhX_eWUGaGnADFi__mudc2sIKa07gt8xu0txIi4ON_jOryVR13ck\" width=\"480\" height=\"692\"><\/p>\n\n\n\n<p>Here\u2019s an example of the output from the terminal where we can see the time it took for 100 readings and the average value while I was moving my hand closer and further away from the sensor. Also added some prints to see which state we are currently in for debugging.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"457\" src=\"https:\/\/lh6.googleusercontent.com\/-3A_TQ8-q0uUGz2tWoiRBZoohQzS6KoHwsOOn-n9j-2_uCutcJEYgKvIvZ-h3fLSfQLQtixzrtYz2FKu-cRBxQBqgt53FU_w3qqK4cOgm_6XbOExK95vXoCXFzKfnVGniQtg0ljFuk2ROd7r2GHziTk\"><\/p>\n\n\n\n<p>Once we drove both motors and we tested and had verified, we started to assemble a simple prototype with the platform and wheels Thomas and Daniels made. Which resulted in the prototype displayed in the video that Ilir posted. <\/p>\n\n\n\n<p>Sadly for now the motors don&#8217;t have enough torque to drive when placed on a surface, but the wheels spin as expected in the different states if we hold it up. Once we power the motors correctly we will have a more complete prototype to show off.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong><br>Sigurd S\u00e6ther\u00f8 Spangelo<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\">Waiting submission<\/p>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong><br>Thomas Frimann<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-center\">Waiting submission<\/p>\n\n\n\n<p><strong>Summary:&nbsp;<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p><strong><br>Daniels Blomnieks<\/strong><\/p>\n\n\n\n<p>Redesigned the driving wheels a little bit. we still aren&#8217;t completely sure how we want to make the tracks. We thought of a different frame design and a shell that goes around the mouse.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/v7SSPfCZAN2bbWq9Zz6u-L4f7RhYKzQ1iqnoC5YWnaBejFuPQ0PyEDKDp4hSz8X33rD4pZSEuBrnucB_ThzQTgCzUD_EsVWgw2fp-uTXYJR5vUc2wpOIx8bO6AH7fuy7yQ8FN0bVi7za9NaL8nm1Doo\" width=\"602\" height=\"492\"><\/p>\n\n\n\n<p class=\"has-text-align-center\">Waiting submission<\/p>\n\n\n\n<p><strong>Summary:<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Group weekly reports Ilir Bylykbashi Summary:&nbsp; This week has been more demanding than the previous weeks as it is very close to the first presentation and since i have been appointed the group leader i have had to set some deadlines in when things should be due. I also have also stiched up the reports [&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-7787","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7787","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=7787"}],"version-history":[{"count":8,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7787\/revisions"}],"predecessor-version":[{"id":7805,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/7787\/revisions\/7805"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}