{"id":10832,"date":"2025-09-24T10:43:35","date_gmt":"2025-09-24T09:43:35","guid":{"rendered":"https:\/\/dronesonen.usn.no\/?p=10832"},"modified":"2025-09-24T10:43:35","modified_gmt":"2025-09-24T09:43:35","slug":"week-5-group-7","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=10832","title":{"rendered":"Week 5 &#8211; Group 7"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Wang<\/h3>\n\n\n\n<p>Zephyr<\/p>\n\n\n\n<p>This week I tried to set up the Zephyr environment. I started by downloading CMake, Ninja, and Git. Then I managed to get west working so I could build the firmware for the micro:bit. <code>winget install Kitware.CMake&lt;br&gt;winget install Ninja-build.Ninja&lt;br&gt;winget install Git.Gitpip install westwest init -m &lt;https:\/\/github.com\/zephyrproject-rtos\/zephyr<\/code>&gt; Then I created a <code>CMakeLists.txt<\/code>, <code>prj.conf<\/code>, and <code>main.c<\/code>. Then I tried to run this code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;zephyr.h&gt;\n#include &lt;sys\/printk.h&gt;\n\nvoid main(void)\n{\n    while (1) {\n        printk(\"Hello World from micro:bit v2!\\\\\\\\n\");\n        k_sleep(K_SECONDS(1));\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>But I ran into problems when trying to run it. <code>west build -b bbc_microbit_v2<\/code> \u2014 everything went fine until the end where it seemed like it couldn\u2019t find <code>#include &lt;zephyr.h&gt;<\/code> and <code>#include &lt;sys\/printk.h&gt;<\/code>. That\u2019s as far as I got with this this week. <a href=\"https:\/\/docs.zephyrproject.org\/latest\/boards\/bbc\/microbit_v2\/doc\/index.html\">micro:bit V2 \u2014 Zephyr Project Documentation<\/a><\/p>\n\n\n\n<p>The goal last week was to get the car to drive forward, but that failed with the Arduino code we tried. However, we succeeded by using <a href=\"https:\/\/github.com\/DFRobot\/pxt-motor\">https:\/\/github.com\/DFRobot\/pxt-motor<\/a> and Microsoft MakeCode for micro:bit. In real-time systems, we got the car to move forward and backward and turn a bit using ADA and the example code available at <a href=\"https:\/\/github.com\/aiunderstand\/Ada-Embedded-Project-MicroBitV2\">https:\/\/github.com\/aiunderstand\/Ada-Embedded-Project-MicroBitV2<\/a>. So for this week, I\u2019m unsure what the goal should be, other than maybe continuing to try to set up the Zephyr environment and see if I can get the car to move using it.<\/p>\n\n\n\n<p>But something that has been figured out is that the board we\u2019re using <a href=\"https:\/\/www.dfrobot.com\/product-1738.html\"><strong>DFR0548<\/strong><\/a> only uses 2 pins to communicate with the motors, pin 19 and 20.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Oskaras<\/h2>\n\n\n\n<p><strong>For this week:<\/strong><br>This week our goal was to get the car to drive forward. We spent some time figuring out how to communicate with the micro:bit. At first, we tried to apply Arduino logic to it with different pins, but towards the end we found the datasheet for the micro:bit driver board. There we saw that we only need two connections, SDA and SCL, to communicate with the rest of the board.<\/p>\n\n\n\n<p>For better overview, I also created a new scrum board, which just gives a clearer view of the whole process and makes it much easier to present.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"479\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-57.png\" alt=\"\" class=\"wp-image-10870\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-57.png 975w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-57-300x147.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-57-768x377.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"329\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-58.png\" alt=\"\" class=\"wp-image-10871\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-58.png 975w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-58-300x101.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-58-768x259.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Henning<\/h2>\n\n\n\n<p><strong>For this week:<\/strong><br>I have sadly been a little sick, so my work got limited. I did manage to get some work and improvements done before i took some time off. What i have done so far is that i have extended the buttons on the GUI further. So for the button &#8220;show data&#8221;, i have now coded so when pressed, it will open a new dashboard where our data will be shown. <\/p>\n\n\n\n<p>The other button that i am currently working on is the &#8220;Connect to AI&#8221; button. Where i do think i have the majority of code setup, and that i would just need to add an API Key for it to work.<\/p>\n\n\n\n<p>Here you can see the progress in coding done so far:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"390\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-59.png\" alt=\"\" class=\"wp-image-10873\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-59.png 862w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-59-300x136.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-59-768x347.png 768w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"413\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-60-1024x413.png\" alt=\"\" class=\"wp-image-10874\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-60-1024x413.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-60-300x121.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-60-768x310.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-60.png 1345w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"339\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-61.png\" alt=\"\" class=\"wp-image-10875\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-61.png 782w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-61-300x130.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-61-768x333.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"655\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-62-1024x655.png\" alt=\"\" class=\"wp-image-10876\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-62-1024x655.png 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-62-300x192.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-62-768x492.png 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-62.png 1250w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"429\" src=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-63.png\" alt=\"\" class=\"wp-image-10877\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-63.png 786w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-63-300x164.png 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2025\/09\/image-63-768x419.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/figure>\n\n\n\n<p><strong>Progress for next week:<\/strong><br>I will do more research on API Keys and how to set it up securely. Secondly its going to be discussed in the group of which AI we would want to focus on. For the &#8220;Show Data&#8221; button, i will read more on the sensors and how i could implement those data results into the dashboard i have created. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00d8ivind<\/h2>\n\n\n\n<p>Learning by failing? A lesson learned from week five is that it can be quite costly. This week we started by finally craft a code that seemed to work with the motor board. I take pride in the fact I contributed to that process. Nevertheless. Me, myself, I take full responsibility. But thankful that the others present in Dronesonen, who witnessed me mismanage the power supply witch led me to fry at least one critical part on the motor board. Saw that the power supply was set to the correct 5V when connected. I have not come to an conclusion about what went wrong, but I\u2019m curious so I will be humble enough too seek answers on that episode. Monday Steven took me to a lab to scout for parts needed for our project. I really enjoyed the chance to see the car that was referenced the first lecture. Makes it somewhat feel pointless to build our project. But then again, not really. I am excited with this project. Steven gave me a high-quality DC-DC step-down converter we can borrow for the project, along with a voltage tester with buzzer I might find useful or fun to implement. I\u2019ve still not decided for the BMS. It has not been the most productive week, but maybe I just don\u2019t recognize the small steps I have done in this process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Zardasht<\/h2>\n\n\n\n<p>After trying many different methods to get the Raspberry Pi camera working, I eventually had to reset the Raspberry Pi and reinstall the necessary packages and updates. In the end, I managed to get the camera running with the help of AI. I also experimented with some code to make the camera smarter, such as color recognition and shape recognition. However, these features didn\u2019t seem to work properly. In addition, I tested an ultrasonic sonar, but things didn\u2019t go as planned\u2014although I ran the code, no values appeared on the screen. I\u2019ve been working on this project for several days, spending about two hours each day. Even though some things didn\u2019t work as expected, I found it exciting and educational to work with the Raspberry Pi.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wang Zephyr This week I tried to set up the Zephyr environment. I started by downloading CMake, Ninja, and Git. Then I managed to get west working so I could build the firmware for the micro:bit. winget install Kitware.CMake&lt;br&gt;winget install Ninja-build.Ninja&lt;br&gt;winget install Git.Gitpip install westwest init -m &lt;https:\/\/github.com\/zephyrproject-rtos\/zephyr&gt; Then I created a CMakeLists.txt, prj.conf, and [&hellip;]<\/p>\n","protected":false},"author":117,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10832","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/10832","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\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10832"}],"version-history":[{"count":7,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/10832\/revisions"}],"predecessor-version":[{"id":11010,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/10832\/revisions\/11010"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}