Professional Documents
Culture Documents
Lesson 3 RoboMagnus 2-3-Min
Lesson 3 RoboMagnus 2-3-Min
Lesson 3 RoboMagnus 2-3-Min
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.
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.
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.
Sample Code:
When the HaloCode button is pressed, the DC motor will run at 60% power rotating counter
clockwise for 1 second.