{"id":3445,"date":"2019-09-24T17:44:15","date_gmt":"2019-09-24T16:44:15","guid":{"rendered":"http:\/\/dronesonen.usn.no\/?p=3445"},"modified":"2019-10-22T15:00:29","modified_gmt":"2019-10-22T14:00:29","slug":"late-week-38-post-group-6","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=3445","title":{"rendered":"Late week 38 post Group 6"},"content":{"rendered":"\n<p>We didn&#8217;t have the right URL, to get into dronesonenens website, so this post is a bit late. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The parts we ordered have been delayed, therefore we spent this week testing different arduino objects that we might need.<br><\/p>\n\n\n\n<p><strong>Servo<\/strong><\/p>\n\n\n\n<p>We tested a servo engine connected to arduino to use for our trigger system.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/P7lL_V1j2RnY_7q847o9-c453m2ryApM8kpxkiW5ll1A3u5MLBbVq1wD13N4AWLt9NW8hsLvaTGo79o1axjaaidB8J3QcvVIb4pDGNm5gzYSv_zPEyErCqyMqwuVG84RnskKsCJa\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Figure 1: Servo engine and button<\/em><br><\/p>\n\n\n\n<p>The system works so that when you push the button, the servo engine will trigger the trigger on the pellet gun. We are however concerned that the servo used here does not have enough power to actually push in the trigger.<br><\/p>\n\n\n\n<p>We tested if the MicroServo SG90 was powerful enough to press the trigger, and it was not. So we will need to use a more powerful servo engine.<br><\/p>\n\n\n\n<p><strong>Ultrasonic sensor<\/strong><br><\/p>\n\n\n\n<p>As mentioned above, most of our parts is delayed, so we are using our time now to test the parts we have at school.&nbsp;<br><\/p>\n\n\n\n<p>We got the ultrasonic sensors to work and we are planning to use them for automatic driving. It emits an ultrasound at 40 000 Hz which travels through the air and if there is an object or obstacle on its path It will bounce back to the module.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/yhM57J-mwLooaaoIioMhvcela8Relw4ujgnWoiVJ4n6LzLh7FljI7lHjsIQ74q46XuTfXVH9bJZC_3mZJ0cm3mS-8SzWKmlJhR8kBpSmP02DGi_vet0ZM2u-eCdqvcIa8Mi1dj3H\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 2: Overview of how the sensor works<\/em><\/p>\n\n\n\n<p>We will use three sensors. They\u2019ll be placed on the front and on both sides. The side ones will be mounted on 45\u00ba with the symmetry axis. With that distribution we can prevent all possible obstacles. The next figure shows the electronic schematic.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/CKMqOM1-rJ_g9wb6BUFJFmTCsS7_JYaYtcJ_1qNxfFUsJxMAWlX5kWJT3ENsDA8ydflQuUbEsCqmVWDVKHerIFRaLpHaEK-P6W3qoKwnbJR0Dlql6i3vwDvb9VHnpiIPNdUeh-PV\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 3: Electronic schematic and connections to Arduino<\/em><\/p>\n\n\n\n<p>According with the previous connections, we\u2019ve implemented the Arduino code. In general terms, the program makes the sensors generate a sound and later process the return of it. We do the previous sequence following the protocol of the sensor and giving the instructions needed.<\/p>\n\n\n\n<p>After the hardware and software implementations ready we can make some test. But before, we only could test the two side sensors because in the school we only found two. It\u2019s for this reason that in the measure \u201cDistanceFront\u201d all the time we are going to see a 0 (Nothing Connected).<\/p>\n\n\n\n<p>The first test was by the left side zone. We were moving and approaching the obstacle from A to B but only in the left sensor range. The following figures show the read values by the sensor.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/iNoqebyE80MMj-ByUVEoPjYe8t5T9JG7TuC8raAXcDd-RRNBmu1T5sqkjnrcCBx5EZbO-2hTgqpBFUNBMMjWSDPb9VWFTx70fX1RrUqVT04Tob4IyxS-25cRNoAcjWO2pWCpiqxk\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 4: Obstacle and sensor response in position A in the left side<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/bSZgW84WeUv7bm7XLiITaCUyIBKkRDg4YGD59U9g3V0LSb8h42B2wN1PiWz9PP-yAcJQlOHwZDnJD7GfVlMxCNiGvfjEMfQ1iY2q_WNOUoWWKU46XLudFk5SJva4rHYYoK_AKjCu\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 5: Obstacle and sensor response in position B in the left side<\/em><\/p>\n\n\n\n<p>The second test was by the front zone. We were moving and approaching the obstacle from A to B but now in all the sensors range. The following figures show the read values by the sensors.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/oJ74DWPG7kxC2WMvJRRngP01nVc6z2_JIGy-bDtSL4JkKkgdL6bmqgcZQcBbnAWwkB-nRidYIV2pzk8ZYXa_3MX2o-FoFyciSYEvMf9oLrjwCIvRmg31hfW790gMkwgEsqfOGxBe\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 6: Obstacle and sensor response in position A<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/jJptqhR8QUmhuKqfx5wXbkNKaA8Q0rDzZ4WC1jJzz9461VM85pQ93iRONswU-4RqsKeQatRFzms8p6YDPra8R-DPyB1gyLYb4FzKJPMm3_OOiFsAXS2hVPSKEsuxe2Bj_KkUBhCv\" alt=\"\" \/><\/figure>\n\n\n\n<p><em>Fig. 7: Obstacle and sensor response in position B<\/em><\/p>\n\n\n\n<p>To conclude, we verify the correct running of the sensors. We consider the ultrasonic step done and we\u2019re ready for the next one. What is synchronize the two motors according with the ultrasonic data. We\u2019re going to fix a threshold in the distance and then make the motors turn in the correct direction. However, we found that we could have problems with the sensors range. Therefor we\u2019re going to find the perfect orientation and place for it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/YfaTxhY7uomuVJ235Vw1uIIINoWHMTYi4ghM4YxBvh8csHe_96lPYW-BsOLh0sspW557ezJKwxNxm95O7Dv5VWcWF9WyNpfcESuj6r_dxStK1cYekv8GfQvQ13WgImfsLqXPahc4\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>We didn&#8217;t have the right URL, to get into dronesonenens website, so this post is a bit late. The parts we ordered have been delayed, therefore we spent this week testing different arduino objects that we might need. Servo We tested a servo engine connected to arduino to use for our trigger system.&nbsp; Figure 1: [&hellip;]<\/p>\n","protected":false},"author":69,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3445","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3445","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\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3445"}],"version-history":[{"count":1,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3445\/revisions"}],"predecessor-version":[{"id":3446,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/3445\/revisions\/3446"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}