Standard League Robot Soccer EV3 Compass Training Curriculum Brian Thomas

Similar documents
GEN II Robot Soccer EV3 Compass Training Curriculum Brian Thomas

Standard League WRO Football Simple Simon EV3 Training Curriculum

Simple Simon GEN II Robot Soccer EV3 -Tris 10 Training Curriculum

The NXT Generation. A complete learning solution

LEGO Engineering Conferences ROBOLAB and MINDSTORMS Education Version 4.5 March 2008

World Robot Olympiad 2018

Technology. In the My Files [My Files] submenu you can store all the programs that you have made on the NXT or downloaded from your computer.

Robot Activity: Programming the NXT 2.0

Table Football. Introduction. Scratch. Let s make a world cup football game in Scratch! Activity Checklist. Test your Project.

World Robot Olympiad 2019

World Robot Olympiad 2018

Rules Summary. RoboCupJunior Australia Simple Simon Soccer Rules Last Modified: February 21, Playing Field 2 2.

National Robotics Competition 2018 NRC WRO Challenge Manual

Using the Lego NXT with Labview.

Beginner Category Tug of War 2v2

General Rules 2015 Season

Rules - WRO GEN II Football

Rule 0. Construction and programming of robots has to be performed exclusively by the students.

Chapter 13. ANTY: the robotic ant

1001ICT Introduction To Programming Lecture Notes

Copyright 2004 by the Thomas G. Faria Corporation, Uncasville CT No part of this publication may by reproduced in any form, in an electronic

Mapping a Magnetic Field. Evaluation copy. Figure 1: Detecting the magnetic field around a bar magnet

Technology. Using Bluetooth

OrbBasic 2: Student Guide

Regular Elementary Category Rocket

World Robot Olympiad 2018

2014 National Robotics Competition - GEN II Football

Rescue Rover. Robotics Unit Lesson 1. Overview

RoboCupJunior New Zealand GEN II Soccer Rules 2015

CONSUMER MODEL INSTALLATION GUIDE

Introduction WELCOME TO LEGO MINDSTORMS EDUCATION

2013 National Robotics Competition - GEN II Football

How To Read Road Signs - Roundabouts

NXT Robotics Techniques Workshop 2008

Rule 1 of Sumo club is we don t talk about sumo club!

Line Following with RobotC Page 1

Model 400ML Audible Information Device

The Mechanical Advantage

HS653 Negative Pressure Ventilation Controller

Quick Start Guide. A. Hardware installation B. Software installation C. Start the software for the first time D. Do your first measurement

RoboCup Junior Australia Standard League Soccer Rules

MazeBot. Our Urban City. Challenge Manual

Johnston - Urbandale Soccer Club U8. Coaching Curriculum

RAM Operation Manual

Robot Soccer Challenge

RoboCup Junior Australia Standard League Soccer Rules 2019

Measuring wind speed and direction

Walk-O-Meter User Manual

IBU3 Manual Addendum 1

1. Playing Field and Ball 1.1 Floor The playing field for the GEN II League is 122 cm by 183 cm. The field has white borders 30cm wide.

RAM Operation Manual. Worldwide Manufacturer of Gas Detection Solutions

ECE 477 Digital Systems Senior Design Project Rev 9/12. User Manual

RAM 4021-PR. Operation Manual. Worldwide Manufacturer of Gas Detection Solutions

FLL Indonesia Category

RoboCup Junior Australia Standard League Soccer Rules

Technology. In the My Files [My Files] submenu you can store all the programs that you have made on the NXT or downloaded from your computer.

Declining Weight Blending System Quick Start Manual E Main St Marshall, IL Phone: Fax: Website:

RoboCupJunior Soccer Rules 2009

NATICK SOCCER CLUB - PRACTICE IDEAS

User manual CF8-D/W-IN

What do I need to be a volunteer coach?

USER GUIDE USER GUIDE

LifeBeat should be worn during daytime as well as night time as it can record activity levels as well as sleep patterns.

RoboCup Standard Platform League (NAO) Technical Challenges

Chromat Calibration Updated October 27th, 2017

e d u c a t i o n NXT Solar Station

INSTALLATION MANUAL. M-WRG-S/Z-T(-F, -FC) and InControl pushbutton sensor

Rulebook Revision 2016 v1.0 Published September 18, 2015 Sponsored By

RAM Operation Manual. Worldwide Manufacturer of Gas Detection Solutions

Run Course Measurement Manual 2010 Edition. International Triathlon Union Run Course Measurement Manual

High Pressure Chem-SCAN Operating Manual

RAM 4021-DPX Operation Manual

Copyright Velocomp LLP 2006

New product release. Universal Rebreather Monitor (URBM) Single O2 cell and Dual HP package

Mounting the RoboFocus RF-3 Unit on the LX-200/400 MicroFocuser

RCAP CoSpace Grand Prix Rules 2018 (CoSpace F1, Category A)

Introduction to Pneumatics

Time, Speed, and Distance: Student Guide

Misaligned Folds Paper Feed Problems Double Feeds Won t Feed FLYER Won t Run iii

TOMI PRO MODEL PERSONAL MODEL

Application Notes. SLP85xD Load Cells

RM-80 respiration monitor

Getting Started with the LabVIEW Toolkit for LEGO MINDSTORMS NXT

2017/2018 Robot Game Rules (updated to Jan 9, 2018)

Table of Contents. Sensor Calibration and Troubleshooting CDS4000 CO 2. Introduction 1. Handling Information. Calibration 2.

Flow Rate Sensor Product Number: ENFLO-A254A

RoboCupJunior Soccer Rules for SuperTeams 2016

Scoreboard Operator s Instructions MPC Control

Sony Four Legged Robot Football League Rule Book

REACTOR 40 MECHANICAL Configuration Guide

Step 1. CoderDojo Milltown Exercise 1 Pong Page 1 of 13

ASTER ELECTRONIC INTERACTIVE TABLE TENNIS GAME

September 10, 2014 Revision 2. Puncher Unit-BE1/BF1/BG1/BH1 Service Manual

Microsoft Windows Software Manual for FITstep Stream Version 4

RoboCupJunior Soccer Rules 2011

Last updated: Feb 11th 2008 by Sebastian Polly, Brian Thomas, Tairo Nomura, Sumon Azhar

OPERATION AND INSTALLATION MANUAL

Stick Up Cam Battery

Laboratory Mortar Mixer (Testing)

Computer Scorekeeping Procedures Updated: 6/10/2015

Transcription:

Standard League Robot Soccer EV3 Compass Training Curriculum Brian Thomas RoboCup Junior Australia Inc Copyright 2018 1

Standard League Robot Soccer EV3 Compass Training Welcome! The aim of this curriculum is to guide you through a sequence of programming steps in order to allow a robot to compete in RoboCup Junior and WRO Football. Every attempt has been made to keep these steps simple and easy to attain. Consequently, modifications may be needed to program a more efficient robot for the competitions. You will find that Standard league is no harder than any other other robot competitions. It is actually easier for beginners to enter and compete successfully in Simple Simon Soccer! They can then raise their expectations and skills as they progress. Incorporating kicking in the correct direction is one of those progressions. It is quite a huge leap up from Simple Simon, so make sure that all steps are followed in sequence. There is no easy answer or quick fix to get a robot kicking in the correct direction, so knowing intricacies of your Simple Simon robot beforehand is important. Students need to understand the differences that may be required for their individual robots. Students have often gone straight to the more complex programming, have become lost and then disillusioned. Those who work through the curriculum enjoy the success at each step, and carry with them knowledge that will eventually allow them to develop their own algorithms and programs. The sequence of this Curriculum starts with programming for a Simple Simon Soccer Playing Robot. These instructions can be found at http://www.robocupjunior.org.au/tutorials.this will allow any robot to successfully play soccer on any field type. The controlling aspect of any robot soccer game is the ball. If the ball is on the field then so should the robots be, chasing it. Very few students master Robot Soccer in a single year s preparation. They set their goals at a certain level and return the following year with their goal being the next level. This is usually with a different robot, so they need to reprogram anyway. Further information can be obtained from our web site www.robocupjunior.org.au. Any questions queries or comments, contact: b.thomas@ccg.vic.edu.au Please Note These training notes are the property of RoboCup Junior Australia Inc. All or part of these notes are not to be copied or used for commercial gain without the permission of the RoboCup Junior Australia Inc Committee. **LEGO, Mindstorms and EV3 are Registered Trademarks of the LEGO Corporation RoboCup Junior Australia Inc Copyright 2018 2

Compass 1: Feedback It is assumed that you have worked completely through the Simple Simon Curriculum before starting this unit. When ever doing a more complex challenge such as this, it is always important to have feedback. This allows you to ensure that the components are working OK and also gives you an immediate message of what they are reading. Robot Setup Attach a Hitechnic compass to your robot. Make sure it is as high as possible, but inside the 22cm limit, away from motors and have it aiming forwards. Plug the sensor into Sensor Port 2. The IRV2 should be plugged into Sensor Port 1 Remember, your compass will pick up stray magnetic fields from power cables, motors and metal objects, including table supports. Method Seeing that the Hitechnic Sensor is not a LEGO product. It sometimes does not do what you expect. The best solution is to unplug and plug in the sensor wire. The Port View function at the bottom right of your screen does not consistently give readings so cannot be relied upon. This program will give your compass reading on the EV3 screen and will use the EV3 indicator lights to let you know when the robot is facing in the correct direction. The compass sensor has the advantage over a Gyro sensor that its direction does not drift over time. Programming Start a new program Add an indefinite loop Insert the Yellow Hitechnic Compass Sensor block and set it to Port 2 Set the Compass Block to Measure-Relative Heading Insert a Green Display Tile Select Text in the Display Drop Down Select Wired from the File Name drop down in the top right corner of the Display Tile Change X and Y values to 50 so that the display is in the centre of the screen Wire the compass heading to the Text input RoboCup Junior Australia Inc Copyright 2018 3

If you run the program. The reading on the screen should start at 0 and the give negative readings as it is rotated in a clockwise direction or positive readings for anticlockwise. Method Now to give visual Feedback while the robot is playing a game. Firstly you need to set the direction that the robot wants to aim. Rotate the robot to the desired direction of the goal and take the reading. Insert this reading in the Compare To drop down in the sensor block. This needs to be done before each tournament to adjust for the different orientations of the playing fields. Of course this will not change during the day so only has to be done once for each direction that your robots are kicking. Now, to allow your robot to give on field feedback for correct and incorrect direction. This is done with the robot starting by aiming at the goal it is kicking to and giving a green light on the EV3 when it is aiming towards the goal and red when it is not. Programming Create another program on the same screen as above by adding another Start tile Insert an Indefinite Loop Insert Yellow Compass Sensor Tile Set it to Measure-Relative Heading Add a Range Tile and Set it to Inside -45 and +45 Add a Switch set to Logic Insert Brick Status Light tiles to the upper and lower branches of the switch Set the Upper Light to Green and not flashing Set the Lower Light to Red and not flashing Run this program. Manually turn the robot around with your hand. The robot should flash green when it is aiming towards goal and red when it is aiming away. Turn the robot 360 degrees in both directions. You will see that it continues to flash green when it aims towards its goal. This is the advantage of using a compass over a gyro sensor. The gyro has a blind spot between +/- 270 degrees and +/- 359 degress rotation RoboCup Junior Australia Inc Copyright 2018 4

Compass 2: Ball Avoidance You are now able to look for the ball and kick it using Simple Simon Programs. The only thing left is to make sure that you will kick it in the right direction. Therefore you must use your Compass sensor to make sure you are kicking in the right direction and not goals for the opposition. Method Before using the Compass sensor, you must devise tactics to avoid the ball when it is detected and the robot is heading in the wrong direction. Ball Ball The diagram above shows possible paths when the robot is kicking from right to left and is stuck on the wrong side of the ball. The circular path takes longer, but allows for greater accuracy on the return. The second one is simpler to program, but relies on a number of moves to get to the correct position. We will focus on the simpler path. The robot must trace a path that takes it past the ball and quickly begin a scan that will have it approaching the ball from the right direction. 1. The robot senses the ball. 2. The robot approaches the ball to a set distance. This allows the compass reading to settle. 3. The robot checks its Compass to see if it is kicking the right direction. 4. It finds it is on the wrong side of the ball. 5. The robot turns slightly to the right to miss the ball. 6. The robot goes past the ball and starts again. This is not easy, as the path varies from robot to robot and changes as battery levels change. RoboCup Junior Australia Inc Copyright 2018 5

Method Start with a new program Add a loop Add in IRV2 sensor tile. Set it to Alternating-Direction/Strength Insert a Compare tile and set it to Greater than 100. Add a Logic Switch Insert Motor Forwards in the False branch and Motor Stop in the True branch Run the program with the ball in front of the robot. The robot will approach the ball until the intensity reaches 100 and then stop. The intensity reading needs to be adjusted so that the robot stops at 15 cm from the ball. This will vary with different light conditions at venues and must be regularly adjusted. Practise by running the robot in different light levels and calibrate it to stop at 15 cm. Now add a simple ball avoid movement in the True branch to get the robot past the ball without touching it. Once again test-improve, test-improve, test-improve.. RoboCup Junior Australia Inc Copyright 2018 6

Compass 3: Compass Kick and Ball Avoid This is the final step into preventing your robot from kicking own goals. This will be done by combining the Compass Program with the Ball Avoid Program. Robot Setup Attach a Compass Sensor to your robot. Make sure it is as high as possible within the rules and have it aiming forwards. Plug this sensor into Sensor Port 2. The IRV2 should be plugged into Sensor Port 1. Programming Open the Feedback program and copy the blocks inside of the loop in the Ball Avoid Program. Paste this into the Feedback program, just after the Red Light. Insert Motor Forward blocks after the green light. This is when the robot is facing goal, so needs to be going as fast as possible. You can use Unregulated Motor for this to get maximum power. Now test-improve, test-improve, test-improve.. If the Red Light comes on too often, you may have to change the -45 to +45 range to + 60 or- 60, or maybe even more. If the robot keeps hitting the ball you it may be getting too close, so you will need to reduce the IR Intensity threshold or turn more during the ball avoid. RoboCup Junior Australia Inc Copyright 2018 7

Compass 4: Ball Chase and Ball Avoid Only when you are totally happy with your ball avoid program, you can create a My Block and then insert this program into the Simple Simon program just as a simple block Programming If you place the Ball Avoid into your Simple Simon program, it will become very crowded. A great way to avoid this is to create your own block. Select all of the tiles inside of the Ball Avoid Loop Do not select the loop. Go to Tools on the top tab Select My Block Builder. The panel to the right will appear Type in something like Ball Avoid in the block name Select an icon for your block that fits the action of you robot Click Finish and your large program will become a single block This block can now be found in the teal coloured section of you control panel This block can be changed by double clicking on it. Simply paste this Block into the number 5 tab of the modified Simple Simon program and you are ready to go in Standard League. You can also experiment by placing the block in 4 and 6. This works well with some robots. RoboCup Junior Australia Inc Copyright 2018 8

Compass 5: Advanced Ball Avoid When your robot is executing a Ball Avoid, it will often go the long way around the ball. For example, it will travel 270 degrees around the ball rather than 90 degree. This program will allow your robot to select the short way around the ball in order to be facing the goal it is kicking to. This is not easy, it will take time, but the result will be a highly competitive robot if you get it right. Method If the robot is kicking towards the left of page on the diagram below. It will register the following readings when facing the ball in the centre. This will take a bit to get your head around. Load up the Feedback Program onto your robot, get a ball put it in front of goal and move the robot around the ball. 45 Goal 180 Ball 0-45 Range Robot Aim Robot Action -45 to +45 Toward Goal Kick Goal -45 to -180 Away from Goal-Left Ball Avoid Right 45 to 180 Away from Goal-Right Ball Avoid Left Do not start programming until you have this totally clear in your head Simply if the Compass is greater than 0, it needs to Ball Avoid Left. If it is less than zero Ball Avoid Right. RoboCup Junior Australia Inc Copyright 2018 9

Programming You will now create a Compass range filter, which will have your robot avoiding the ball in the shortest direction to get it to face goal. Use the ball avoid action that you have developed in the previous unit Start with the Ball Avoid Program Add a Compass Greater Than Zero Tiles and Switch to the Top Branch Program the robot to Ball Avoid Left in the True branch Program the robot to Ball Avoid Right in the False branch The programming is actually easier than working out the logic of what is going on. Run the program, place the robot at different sides of the ball, heading right or left from the Compass Zero. The robot should work its way around the ball until the ball is between the robot and the goal every time. Now test-improve, test-improve, test-improve.. When you have this working perfectly the contents of the loop can be copied and pasted into the Ball Avoid Section of the My Block you have created. This section has a Target Compass Heading in it. When calibrating for a competition field, this must be changed as well. RoboCup Junior Australia Inc Copyright 2018 10