To activate and control the RGB light on the TECHNOSmartArm, the function _______ is used.
Arm_RGB_set()
The Arm_RGB_set() function helps us set
the color of the RGB light on the
TECHNOSmartArm
yes
In RGB light ___ is darkest and ___ is brightest
0 (darkest) to 255 (brightest)
Arm_RGB_set(255, 50, 0)
what is 255, 50, 0
RED GREEN BLUE
make red
Arm_RGB_set(0, 0, 0)
Arm_RGB_set(255, 0, 0)
make cyan
Arm_RGB_set(0, 0, 0)
Arm_RGB_set(0, 60, 60)
(any number works, just put on the right color)
How to Control a Single Servo?
Arm_serial_servo_write(id, angle, time[milliseconds])
The first number from the left, called an ___, identifies which servo motor we want
to control.
Arm_serial_servo_write(1, 0, 0)
ID
number in the middle is called the ____, which specifies the angle position we want the servo motor to move into.
Arm_serial_servo_write(0, 2, 0)
angle
if we want the servo motor to move to the ____, we can use 90 as the angle.
Arm_serial_servo_write(0, 2, 0)
middle position
If we want the servo motor to move to the _____, we can use
180 as the angle.
Arm_serial_servo_write(0, 2, 0)
rightmost position
If we want the servo motor to move to the ____,
we can use 0 as the angle.
Arm_serial_servo_write(0, 2, 0)
leftmost position
The angle position is measured in _____,
from 0 to 180 for servo ____
and until ___ for servo 5
degrees
1 to 4 and 6
270
The last number, called the ___, specifies how long we want the servo motor to
move to the desired position.
Arm_serial_servo_write(0, 2, 0)
The time is measured in ____, which are thousandths of a second.
time
milliseconds
if we want the servo motor to move
quickly, we can use a small number like 100 (equivalent to 0.1 second) as the
time. If we want the servo motor to move slowly, we can use a large number like
1000 (equivalent to 1 second) as the time.
yes
if we want to move the servo motor 3 to 45 degrees in 500 milliseconds
(which is half a second), we can write it this way:
SINGLE SERVO MOTOR
Arm_serial_servo_write(3, 45, 500)
How to Read and Print the Servo Angles?
To read the current angle of a servo motor
Arm_serial_servo_read(id)
Inside the parenthesis is the variable id. It represents the number that identifies
which servo motor we want to read. The function, in return, displays, or stores, the
current angle of the servo motor as a value in degrees.
Arm_serial_servo_read(id)
true
We
can print the result on the screen by using the ____ function, or store it in a
variable for later use.
print()
Controlling multiple servos
Arm_serial_servo_write6(s1, s2, s3, s4, s5, s6,time)
S1, S2, S3, S4, S5, and S6 represent the numbers that specify the _____ we want the six servo motors to move to.
The angle positions are measured in _____,
from 0 to 180 for S1 to S4 and S6, and until 270 for S5.
angle positions
degrees
make servo 1 move 90-degree angle, and servo motor 2 to move to a 45-degree
Arm_serial_servo_write6(90, 45, 0, 0, 0, 0, time)
The ___ variable represents a number that specifies how long we want the six
servo motors to move from one position to their desired position at the same time.
The time is measured in _____.
Arm_serial_servo_write6(s1, s2, s3, s4, s5, s6,time)
time
milliseconds
Inside this dance, there’s a special command called ______. This command
tells the arm how many degrees to move and how fast. It’s like saying, “Move your
parts to this angle, and take this much time to do it.”
ctrl_all_servo