{"id":11015,"date":"2025-09-28T22:51:33","date_gmt":"2025-09-28T21:51:33","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=11015"},"modified":"2025-10-05T18:48:00","modified_gmt":"2025-10-05T17:48:00","slug":"pickmebot-week-5","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=11015","title":{"rendered":"PickMeBot-week 5"},"content":{"rendered":"\n<p><strong>Th\u00e9o<\/strong>:<\/p>\n\n\n\n<p>This week I succeeded in having good feedback from the sensor with this and this basic assembly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"704\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-91.png\" alt=\"\" class=\"wp-image-11017\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-91.png 564w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-91-240x300.png 240w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"582\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-92.png\" alt=\"\" class=\"wp-image-11018\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-92.png 559w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-92-288x300.png 288w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-95-768x1024.png\" alt=\"\" class=\"wp-image-11021\" style=\"aspect-ratio:3\/4;object-fit:cover;width:286px;height:auto\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-95-768x1024.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-95-225x300.png 225w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-95-1152x1536.png 1152w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-95.png 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-96-768x1024.png\" alt=\"\" class=\"wp-image-11022\" style=\"aspect-ratio:3\/4;object-fit:cover;width:287px;height:auto\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-96-768x1024.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-96-225x300.png 225w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-96-1152x1536.png 1152w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-96.png 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>Next step will be to implement all four&nbsp;sensors around the car and instead of changing the smiley face, change the direction of the car.<\/p>\n\n\n\n<p><strong>Sondre<\/strong>:<\/p>\n\n\n\n<p>This week I focused on building a library for box detection using three ultrasonic sensors on the robot. The idea is to give the robot a simple way to decide whether it is facing a wall or a box.<\/p>\n\n\n\n<p>The method works like this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, I look at the front sensor. If the distance is above a certain threshold, the robot knows the path is clear. If it\u2019s below the threshold, then something is in the way.<\/li>\n\n\n\n<li>After that, the side sensors come into play.\n<ul class=\"wp-block-list\">\n<li>If both sides report short distances and the difference between them is small, that means the robot is facing something symmetric like a box.<\/li>\n\n\n\n<li>If one side is blocked and the other side is open, that\u2019s more typical of a wall, meaning it has hit a turn in the path.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To make the detection more stable, I used two different thresholds: one to decide that the path is blocked, and another (slightly higher) to decide it\u2019s clear again. This prevents the robot from switching back and forth too quickly when the measurements fluctuate.<\/li>\n<\/ul>\n\n\n\n<p>I also added a simple filter so that sudden jumps in the sensor data are smoothed out. That way the detection becomes more reliable in practice.<\/p>\n\n\n\n<p>Next step will be to test this logic on the course we are building, with both walls and boxes, and adjust the thresholds until the robot can tell the difference consistently. Theo has worked on the code for ultrasonic sensors. So we will need to integrate this with the logic so that it will receive real time data and not only demo numbers.<\/p>\n\n\n\n<p>The code for the logic of box detection is pasted under:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"746\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-97.png\" alt=\"\" class=\"wp-image-11023\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-97.png 558w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-97-224x300.png 224w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"739\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-98.png\" alt=\"\" class=\"wp-image-11024\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-98.png 561w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-98-228x300.png 228w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"745\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-99.png\" alt=\"\" class=\"wp-image-11025\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-99.png 565w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-99-228x300.png 228w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"562\" height=\"728\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-100.png\" alt=\"\" class=\"wp-image-11026\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-100.png 562w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-100-232x300.png 232w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"605\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-101.png\" alt=\"\" class=\"wp-image-11027\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-101.png 560w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-101-278x300.png 278w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<p><strong>Anette:<\/strong><\/p>\n\n\n\n<p>This week I have mostly been looking into the power system and how we will solve this. Our main issue is predicting the energy consumption of the components, especially for the motors. I have not been able to find the datasheets for the motors with the encoders, so we are using the information from an online retailer for now. The goal is then to make the power system with this in mind and we will test the motors at a later date when we get them. We have also been working a lot on the presentation.<\/p>\n\n\n\n<p><strong>Matias<\/strong>:<\/p>\n\n\n\n<p>This week I started working on the PCB design. We decided to include two L298 motor driver modules to control the motors efficiently. I also added the flyback diodes to the circuit. These diodes are essential because they protect the components from the voltage spikes generated when the motors are turned off a common effect caused by the inductive nature of the coils.<\/p>\n\n\n\n<p>This process helped me understand more about how to properly design motor driver circuits and the importance of adding protection elements to ensure the reliability of the system.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Th\u00e9o: This week I succeeded in having good feedback from the sensor with this and this basic assembly. Next step will be to implement all four&nbsp;sensors around the car and instead of changing the smiley face, change the direction of the car. Sondre: This week I focused on building a library for box detection using [&hellip;]<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-11015","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-pickmebot"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/11015","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\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11015"}],"version-history":[{"count":3,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/11015\/revisions"}],"predecessor-version":[{"id":11126,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/11015\/revisions\/11126"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}