{"id":1123,"date":"2016-09-12T01:09:07","date_gmt":"2016-09-12T07:09:07","guid":{"rendered":"http:\/\/www.shscomputers.com\/wordpress\/?page_id=1123"},"modified":"2019-11-20T13:55:10","modified_gmt":"2019-11-20T20:55:10","slug":"robotics-3-mbot-extention","status":"publish","type":"page","link":"https:\/\/www.shscomputers.com\/wordpress\/?page_id=1123","title":{"rendered":"Robotics 3 &#8211; mBot Part 2"},"content":{"rendered":"<p>OK, now it&#8217;s time to try some new sensors and mBot customization.<\/p>\n<h2>Challenge 1<\/h2>\n<p>Program the RGB lights so that they turn different shades of colors depending on how much light is hitting the sensor. Remember that you can&#8217;t make it too bright or you will interfere with the light sensor!<\/p>\n<p>When done, take a screenshot of your code. Crop down to just the code, please. Put your name on it and hand it in.<\/p>\n<h2>Challenge 2<\/h2>\n<p>Code a program that works as follows:<\/p>\n<ol>\n<li>The robot will wake up in the dark and start moving, not too quickly.<\/li>\n<li>The robot will use its ultrasonic sensor to avoid obstacles.<\/li>\n<li>When a flashlight shines on the bot, it stops.<\/li>\n<li>When the light moves off the robot, it wakes up and starts sneaking around again.<\/li>\n<\/ol>\n<p>When done, take a screenshot of your code. Crop down to just the code, please. Put your name on it and hand it in.<\/p>\n<h2>Challenge 3<\/h2>\n<p>Add the 6-legged kit to convert your mBot into a (cute) walking terror-bot.<\/p>\n<p>Assignment &#8211; Adjust and fine tune the linkages so that your robot moves smoothly. Then, create a program that does the following:<\/p>\n<ol>\n<li>Robot moves forward 10 hallway tiles.<\/li>\n<li>Robot turns to the left by reversing the left motor and keeping the right motor going forward.<\/li>\n<li>Robot moves forward (now pointing left) 3 hallway tiles.<\/li>\n<li>Robot stops.<\/li>\n<\/ol>\n<h2>Challenge 4<\/h2>\n<p>Have the mBot locate an object.<\/p>\n<ol>\n<li>Write a program such that the mBot will scan for and move towards a nearby object.<\/li>\n<li>When it finds the object, the mBot moves towards it, but it must stop before it hits the object.<\/li>\n<li>The mBot may need to re-scan for the object as in moves so that it can fine-tune its path.<\/li>\n<li>Choose a suitable object, such as a water bottle or pop can for the bot to locate.<\/li>\n<li>With the mBot out in the hallway, set an object down in a random location.<\/li>\n<li>This challenge is complete when your robot will find the object and stop 10cm, exactly, in front of it. The mBox must also be facing the object when it stops.<\/li>\n<\/ol>\n<h2>Challenge 5 &#8211; Sensors<\/h2>\n<p>Here we are going to add a variety of input and output devices to the mBot.<\/p>\n<ul>\n<li>Click here for the assignment document:\u00a0<a href=\"https:\/\/www.shscomputers.com\/wordpress\/wp-content\/uploads\/Challenge-5-Input-Output-1.docx\">Challenge 5 Input Output<\/a><\/li>\n<\/ul>\n<h2>Servos<\/h2>\n<p>Connect and use a servo. Mr. E will hand out servo kits and we will learn how a servo is different from a motor.<\/p>\n<h2>Final project<\/h2>\n<p>We have a choice of wrap-up activities:<\/p>\n<ul>\n<li>Robot Balloon battle.<\/li>\n<li>Robot hide and seek.<\/li>\n<li>Robot find-the thing.<\/li>\n<li>Robot Laser-tag<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OK, now it&#8217;s time to try some new sensors and mBot customization. Challenge 1 Program the RGB lights so that they turn different shades of colors depending on how much light is hitting the sensor. Remember that you can&#8217;t make it too bright or you will interfere with the light sensor! When done, take a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1110,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1123","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1123"}],"version-history":[{"count":12,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1123\/revisions"}],"predecessor-version":[{"id":1541,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1123\/revisions\/1541"}],"up":[{"embeddable":true,"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/1110"}],"wp:attachment":[{"href":"https:\/\/www.shscomputers.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}