1. Description

kidsbits blocks coding TB6612 2-way Motor Drive module is fully compatible with kidsbits control board and Lego building blocks.

You can easily connect it to kidsbits control board for communication using an RJ11 cable without worrying about wrong connection and damage.

This motor drive module uses  TB6612 chip, which can directly drive two DC motors.

To make connection more easier, we have extended the motor interfaces into two micro USB ports.

When using this motor module with control board, should connect to SPI interface.

Follow the instruction mentioned below to learn how to use this module.

2. Technical Parameters

  • Interface: SPI interface
  • Voltage supply: DC 5V
  • Drive Chip: TB6612 chip

3. Wiring Diagram

4. Import kidsbits library

Begin with the Mixly blocks coding, you should first import the corresponding kidsbits library for those sensor modules.

Connect the control board to your computer using a USB cable.

Then open the Mixly blocks software 0.998, set the board to UNO R3, select your correct COM port. On the upper right corner you can switch the language.

After that, click Import, import the keyes-kidsbits library. Shown below.

If import custom library successfully, you should see the sensor module library shown below.

Click on the control output block of keyes_kidsbits, you can directly use the corresponding module. Shown below.

5. Upload Code

Open the code folder we provided, you are able to directly open or drag the code to Mixly window.

You can click the Code to check the C language.

6. Test Result

The two motors turn forward for 3 seconds, stop for one second and then go back for 3 seconds and stop for one second, alternately and circularly.

The forward rotation speed is greater than reversed speed; when turn forward, motor will show green; when turn backward, motor will show blue.

7. Resources Download

https://drive.google.com/open?id=1-wfw6ekWdrp7-RbzR_q6r-ZN1aqvRg0K

Leave a Reply

Your email address will not be published. Required fields are marked *