0% found this document useful (0 votes)
6 views19 pages

Introduction To Programming Robotics

The document outlines the programming commands for controlling a robot's arm and claw, specifically using the 'moveMotor' command for arm movement and specifying motor ports. It details the parameters such as quantity, unit type, and speed for arm control, and provides instructions for moving the arm up and down using degrees. Additionally, it describes claw control operations, including opening and closing the claw with time specifications to prevent motor issues.

Uploaded by

clinton basila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views19 pages

Introduction To Programming Robotics

The document outlines the programming commands for controlling a robot's arm and claw, specifically using the 'moveMotor' command for arm movement and specifying motor ports. It details the parameters such as quantity, unit type, and speed for arm control, and provides instructions for moving the arm up and down using degrees. Additionally, it describes claw control operations, including opening and closing the claw with time specifications to prevent motor issues.

Uploaded by

clinton basila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

FORWARD AND

BACKWARD
Programming
QUANTITY

(Can be whole number or


decimal number)
UNIT TYPE
(Can be rotations, degrees,
seconds, minutes, milliseconds)
it is advisable to use rotations for
forward and backward
SPEED

(1-100)
ARM CONTROL
Move Motor
ARM CONTROL

moveMotor
Turns the specified motor at the specified speed
for the specified quantity of units.
Command that is being used to move or control
the arm of the robot.
moveMotor Command:

Motor Port
The name of the
motor that the
command will
control.
moveMotor Command:

Quantity
The number of units
that must pass
before the motor
stops moving.
moveMotor Command:

Unit Type
The type of unit used
by quantity
(degrees)
moveMotor Command:

Speed
The speed at which
the motor moves.
ARM CONTROL

motor10 or armMotor is the


port used for the arm control
ARM CONTROL
To move the arm up:

315 degrees, positive power level is being


used
ARM CONTROL
To move the arm down:

-315 degrees is being used.


ARM CONTROL

To move the arm up and down we use


the unit type degrees.
CLAW CONTROL

PORT/MOTOR 11
The port where the Claw Motor
is connected
CLAW CONTROL

motor11 or clawMotor is the


port used for the claw control
CLAW CONTROL

To close the claw: 1 second, positive power level


To open the claw: -1 second, negative power level
CLAW CONTROL

NOTE:
To avoid claw motor from getting stuck, consider
using seconds (or milliseconds) as the unit type.

You might also like