Page 48 - Robo_Genius_V1.0_flipbook_C7
P. 48
Step 4 Click on Sensors option and drag Read IR on block and drop inside first blank space of
comparison operator and change the pin AO. Click on math option, drag number block and
drop it inside a second blank space of comparison operator and change the value from
accordingly. Also change the comparison (=) operator into less than (<) operator.
Step 5 Click on setting option given on if block, add else with if.
Step 6 Click on OUTPUT option, drag block Set MOTOR on and HIGH, drop it inside a if condition
and change pin 0 to pin 6. Similarly drag Set MOTOR on block again from the output, change
the pin number to 6 and attach it with logic LOW inside a else condition.
46 RoboGenius (V1.0)-VII

