Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP
Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

INTRODUCTION

OSOYOO Robot Car for Micro Bit has a built-in L293D motor driver chip. When using, you just need to insert the micro:bit main board into the card slot, and send the test code to micro:bit main board. Insert well the 9V battery into the battery box to control the two motors rotate, thus control the micro:bit robot car move.

In this lesson, we will show how to assemble a simple robot car and use Makecode to program its movement.

Hardware Prepare

● 1 x USB cable

● 1 x micro:bit board

● 1 x OSOYOO Robot for Micro bit

Download code:

Please click “edit” as the the following window to enter the makecode, and you can see the sample code from OSOYOO. You can click “download” to download the whole code in .hex file in your computer. Then connect the micro:bit with the computer through USB cable, and the computer will pop up a U disk and send the .hex file to your micro:bit

Note: Please click here to learn more how to program the basic robot car step by step

Run the basic robot

Send well the test code to micro:bit main board, then insert the micro:bit main board into the robot, and connect a 9v battery into the battery box.
Turn the POWER switch ON. The micro:bit car will go forward for 1 second, backward for 1 second, turn left for 1 second and turn right for 1 second, stop for 1 second, repeatedly.

Program the Basic Robot step by step

Step 0: Go to url: https://makecode.microbit.org, click New Project

Then the micro:bit is connected to the computer through USB, and the computer will pop up a U disk and click the URL in the U disk to enter the programming interface. Input this URL https://github.com/osoyoo/OSOYOO-MICRO-BIT-CAR to get the package.

Analyse the code

If we want to adjust the time or speed of robot movement in the laboratory, we can make it by selecting the corresponding expansion modules and changing the parameters on these modules.