Keyestudio Micro:bit Mini Smart Robot Car User manual

Keyestudio Micro:bit Mini Smart Robot Car

Content
1. Product Description.................................................................................................................................................................. 1
2. Specifications.............................................................................................................................................................................1
3. Packing List................................................................................................................................................................................ 2
4. Installation Method...................................................................................................................................................................5
5. micro:bit Driver Installation.................................................................................................................................................... 1
6. micro:bit Example Use............................................................................................................................................................. 8
Step 1: Connect It.....................................................................................................................................................................8
Step 2: Program It.................................................................................................................................................................... 9
Step 3: Download It................................................................................................................................................................11
Step 4: Play It..........................................................................................................................................................................12
7. micro:bit Pins...........................................................................................................................................................................14
8. Learning Projects.................................................................................................................................................................... 19
8.1 Playing Music.....................................................................................................................................................................19
8.2 Micro:bit LED Matrix Display.......................................................................................................................................... 23
8.3 Motor Driving.................................................................................................................................................................... 26

8.4 Line Tracking..................................................................................................................................................................... 30
8.4.1 Test the tracking sensor...................................................................................................................................... 30
8.4.2 Line Tracking Car.................................................................................................................................................. 38
8.5 Ultrasonic Avoiding Obstacles........................................................................................................................................ 43
8.5.1 Ultrasonic Ranging................................................................................................................................................43
8.5.2 Ultrasonic Obstacle Avoiding Car....................................................................................................................... 50
8.6 Infrared Avoiding Obstacles........................................................................................................................................... 55
8.6.1 Infrared Detection................................................................................................................................................ 55
8.6.2 Infrared Obstacle Avoiding Car.......................................................................................................................... 63
8.7 Ultrasonic and Infrared Avoiding Obstacles.................................................................................................................67
8.8 Bluetooth Controlled Car.................................................................................................................................................72
8.8.1 Bluetooth Test....................................................................................................................................................... 72
8.8.2 Bluetooth Controlled Car..................................................................................................................................... 90
8.8.3 Wireless Gamepad Control..................................................................................................................................95
9. Related Resources Link....................................................................................................................................................... 114

1
1. Product Description
Here comes the educational robot based on Micro:bit programming. Micro: bit is an ARM structure microcontroller
designed by BBC. It is only half size of a credit card, onboard comes with Bluetooth, accelerometer, compass, three
buttons, 5x5 LED matrix, mainly used for teens programming education.
The Micro:bit Mini Smart Robot Car integrates ultrasonic and infrared obstacle avoidance as well as line following.
Also comes with a passive buzzer for playing music.
Moreover, supply the power by 18650 batteries, supporting charge when run out of power. You will be able to adjust
the motor speed.
This micro:bit robot is a perfect toy for kids to start learning robotics. The plug-and-play allow children to quickly
learn graphic programming in entertaining, nurturing children's interest in science and logical thinking.
2. Specifications
1) Voltage: 4.2-5.5V
2) Current: USB power supply or power supply with a capacity greater than or equal to 1A
3) Maximum power: maximum output power is 5W
4) Operating temperature range: 0-50 degrees Celsius

2
5) Dimensions: 120*90.7mm
6) Environmental attributes: ROHS
3. Packing List
No.
Item
Quantity
Image
1
Micro:bit main board
1
2
keyestudio Micro:bit smart
robot shield
(Black and Eco-friendly)
1
3
Keyestudio line tracking
sensor
(Black and Eco-friendly)
1

3
4
HC-SR04 ultrasonic sensor
1
5
JST PH2.0MM-5PIN
double-head cable length
55MM
1
6
W420 steel universal wheel
1
7
18650 red battery 3500mah
(self prepare)
1
8
N20 motor wheel
diameter:43mm ; width: 19mm ;
hole diameter: 3mm type D
ABS plastic + rubber yellow
2

5
4. Installation Method
a. Firstly prepare all the assembly components. Place them together before install the micro:bit robot car.

6
b. The first step should mount 2pcs hex copper pillar and 2pcs M3 Nickel plated nut on the front of car shield.
c. Connect the JST PH2.0MM-5PIN double-head cable to line tracking sensor.
Front view
Back view

7
d. Then fix the line tracking sensor and W420 steel universal wheel onto the hex copper pillar on the car shield using
2pcs M3*6MM round-head screws.

8

9

10
e. After that, mount the 2pcs N20 motor wheels into the DC motor.

11

12
f. Now, we insert the ultrasonic sensor and micro:bit main board into the car shield.

13

14
g. Connect the JST PH2.0MM-5PIN cable connected to line tracking sensor to the car shield.

15
h. Finally, insert the 18650 battery into the car shield.
i. Congrats! The mini micro:bit robot car is installed well. Pretty simple.

2
Table of contents
Other Keyestudio Robotics manuals