FOLLOWING THE CIRCUMFERENCE OF A CIRCLE - EXERCISE 2 |
|
V.Ryan © 2005 | |
Using Pilot 4 as a starting point, write a programme that
makes the buggy motor round the inside edge of a black
circle.
Hint:
1. Place the RCX buggy at the edge of the circle.
2. Programme it to move forward until the dark sensor
detects the light level has fallen below 48, until it meets
the circumference of the circle.
3. Turn the buggy away from the edge of the dark
circumference line (turn the right motor on for a short
time).
4. Loop the programme.
|
|
|
|
|
|
1. Programme the
buggy to move around the inside edge of the circle. You may
find it necessary to move the buggy forward slowly until it
detects the dark circle and stop the motors.
Programme the buggy with a zig-zag pattern of movement so
that the dark outer line is detected by the sensor. Loop the
programme so that the buggy continues moving until ‘turned
off’.
2. Place the buggy
in the centre of the circle. Programme a different pattern
of movement. Perhaps the buggy could be programmed to push
over cans arranged on the edge of the circle?
When attempting more difficult exercises with the buggy, it
may be a good idea to draw each stage of movement on a piece
of paper. In this start by drawing a circle.
|
|
|
|
|
|
|
|