Shop OBEX P1 Docs P2 Docs Learn Events
BoeBot solves the WRO 2011 challenge for secondary School — Parallax Forums

BoeBot solves the WRO 2011 challenge for secondary School

NikosGNikosG Posts: 705
edited 2011-02-03 06:09 in Robotics
Hello All,

The most of you probably already know about the WRO competitions organized by Lego Mindstorms.
In this thread I would like to share with you my own solution for the WRO 2011 challenge that concerns the secondary school using my Boe-Bot.
[size=+2]Part1: Introduction [/size]
The challenge for the secondary school demands from the competitors to construct a recycler robot.
The robot must have the ability to sort different colored and sized cubes. There are cubes of 3 colors (red, green and blue) and of two sizes 3cmx3cmx3cm and 5cmx5cmx5cm.
More specifically: First the robot starts from the green area and takes each cube (We don’t know in advance the string of the cubes). Then it must recognize the color and the size of the cube. After that it must put the cube in the appropriate “Bin”. In the photo below I have numbered the “Bins” e.g. 1= for small red cubes, 2=for BIG blue cubes etc.
attachment.php?attachmentid=77687&d=1296244167

As all the previous WRO competitions the robot must be able to navigate itself with accuracy and know its position every time.
I have also done the 3d Model of the competition ring using the Google SketchUP software. This model is fairly accurate and its dimensions are according the competition’s rules. In this 3d Model you can also see my “custom” Boe bot and discover all the details of my construction. "(Download the viewer to view 3D files)”
In the Part2 I’ll explain the function of my "custom" BoeBot (see the follow image) and I’ll give some examples and videos according to my hardware.

attachment.php?attachmentid=77685&d=1296244142

Comments

  • NikosGNikosG Posts: 705
    edited 2011-01-29 12:05
    [size=+2]Part2: the use of sensors for color and size recognition [/size]
    One of the most important parts of this challenge that faces the robot is to recognize simultaneously the color and the size of each cube. For this purpose the robot uses two very popular Parallax sensors: the ColorPAL sensor for the color detection and the PING))) Ultrasonic Sensor for the size detection. In order to put together both sensors and manipulate their data I made an aluminum frame to hold them. The frame with the sensors is adapted in the front side of theBoeBot.
    Here is how it works:
    Both sensors scan the area in front of the robot. If there is nothing close to the robot the ultra sonic sensor detects a distance d>=4cm (I have measured that a cube is close to the robot and the robot can catch it when its distance from the robot is < 4cm). In the same time the ColorPAL sensor detects the “BLANK”. In this case the robot has nothing to do except to move forward in order to approach a cube.
    attachment.php?attachmentid=77713&d=1296330445
    Supposing the robot approach a small red cube. In this case the ultra sonic sensor will gives us a distance smaller than 4cm. This data indicates that “something” exists in front of the robot. In the same time the ColorPal keeps on detecting the “BLANK”. So we can understand that a small cube exists there. The Basic stamp gives the appropriate command to the gripper (How much the gripper should close in order to catch the cube).
    attachment.php?attachmentid=77709&d=1296330437
    In the next step the gripper grasps the cube and picks it up according the BasicStamp order
    attachment.php?attachmentid=77716&d=1296330450
    As the gripper lifts the cube up the ColorPAL detects the color for another time. Now it can identify that is a small red cube.
    attachment.php?attachmentid=77710&d=1296330440
    Supposing the robot approach a big green cube, the ultra sonic sensor will gives us for another time a distance smaller than 4cm and the ColorPal detects the “green”. So we can understand that a big green cube exists there. The Basic stamp gives the appropriate command to the gripper (At this time the gripper close its parts less because it has to catch a bigger cube).
    attachment.php?attachmentid=77712&d=1296330443
    Finally the gripper elevates the big green cube
    attachment.php?attachmentid=77711&d=1296330442
    We can use the ColorPAL again to assure the cube’s color although it is not necessary for Big cubes.
    attachment.php?attachmentid=77715&d=1296330449
    We use the same method to identify and the rest types of cubes.
    Here is the “flow chart“of the algorithm described above:
    attachment.php?attachmentid=77714&d=1296330447

    And here is a video showing the above procedure:
    The part3 explains the last part of this challenge that involves the navigation through the competition ring and the shearing of each cube in the appropriate “BIN”.
    767 x 528 - 63K
    938 x 519 - 83K
    855 x 293 - 50K
    854 x 549 - 63K
    792 x 534 - 69K
    567 x 657 - 48K
    777 x 491 - 70K
    925 x 293 - 52K
  • NikosGNikosG Posts: 705
    edited 2011-02-02 16:16
    At this point I would like to give some instructions about the cube’s construction.
    For this purpose you can use a lot of materials like wood, plastic etc. to make your own cubes. Personally ,I suggest cubes from polystyrene and white cardboard. We can easily find those materials from various old packages. We also need some glue, a scissor, a paper knife, a ruler, a pencil, and markers.
    attachment.php?attachmentid=77840&d=1296692088
    First we cut the polystyrene using the paper knife and we create a cube with side slightly smaller than 3 cm. Then using the ruler and the pencil we draw on the cardboard the shape of an open flat cube. Then we must cut the bend cardboard in order to create the cube. Then we put the polystyrene cube inside the cardboard cube and we pour some clue to solidify the cube. Last we use the marker to paint the cube.
    847 x 633 - 69K
  • WhitWhit Posts: 4,191
    edited 2011-02-02 17:16
    Very nice work Nikos G. and excellent documentation!
  • Martin_HMartin_H Posts: 4,051
    edited 2011-02-02 18:56
    That looks like a fun project. I really like the gripper design. Is it home brew or did you buy parts?
  • NikosGNikosG Posts: 705
    edited 2011-02-03 06:09
    @ Whit
    Thank you for your encouraging comment! As I’m not very confident with my English, your comment is an indication that my documentation is comprehensible.
    @ Martin_H
    Actually, the mission of the robot is very cool and intrigues the student’s interest!
    I wish I had the original Gripper Kit for the Boe-Bot Robot to try this project but I couldn’t wait to buy one. The gripper you see was given by DeAgostini, a robot magazine that was published here in Greece in 2004.You can also see this Gripper in action here, in another project of mine.
    However I strongly believe that the ideal gripper would be the Gripper Kit for the Boe-Bot Robot because it saves a lot of space. As you can see the DeAgostini gripper although functions well is a little bit awkward.


    @ Whit and Martin_H
    If you notice similar activities and robot missions with colored cubes please post it to me.
    Thank you Nikos.
Sign In or Register to comment.