Lesson 3 RoboMagnus 2-3-Min

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Unit 1:

Play and Motion

Lesson 3:
mBuild Motor Driver
OBJECTIVES
After studying this lesson, you should be able to:
¥ describe a DC Motor driver;
¥ identify the uses of a DC motor driver; and,
¥ create a basic program using a DC motor driver.

The DC (Direct Current) Motor Driver can drive various DC motors


and can be controlled by the speed or direction of its rotation.

DC motors are generally used in different household appliances and


toys; examples are washing machines, microwave ovens, electric fans,
remote cars, and drones.

Wiring Connection
Attach the wire connection cable to HaloCode connected to the DC motor driver, then connect
the DC motor to the DC motor driver.

RoboClass - RoboMagnus 2
To begin, go to “extension” in mBlock 5 HaloCode and look for
“DC Motor Driver” to add the DC Motor Driver command blocks.

There are different kinds of Motor driver command block:

A command that is used to run the DC motor with an assigned value of speed.

A command that is used to run the DC motor with an assigned value of speed and time.

A command that is used to increase the rotational speed of the DC motor with an assigned value.

A command that is used to stop the rotation of a DC motor.

A command that is used to show the speed of rotation of a DC motor.

Sample Code:

When the HaloCode button is pressed, the DC motor will run at 60% power rotating counter
clockwise for 1 second.

Copyright 2021 EduLearn Technologies

You might also like