Professional Documents
Culture Documents
GEN II EV3 Simple Simon Soccer Player and Goalie HT
GEN II EV3 Simple Simon Soccer Player and Goalie HT
**LEGO, Mindstorms and Robolab are Registered Trademarks of the LEGO Corporation
You will find that GEN II Soccer is no harder than any other robot competitions. It is
actually easier for beginners to enter and compete successfully in Soccer! They can then
raise their expectations and skill levels as they compete. The use of IR Beacons is not a
compulsory item for beginners to purchase or master, it just adds a further dimension of
control for the robots and programmers when they get to that stage.
Add an infra red sensor and a bull bar and you are ready to go
Program a Simple Soccer Robot(or two) from the notes below. A Simple Soccer Player that
can find the ball and kick it will be competitive in most GEN II League Tournaments. It does
not necessarily have to use a compass.
Build a goalie using an EV3 or NXT light sensor. These sensors will pick up a pulsed ball from
40 cm if they are calibrated correctly. Change the Simple Soccer Player Program to just
move forwards and back when it sees the ball. That way it will it will remain in front of the
goals.
You do not need a GEN II field to practise on at this stage. Just mark out the field
dimensions and goals on a mat, or the carpet of the classroom floor and develop your soccer
team on this.
Aims
To make GEN II Robot Soccer accessible to all students.
Limit the need to purchase specialised equipment in order to compete in GEN II
Maximise participation of students.
Minimise the infrastructure needed for GEN II Soccer games.
Rule Modifications
The following modifications can be made to the RCJA GEN II Rules.
1. Teams will have a maximum of two Hitechnic IRV2 or Tris10 sensors.
2. All other sensors must come from Mindstorms EV3 or NXT kits.
3. Only Mindstorms NXT-G or EV3 software can be used.
4. Games will be 5 minute halves with no half time break and 4 minutes break between
games.
5. All programming should be done prior to the tournament.
6. If the ball hits the side wall, play will continue.
7. If lack of progress is called, the ball will be replaced to the nearest neutral spot.
8. Damaged robots can only be removed with the referees permission.
9. If a robot is in a situation where it is about to kick an own goal, it should not be
removed.
10. A damaged robot remains off the field for 30 seconds or until a goal is scored.
11. Any team that is not ready to start a game will lose a goal per minute for being late.
The game clock will start at the scheduled time and the game will run according to the
tournament schedule. Forfeits result in a 5-0 score line
12. Teams may not be given setup areas if accommodation is limited. They will use the area
around the allocated field to program robots (if required)
13. Only one laptop and two robots will be brought to the field area. No spares or tools
are to be used. One chair and one powerpoint will be made available to teams.
14. Robots and laptops are to remain in the field area once the tournament has begun.
Follow the training notes below and you will be playing GEN II in less than 2 hours.
These notes use the Tris10 Findball IR sensor as it is easier to show the programming
features of EV3 with this. The Hitechnic IRV2 sensor can easily be substituted into
these programs and by adding the 4 extra direction readings.
Robot Setup
Build a Tommabot add a bull bar and a Hitechnic IRV2 Sensor.
All that you need is motors plugged into outputs B and C and the IR Sensor plugged into
Sensor Port 1.
You need to download the IRV2 Sensor block from the https://www.hitechnic.com/downloads
site and follow the download instruction. It is quite easy!
Programming
In this program the IR Sensor is just waiting for a reading from the ball and then the robot
will be told to move forward.
Create the following simple program that will allow you to see that everything is working OK.
Start with a loop. Leave it at the unlimited(loop for ever setting).
The robot will do nothing until the IRV2 gets a reading greater than 3. Then it will take the
top path (True) of the switch and move forwards
Save this program on your computer as MW.
Select download and Run in the right bottom corner of the programming page. This gets
you to the correct section of the EV3. I always do this first time I run a program, but always
hold onto your robot when you do this, it may get away from you.
Place all of the class robots with their backs to the classroom wall
The teacher will turn the ball on and roll the ball across the classroom.
Did you get a Mexican Wave?
Try rolling the ball further away from the robots. Which robot has the best range?
RoboCup Junior Australia Inc Copyright 2015 5
Notes
The pulsed ball has an incredible range and also can be sensed by reflection off walls.
Experiment with the location of your IR V2 sensor and maybe shield it with black tape to
reduce the influence of reflections and still maintain the excellent range.
You will find the IRV2 sensor gives the following readings.
If you go to Port View in the on your EV3 or on your EV3 Programming screen,
Hint: if your readings do not change when you move the ball, you may need to unplug and
reinsert the Hitechnic IRV2 Sensor
At this stage you can experiment with the placement of the LEGO pieces around the sensor
to give you consistent readings. You will be amazed at the sensors ability to see through
the LEGO. This should be repeated every time you add other attachments such as dribblers
and kickers.
Programming
Place an ultrasonic switch in the True branch of the switch in the Mexican Wave program
Set the first switch to greater than 3
Set the second switch to greater than 6
The means that for the lower branch the, sensor readings will be 0,1,2,or 3 meaning that the
ball is to the left of the robot.
The middle branch is for sensor reading 4,5 and 6 meaning the ball is straight ahead.
The top branch is for readings 7,8 and 9, meaning the ball is to the right of the robot.
You will see that only one of the branches will be displayed. To view the other branch just
click on the True or False icons Notice how much room this creates on your screen?
Overview
You are now ready to use the full facilities offered by the EV3 programming and the Tris10
sensor to keep the ball under control once you have it, and dribble it down the field.
Robot Setup
You will now need to modify your robot to retain the ball. Read the rules on
www.robocupjunior.org regarding robot size and ball capturing zones and build a bull bar
that will help to control the ball.
You still only need to have motors plugged into outputs B and C and the IRV2 Sensor plugged
into Sensor Port 1.
Method
The Simple Simon is not totally smooth. This program utilizes the 9 IR sensor readings allows
you to adjust how sharply the robot is turning and gives your robot a command to go directly
at the ball.
Programming
Start with a new program
Start with a loop. Leave it at the unlimited(loop for ever setting).
Place the IRV2 block from the yellow palette inside the loop
Add a switch and this time select Numeric from the drop down menu
Wire the IRV2 block to the switch by left clicking and dragging the cm jigsaw block to
the # slot.
You will need to adjust the motor power and turning direction for each of the 0-5
settings depending on how your robot behaves.
The above method can also be used on the Hitechnic IRV2 sensor, but you will need to
set 10 branches for 0-9 readings.
Programming
Add another loop at the start of the program.
Drag the light sensor loops to inside the first loop and place them side by side.
Add a Move Steering icon to the lower branch of the switch.
Set the steering to turn full left,
Motor Power 50,
Timer to .05 seconds.
Select Coast to stop (important)
Set the light sensor loops to count for 40 and the outside loop to loop forever.
Copy and paste the sensor loop to beside the first loop.
Change the motor icon on the lower branch to turn right.