{"id":2225,"date":"2019-11-27T11:38:04","date_gmt":"2019-11-27T11:38:04","guid":{"rendered":"https:\/\/4tronix.co.uk\/blog\/?p=2225"},"modified":"2024-01-02T13:20:15","modified_gmt":"2024-01-02T13:20:15","slug":"programming-m-a-r-s-rover-in-microsoft-makecode","status":"publish","type":"post","link":"https:\/\/4tronix.co.uk\/blog\/?p=2225","title":{"rendered":"Programming M.A.R.S. Rover in Microsoft Makecode"},"content":{"rendered":"<h2>Makecode for 4tronix M.A.R.S. Rover<\/h2>\n<h3>Installing the Extension<\/h3>\n<p>In the Makecode editor, select &#8220;Advanced&#8221; and then &#8220;Extensions&#8221;. Alternatively click on the gear icon and select &#8220;Extensions&#8221; from there<\/p>\n<p><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Advanced.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2228 alignnone\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Advanced-300x240.jpg\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Advanced-300x240.jpg 300w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Advanced.jpg 391w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Extensions.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2229 alignnone\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Extensions-170x300.jpg\" alt=\"\" width=\"170\" height=\"300\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Extensions-170x300.jpg 170w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/Extensions.jpg 266w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/a><\/p>\n<p>Then enter Rover or Mars Rover in the seach bar<\/p>\n<p><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverExtension03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2648 size-full\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverExtension03.jpg\" alt=\"\" width=\"602\" height=\"692\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverExtension03.jpg 602w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverExtension03-261x300.jpg 261w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>Click on the extension and it will be loaded into your Makecode editor. You will now have a rocket ship icon, Rover, with several sub-sections<\/p>\n<p><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverBlocks.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2231 alignnone\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverBlocks-300x195.jpg\" alt=\"\" width=\"300\" height=\"195\" srcset=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverBlocks-300x195.jpg 300w, https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverBlocks.jpg 323w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverSections.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2232 alignnone\" src=\"https:\/\/4tronix.co.uk\/blog\/wp-content\/uploads\/2019\/11\/RoverSections.jpg\" alt=\"\" width=\"212\" height=\"283\" \/><\/a><\/p>\n<h3>Calibrating the Servos<\/h3>\n<p>Before we start using the Rover we should calibrate the servos so that they run directly.<\/p>\n<p>Load this project into your Makecode editor:\u00a0<span style=\"color: #800080;\">https:\/\/makecode.microbit.org\/_Mpt6xpCRF0EK<\/span> by selecting &#8220;Import&#8221;, then &#8220;Import URL&#8221;<\/p>\n<p>Alternatively, download it from <a href=\"https:\/\/4tronix.co.uk\/rover\/microbit-CalibrateServos.hex\"><span style=\"color: #800080;\">https:\/\/4tronix.co.uk\/rover\/microbit-CalibrateServos.hex<\/span><\/a><\/p>\n<p>This program goes round all the wheel servos and allows you to use the A and B buttons on the Microbit to set each servo to straight ahead position.<\/p>\n<p>It indicates using the LEDs which servo is being calibrated.<\/p>\n<p>When you are happy with each servo, press the A+B buttons together to store the setting and move onto the next servo. After setting all servos, simply switch off and start coding.<\/p>\n<div style=\"position: relative; height: 0; padding-bottom: 81.97%; overflow: hidden;\"><iframe style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\" src=\"https:\/\/makecode.microbit.org\/---run?id=_Mpt6xpCRF0EK\" frameborder=\"0\" sandbox=\"allow-popups allow-forms allow-scripts allow-same-origin\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Makecode for 4tronix M.A.R.S. Rover Installing the Extension In the Makecode editor, select &#8220;Advanced&#8221; and then &#8220;Extensions&#8221;. Alternatively click on the gear icon and select &#8220;Extensions&#8221; from there Then enter Rover or Mars Rover in the seach bar Click on the extension and it will be loaded into your Makecode editor. You will now have &hellip; <a href=\"https:\/\/4tronix.co.uk\/blog\/?p=2225\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Programming M.A.R.S. Rover in Microsoft Makecode<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-2225","post","type-post","status-publish","format-standard","hentry","category-bbc-microbit"],"_links":{"self":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2225"}],"version-history":[{"count":7,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225\/revisions"}],"predecessor-version":[{"id":2649,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225\/revisions\/2649"}],"wp:attachment":[{"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4tronix.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}