codes Flashcards

(26 cards)

1
Q

To activate and control the RGB light on the TECHNOSmartArm, the function _______ is used.

A

Arm_RGB_set()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The Arm_RGB_set() function helps us set
the color of the RGB light on the
TECHNOSmartArm

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In RGB light ___ is darkest and ___ is brightest

A

0 (darkest) to 255 (brightest)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Arm_RGB_set(255, 50, 0)

what is 255, 50, 0

A

RED GREEN BLUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

make red

Arm_RGB_set(0, 0, 0)

A

Arm_RGB_set(255, 0, 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

make cyan

Arm_RGB_set(0, 0, 0)

A

Arm_RGB_set(0, 60, 60)

(any number works, just put on the right color)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to Control a Single Servo?

A

Arm_serial_servo_write(id, angle, time[milliseconds])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The first number from the left, called an ___, identifies which servo motor we want
to control.

Arm_serial_servo_write(1, 0, 0)

A

ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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)

A

angle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

if we want the servo motor to move to the ____, we can use 90 as the angle.

Arm_serial_servo_write(0, 2, 0)

A

middle position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If we want the servo motor to move to the _____, we can use
180 as the angle.

Arm_serial_servo_write(0, 2, 0)

A

rightmost position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If we want the servo motor to move to the ____,
we can use 0 as the angle.

Arm_serial_servo_write(0, 2, 0)

A

leftmost position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The angle position is measured in _____,
from 0 to 180 for servo ____
and until ___ for servo 5

A

degrees

1 to 4 and 6

270

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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.

A

time

milliseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

Arm_serial_servo_write(3, 45, 500)

17
Q

How to Read and Print the Servo Angles?
To read the current angle of a servo motor

A

Arm_serial_servo_read(id)

18
Q

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)

19
Q

We
can print the result on the screen by using the ____ function, or store it in a
variable for later use.

20
Q

Controlling multiple servos

A

Arm_serial_servo_write6(s1, s2, s3, s4, s5, s6,time)

21
Q

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.

A

angle positions
degrees

22
Q

make servo 1 move 90-degree angle, and servo motor 2 to move to a 45-degree

A

Arm_serial_servo_write6(90, 45, 0, 0, 0, 0, time)

23
Q

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)

A

time
milliseconds

24
Q

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.”

A

ctrl_all_servo

25
The main boss of the dance is the ____ function. It's the one giving all the orders. The dance keeps going on and on until someone decides to stop
main()
26
_____ is like telling the computer to take a little break or wait for a specific number of seconds before doing something else. FUNCTION THAT CAN CAUSE DELAY
time.sleep()