Τρίτη 15 Σεπτεμβρίου 2009

Swap activity


One issue that students were asked to respond to the National examinations 2009 in informatics was the swap procedure.
From my personal experience as an examine marker I realized many types of misunderstandings of this topic even from very good students. This was my reason to create the “Swap robotic activity” according to the motif of WRO2009 competition’s task. Simultaneously, I try to make clear to the students how exactly the swap between two variables takes place
Here is the court for this activity:


NOTES:
All dimensions in the court are measured in mm.
A, and B positions are RANDOM but they must always be located on the white area. The minimum distance between A and B must be 250mm. Competitors are not supposed know these positions in advance.
RULES:
TEMP position is known and it is located at a specific point (at the bottom middle yellow area) as it is presented in the court.
Balls are common pong balls (diameter 20mm) in red and blue color.
For positions A, B and TEMP it would be perfect if we used empty refreshment cans 150ml (diameter 50mm and high 90mm) on top of which we can put the balls.
AIM:
The Robot must start from anywhere within the green area. Then it must swap the red and blue balls which are located in A and B positions, using the robot gripper and the TEMP position. It is not allowed to leave any ball in any other point on to the floor except for the positions A, B and Temp. After robot has achieved the above task, must turn back to the START position. Winner is the person who ends the task at the shortest time.
VIDEO of SWAP ACTIVITY with Lego NXT:http://www.youtube.com/watch?v=eQ6RxJa_OvI