2. mbot Introduction(robit)#

2.1. Introduction#


Robit is a motherboard of smart car based on micro:bit. It is compatible with MBOT. Except for the integration of the simple and convinient RJ25 connector,motor connector and sensor on MBOT, we have extended 4 DC motor connectors, 2 stepping motor connectors(same with 4 DC motor connectors), 8 PWM signal output connectors on this board. You can use it to drive PWM signal driving devices like servo. It has 8 G-5V-S digital signal connectors(for connecting with OCTOPUS electric bricks). Robit can realize all current basic functions of MBOT. Besides, you can extend its usage with more sensors, motors, servos, stepping motors and so on.

../../_images/ybkfOnk1.jpg

2.2. Features#


  • Compatible with MBOT chassis and sensors.

  • Support 4 channels of DC motor and 2 channels of stepping motors.

  • With 8 PWM signal output connectors.

  • With 8 G-5V-S digital signal connectors(for OCTOPUS electric brick).

  • With 4 G-5V-S analog signal connectors(for OCTOPUS electric brick).

  • Integrate frequently used modules like buzzer, light sensor, rainbow LED, infrared send and receive.

2.3. Parameter#


Project Parameter
DC Power Input Voltage DC 3.7-6V
Li-battery Input Voltage DC 3.7-4.2V
USB Recharging Current 500mA
Extendable Analog IO Ports 4
Extendable Digital IO Ports 10
Max Stepping Motor Driven Quantity 8
DC Motor 4 Channels
Stepping Motor 2 Channels
Programmable LED Beads 2
Passive Buzzer Support
Photocell Sensor Support
Infrared Receive Support
Infrared Send Support
Dimension 90mm X 74mm
Net Weight 46g

Dimension#

../../_images/DHJWwCU1.png

2.4. Pins & Connectors#


../../_images/4ZNLceA1.png

2.5. Introduction of Major Components#


RJ25 Connector#

../../_images/AiRvd9b1.png

Robit has 4 RJ25 connectors. Each RJ25 connector has 6 touch points. These points respond to power, 2 IO ports and IIC ports separately. It is compatible with some sensors on MBOT.

RJ25 Connector Match Pins on micro:bit
J1 SCL(P19)/SDA(P20)/GND/5V/P13/P14
J2 SCL(P19)/SDA(P20)/GND/5V/P15/P16
J3 SCL(P19)/SDA(P20)/GND/5V/P1/P2 (It supports 5V analog input sensor. )
J4 SCL(P19)/SDA(P20)/GND/5V/P3/P4 (It supports 5V analog input sensor.)

GVS Standard Electric Brick Connector#

../../_images/EX5gFN01.png

Except leading out to RJ25 connector, the IO port on micro:bit also lead out with the format of GVS. It is support 5V components. Besides, P1/P2/P3/P4 support 5V analog input sensors.

GVS Standard Servo Connector: S0~S7#

../../_images/q60J0FD1.png

You can connect 8 servos at most. This connector leads out from the chip PCA9685 and extends from the IIC connector on micro:bit instead of normal I/O ports.

DC Motor Connector: M1~M4#

../../_images/foGr3ds1.png

It allows you to connect 4 DC motors (max) at the same time. This connector leads out from the chip PCA9685 and extends from the IIC connector on micro:bit instead of normal I/O ports.

Stepping Motor Connector: STEP1 & STEP2#

../../_images/SgFEXhW1.png

It enables you to connect 2 stepping motors(28BYJ-48-5V) at most.

Buzzer#

../../_images/OJuywhz1.png

The buzzer is connected to the P0 port on micro:bit.

Light Sensor#

../../_images/GxtT0KK1.png

The light sensor onboard is connected to the P10 port on micro:bit.

Infrared Emitting Diode#

../../_images/iMOf8lZ1.png

This infrared emitting diode is connected to the P6 port on micro:bit.

Infrared Receiving Diode#

../../_images/uw7fE9k1.png

This infrared receiving diode is connected to the P8 port on micro:bit.

Rainbow LED#

../../_images/aANe5pE1.png

Two rainbow LED beads are connected to the P12 port on micro:bit.

DC Power Connector#

../../_images/5hUXn0Y1.png

DC power connector supports 3.7V~4.2V DC power. It is usually connected to a battery holder with 4 AAA batteries.

Li-battery Connector#

../../_images/CX1F1jI1.png

Li-battery connector supports 3.7V~4.2V li-battery.

Li-battery Indicator#

../../_images/86v4GeD1.png

This indicator tells you battery power information. It is in blinking status. Blink once means 1 grid of power. And the full power has 4 grids. That means it will blink 4 times when the battery power is full.

USB Connector#

../../_images/9xSHrjg1.png

This connector is only used to charge li-battery. It doesn’t support data transmit and its charging current is 500mA.

2.6. Quick Start#


Hardware Connection#

Fix robit onto mbot car.
Connect left motor to M1 port, and right motor to M2 port. Once completed, it looks like the following picture showed. ../../_images/sVvkB7S1.jpg

Programming#

Click to open makecode, search the key word robit and add robit package.

../../_images/C0LxMkP1.png

Write your code to make the car forever move forth and back for 3 seconds respectively. Here’s the code:

../../_images/8WwA6Bp1.png

You can see the whole program from the link here: https://makecode.microbit.org/_aXVAyx3dm585

Also, you can download the code directly from the page below:

Result#

We can see our robit car moves forward for 3 seconds, and then backward 3 seconds. This round trip movement is repeated forever.

2.7. FAQ#