{"id":4459,"date":"2020-11-05T16:20:01","date_gmt":"2020-11-05T15:20:01","guid":{"rendered":"http:\/\/dronesonen.usn.no\/?p=4459"},"modified":"2020-12-09T23:45:14","modified_gmt":"2020-12-09T22:45:14","slug":"week-44","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=4459","title":{"rendered":"Week 44"},"content":{"rendered":"\n<p>After a two week famine, we are cracking back at it.<br>Working on dialing our Lidar unit, fine tuning of servos, more 3d-modeling and more.<br>Looking forward to going full throttle again!<\/p>\n\n\n\n<p class=\"has-large-font-size\">Table of contents:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>pulley system <\/li><li>Stepper motor<\/li><li>Servo motor<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">1.  continuing of the pulley system: <\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.discordapp.com\/attachments\/688775845044682781\/770778785329971271\/Untitled_Artwork.png\" alt=\"\" \/><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/10\/image-49.png\" alt=\"\" class=\"wp-image-4464\" width=\"223\" height=\"308\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/10\/image-49.png 530w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/10\/image-49-217x300.png 217w\" sizes=\"auto, (max-width: 223px) 100vw, 223px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/10\/image-50.png\" alt=\"\" class=\"wp-image-4465\" width=\"193\" height=\"261\" \/><\/figure><\/div>\n\n\n\n<p>I am also considering switching to a gear based retraction system for the launch plate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Stepper motor<\/h2>\n\n\n\n<p>A stepper motor is responsible for turning the ball-bearing which in turn pulls the launch plate downwards. The stepper motor turns in certain increments<br> and keeps that position. It rotates a specific amount of degrees with a desired speed. <br> Now the stepper motor functions with our current code, but there is work to be done to calculate the physical work that it does to the springs which power<br> the launch plate. <\/p>\n\n\n\n<p>The way forward is to figure out just how much work needs to be done to the springs to actualize a given speed to the projectile. Now that comes <br> from understanding just how much work the stepper motor does by rotating, and then we can use that knowledge to figure out just how much that work speeds up our projectile.<br> At the arrival of our 3-d printed cannon we can start to look at how the stepper motor also fits onto the design.   <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"564\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-3.png\" alt=\"\" class=\"wp-image-4475\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-3.png 566w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-3-150x150.png 150w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-3-300x300.png 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><figcaption>Figure: The properties of the stepper motor used in the project<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">3.  Servo motor advancements<\/h2>\n\n\n\n<p>Further advancements have been made on the two servo motors which control the y direction of the canon. The program reads from the serial buffer and makes sure that the input received is within the usable interval of angel values. The idea here is that <br> whatever angle we desire comes in the form of a serial buffer transmission, which is then picked up by this subsystem, or program. <\/p>\n\n\n\n<p>Predicted risks to this approach is that the serial buffer may be cluttered with integers which are not desired y-angles, which might require further programming<br> to avoid. One idea to deal with this eventual problem might be to coat the y-angles in something called a flag. A flag is something which we learned about <br> in another course were packets of information sent over networks has a flag, which indicates when a packet of information starts and when it finishes. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"177\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-1.png\" alt=\"\" class=\"wp-image-4472\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-1.png 663w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/image-1-300x80.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><figcaption><br>Figure: Flag illustration to avoid serial buffer misreads <br><\/figcaption><\/figure><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"889\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/Servo-motor-code.png\" alt=\"\" class=\"wp-image-4473\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/Servo-motor-code.png 500w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/Servo-motor-code-169x300.png 169w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Figure: Servo motor code<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4. LiDAR<\/h2>\n\n\n\n<p>Since I struggled with Arduino mega 2560 and liDAR and the problem was that when I used to run the code, which was to calculate distance, then printed random character that had no meaning and as we see in the picture below.<br>\nAfter a lot of web searching, I figured out that to use Arduino mega and a LiDAR, you need a logic converter. I was still a little unsure about that problem, so then I got to talk to Steven Boss about the issue. Steven Boss was also not sure regarding this problem. after a few minutes of searching, so he came with a solution that it is better to use Arduino Nano. Then I got borrowed it from Steven Boss, and we faced a new problem. This time my laptop didn&#8217;t support the Arduino Nano and needed a new USB port, which we got installed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/123333536_374819873958862_7268325097659180525_n-1-768x1024.jpg\" alt=\"\" class=\"wp-image-4479\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/123333536_374819873958862_7268325097659180525_n-1-768x1024.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2020\/11\/123333536_374819873958862_7268325097659180525_n-1-225x300.jpg 225w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>Arduino Serial Monitor<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After a two week famine, we are cracking back at it.Working on dialing our Lidar unit, fine tuning of servos, more 3d-modeling and more.Looking forward to going full throttle again! Table of contents: pulley system Stepper motor Servo motor 1. continuing of the pulley system: I am also considering switching to a gear based retraction [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,62],"tags":[79,82,77],"class_list":["post-4459","post","type-post","status-publish","format-standard","hentry","category-bachelorboys","category-smartsystems2020","tag-cannon","tag-fenrir","tag-pulley"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/4459","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\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4459"}],"version-history":[{"count":7,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/4459\/revisions"}],"predecessor-version":[{"id":4512,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/4459\/revisions\/4512"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}