SKU_BOS0024_Motor_Controller_Module_o9-DFRobot

Introduction

The motor controller module can be used to control robotic car to move, and drive the conveyor belt and the sliding device. To realize complicated functions, sometimes the single-direction rotation of a motor is not enough, and a motor controller module is necessary for achieving variable motor direction and speed, such as making electric fans and water pumps. This module works well with maincontrollers such as micro:bit and Arduino, and can be used for not only Mind+ and MakeCode graphical programming but also non-programming projects.

Specification

Pinout

Label Name Description
1 Signal Digital Signal Line
2 VCC Power Positive
3 GND Power Negative
4 Motor + Motor Power Positive
5 Motor - Motor Power Negative
6 Toggle Switch Motor Mode Selection

Usage Description

The motor controller module provides 4 preset modes. Input the corresponding value to change speed and direction:

Motor Rotation Direction

Principle

When the motor drives an object to move, it converts electric energy into kinetic energy. This process will consume a large amount of energy, but the normal input module cannot provide enough for the motor, so we have to use a motor controller module to supply driving current for the motor. Besides, there are four modes for this motor controller module.

Application

1. Start the Motor

Description:
Press the self-locking switch to start the motor; press again to stop it.

Components:

BOS0003 Self Locking Switch BOS0024 Servo Controller Module FIT0528 Micro Metal Gear Motor
micro:bit microbit expansion board Mainboard
MBT0039 micro:bit BOS0040 micro:bit BOSON Expansion Board BOS0035 Mainboard-3IO

Tip: micro:bit and its expansion board will be used in programming projects.

Non-programming Project

Connection Diagram:

Programming Project

Connection Diagram:

Program Flowchart:

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Non-programming Programming

2. Make A Whisk

Description:
Make a whisk. Fix the whisk head onto the shaft of the motor, and use a rotation sensor to control the speed of the motor.

Components:

BOS0001 Rotation Sensor BOS0024 Servo Controller Module FIT0528 Micro Metal Gear Motor
micro:bit microbit expansion board Mainboard
MBT0039 micro:bit BOS0040 micro:bit BOSON Expansion Board BOS0035 Mainboard-3IO

Tip: micro:bit and its expansion board will be used in programming projects.

Non-programming Project

Connection Diagram:

Tip: Switch the motor controller module to B

Programming Project

Connection Diagram:

Tip: Switch the motor controller module to B

Program Flowchart:

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Non-programming Programming

3. Line-tracking Car

Description:
Make the robotic car move along a runway with the smart grayscale sensor. The motor will start when the color black is recognized and stop when white is recognized.

Components:

BOS0010 Smart Grayscale Sensor BOS0024 Servo Controller Module FIT0528 Micro Metal Gear Motor
micro:bit microbit expansion board
MBT0039 micro:bit BOS0040 micro:bit BOSON Expansion Board

Connection Diagram:

Program Flowchart:

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Programming

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum

Turn to the Boson Kit Page