Page 71 - Robo_Genius_V1.0_flipbook_C8
P. 71
Step 3 Click on the LOGIC option again, drag the if do block and
the comparison operator block (<), and attach them
inside the repeat while block on the workspace.
Step 4 Click on the SENSOR option,
drag and drop the Read IR on
block into the first blank
space of the comparison
block, and change the pin to
A3. Now, from the MATH
option, drag and drop the
number block into the second
blank space and enter the
number as needed.
Step 5 Click on the OUTPUT
option, drag and drop
the Set SERVO on pin
to degree (0~180)
block into the first
blank space of the if
do block. Change the
pin to 9 and from the
MATH option, attach
a number block and write a value between 0 and 90.
Step 6 Repeat the previous step
and change the value
to 0.
Programming with Tinker Orbits Kit 69

