KS4034 Keyestudio micro bit 4WD Mecanum Robot Car Kit V2.0
Introduction
Have you wondered to learn programming or have your own programmin obot? Nowadays, programming has developed to a lower age group, and i ill be a trend for everyone thanks to the spread of simple graphica rogramming platforms, from micro:bit to Arduino and Raspberry Pi. Mayb ou haven’t heard of them before. However, with the help of this produc nd tutorial, you can easily install a multi-functional programming ca nd experience the fun of being a maker.
Micro:bit is a highly integrated microcontroller with powerful function nd small size. It is very suitable to be applied in STEAM education fo ts functions to make robots, wearable devices and electroni nteractive games via the combination of code programming and graphica rogramming.
This Keyestudio 4WD Mecanum Robot Car V2.0 is a smart DIY car dedicate o micro:bit. The smart car consists of a car body with extende unctions, a PCB base plate with integrated motor drive sensors, ecelerating DC motors, Mecanum wheels, various modules and sensors a ell as acrylic boards. Therefore, you can easily assemble a coo ecanum wheel 4WD smart car by yourself,and then use Microsoft’s onlin raphical programming platform Make Code to program the micro:bi ontrol board to control the car. In the process, you can not onl xperience the fun of creation but enhance hands-on ability and lear rogramming skills as well.
MakeCode for micro:bit is the most widely used graphical programmin nvironment on the micro:bit official website. It is based on th raphical programming environment developed by Microsoft’s open sourc roject MakeCode. This graphical programming can also be converted t ode languages, python and javascript language, making it mor ccessible to learn programming. At the same time, MakeCode programmin an be simulated or programmed for actual electronic components.
For your convenience, source code has been provided in every project, a ell as code programming steps and code explanation in details. Hope yo an better understand them.
Description
This product is a smart car based on Micro:bit. It integrates a host o unctions such as ultrasonic following, lin racking, infrared control as well as Bluetooth control. There is assive buzzer to play music, 4 WS2812RGB LEDs to display differen olors, 2 seven-color lights to make direction lights for the car. Thi roduct uses two 18650 lithium batteries for power supply.
When installing and disassembling the battery, please pay attention t he positive and negative poles of the battery, and be sure not t everse them. By the way, the motor speed of this product is adjustable.
In order to provide you with better experience, corresponding document bout installation and test code are also provided.
Parameters
Connector port input: DC 6V—9V
Operating voltage of driver board system: 5V
Standard operating power consumption: about 2.2W
Maximum power: 12W
Motor speed: 200RPM
Working temperature range: 0-50℃
Size: 120*120*120mm
Environmental protection attributes: ROHS
Note: The working voltage of micro:bit is 3.3V, and the driver shiel ntegrates a 3.3V/5V communication conversion circuit.
Kit list
# |
Picture |
Name |
QTY |
---|---|---|---|
1 |
Acrylic Board T=3mm |
1 |
|
2 |
Acrylic Board with Lego Holes T=3mm |
1 |
|
3 |
Motor Plate |
4 |
|
4 |
Motor |
4 |
|
5 |
23155MM Fixing Board |
4 |
|
6 |
Servo |
1 |
|
7 |
Mecanum Wheels (A direction) |
2 |
|
8 |
Mecanum Wheels (B direction) |
2 |
|
9 |
keyestudio Micro:bit Expansion Board |
1 |
|
10 |
micro:bit V2.0 Mainboard(KS4034、KS4034F) |
1 |
|
11 |
Keyestudio Mecanum Car Lower Plate |
1 |
|
12 |
M3*20MM Dual-pass Copper Pillar |
4 |
|
13 |
4265c Lego Part |
4 |
|
14 |
43093 Lego Part |
4 |
|
15 |
Acrylic Gasket |
1 |
|
16 |
M3*6MM Flat Head Screw |
10 |
|
17 |
HC-SR04 Ultrasonic Sensor |
1 |
|
18 |
M3*8MM Flat Head Screw |
10 |
|
19 |
M3 Nickle-plated Nut |
10 |
|
20 |
M3*30MM Round Head Screw |
9 |
|
21 |
M2 Nickle-plated Nut |
3 |
|
22 |
M2*8MM Round Head Screw |
3 |
|
23 |
M1.4 Nickle-plated Nut |
6 |
|
24 |
M1.4*10MM Round Head Screw |
6 |
|
25 |
M2.5*14MM Round Head Screw |
4 |
|
26 |
Remote Control(KS4034F、KS4035F) |
1 |
|
26 |
Remote Control (without batteries)(KS4034、KS4035) |
1 |
|
27 |
Plastic String 3*100MM |
5 |
|
28 |
USB Cable |
1 |
|
29 |
HX-2.54 2P DuPont Wire100mm |
1 |
|
30 |
XH2.54 5P DuPont Wire100mm |
1 |
|
31 |
HX-2.54 4P DuPont Wire 50mm |
1 |
|
32 |
HX2.54mm-4P to 2.54 F-F DuPont Wire 150mm |
1 |
|
33 |
XH2.54 3P DuPont Wire 50mm |
2 |
|
34 |
3*40MM Screwdriver |
1 |
|
35 |
TT Coupling |
4 |
|
36 |
M1.2*5MM Round Head Self-tapping Screw |
6 |
Preparations
5.1BBC Micro:bit
(1)What is Micro:bit?
Micro:bit is an open source hardware platform based on the AR rchitecture launched by British Broadcasting Corporation (BBC) togethe ith ARM, Barclays, element14, Microsoft as well as other institutions he core device is a 32-bit Arm Cortex-M4 with FPU micro-processing.
It is just the size of a credit card but it’s very powerful. Th icro:bit main board is equipped with a host of components such as *5 LED dot matrix, 2 programmable buttons, an accelerometer, a compass, a thermometer, a touch-sensitiv ogo and a MEMS microphone, a Bluetooth module of low energy as well a buzzer and so on, making it empower to play a variety of sound ithout external devices.
Moreover, this board supports a sleeping mode to lower power consumptio f batteries and it can be entered if users long press the Reset & Powe utton on the back of it.
Micro: Bit development board is easy to use and expand, the bottom gea esign of the gold finger can be used to
interact with various electronic components via fixed alligator clip. I s capable of reading the data of sensors, controlling servos and RG ights and inserting an expansion board so as to connect variou ensors.
Furthermore, it also supports a variety of codes and graphica rogramming platforms, and is compatible with almost all PCs and mobil evices and a free-installation driver. It has high integratio lectronic modules and a serial port monitoring function for eas ebugging.
The board is widely used in programming video games, interaction etween light and sound, robots controls, scientific experiments earable devices as well as some cool inventions like robots and musica nstruments.
(2) Layout
For more information,please resort to following links:
https://tech.microbit.org/hardware/
https://microbit.org/new-microbit/
https://www.microbit.org/get-started/user-guide/overview/
https://microbit.org/get-started/user-guide/features-in-depth/
(3) Pin out
Functions:
GPIO |
P0,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P19,P20 |
ADC/DAC |
P0,P1,P2,P3,P4,P10 |
IIC |
P19(SCL),P20(SDA) |
SPI |
P13(SCK),P14(MISO),P15(MOSI) |
PWM(used frequently) |
P0,P1,P2,P3,P4,P10 |
PWM(not frequently used) |
P5、P6、P7、P8、P9、P11、P12、P13、P14、P15、P16、P19、P20 |
Occupied |
P3(LED Col3),P4(LED Col1),P5(Button A),P6(LED Col4),P7(LED Col2),P10(LED Col5),P11(Button B) |
Please browse the official website for mor etails:https://tech.microbit.org/hardware/edgeconnector/
https://microbit.org/guide/hardware/pins/
main board**
It is recommended to cover with a silicon protector to prevent short circuit for its sophisticated electroni components.
Its IO port is very weak in driving since it ca merely handle current less than 300mA. Therefore, do not connect i with devices operating in a large current, such as MG995 servo an DC motor or it will get burnt. Furthermore, you must figure out th current requirements of the devices before you use them and it i generally recommended to use the board together with a Micro:bi expansion board.
It is recommended to power the main board via th USB interface or the battery of 3V. The IO port of this board is 3V so it does not support sensors of 5V. If you need to connect sensor of 5 V, a Micro: Bit expansion board is required.
When using pins(P3, P4, P6, P7 and P10)share with the LED dot matrix, blocking them from the matrix or the LED may display randomly and the data about sensors connected mayb wrong.
e. Pin 19 and 20 can not be used as IO ports thoug he Makecode shows they can. They can only be used as I2 ommunication.
f. The battery port of 3V cannot be connected wit attery more than 3.3V or the main board will be damaged.
g. Forbid to operate it on metal products to avoi hort circuit.
To put it simple, Micro:bit V2 main board is like icrocomputer, which has made programming at our fingertips and enhance igital innovation. And as for programming environment, BBC provides ebsite: https://microbit.org/code/, which has a graphical MakeCode program easy fo se.
5.2.Install Micro:bi river
Micro: Bit can be installed without the USB driver. However, if you omputer fails to recognize the main board, you can install the dive oo.
Just enter the fil older .
Assemble Mecanum Robot
It is a programmable car based on BBC micro:bit. It integrates a r, a servo, 2 seven-color lights as wel s 4 WS2812 RGB lights. The wiring is not complicated and it has Leg acks to facilitate connection with other peripheral devices. Abundan ardware resources will enable you to master more knowledge and skill o create more technological inventions.
6.1. Keyestudio 4WD Mecanum Robot Car V2.0
This car can help you to better learn how to use the Micro:bit and mak lectronic knowledge accessible to you.
Functions
Sensor |
Seven-color light |
Decelerating DC motor |
Servo |
Ultrasonic sensor |
Line Tracking Sensor |
IR Receiver |
WS2812 RGB light |
Power switch |
QTY |
2 |
4 |
1 |
1 |
3 |
1 |
4 |
1 |
Note: the line tracking sensor, WS2812 RGB lights, IR receiver and moto river are integrated in the base plate.
Pins:
Sensor |
|
P10 P4 P3 |
Line Tracking Sensor |
P14 |
Servo |
4 WS2812RGB Lights |
|
P0 |
IR Receiver |
P15P16 |
Ultrasonic Sensor |
4 Motor drivers |
|
2 Seven-color lights |
Power supply and Battery
The keyestudio 4WD Mecanum Robot Car is powered by two 18650 batteries he battery holder of the car is compatible with any type of 1865 ithium battery (rechargeable). You can use a universal battery charge o charge the 18650 lithium battery.
Note: This product does not contain batteries.
6.2. The Installation of Keyestudio 4WD Mecanum Robot Car V2.0
|
| ||||||||||||
Adjust the angle of the servo to 90 degrees | |||||||||||||
Installation Diagram (mind the installation direction) |
|||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram | |||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram | |||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram (mind the direction of the motor) |
|||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram (Pay attention to the installation direction of the mecanu heel) |
|||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram | |||||||||||||
Prototype | |||||||||||||
Components Needed | |||||||||||||
Installation Diagram | |||||||||||||
Prototype | |||||||||||||
The wiring of the servo |
|
||||||||||||
The wiring of the ultrasonic sensor |
|
||||||||||||
The wiring of the IR receiver module |
|
||||||||||||
The wiring of the RGB |
|
||||||||||||
The wiring of controlling the motor and seven-color light |
|
||||||||||||
The wiring of controlling the 3-channel line-tracking sensor |
|
||||||||||||
The wiring of the power supply | |||||||||||||
The corresponding interface of the motor | |||||||||||||
The installation of the battery |