Robot Soccer Challenge

Slides:



Advertisements
Similar presentations
What Is an Electric Motor? How Does a Rotation Sensor Work?
Advertisements

Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
How Do You Make a Program Wait?. 1. What is an algorithm? 2. Can you think of a reason why it might be inconvenient to program your robot to always go.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Mine Mapping Remote Communication.
Follow the Light Follow the Light Presentation > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Robot Soccer Challenge
Bluetooth Remote Control
Remote Control Using Bluetooth. 1. Give two examples of electrical connections. 2. What is the difference between wired and wireless connections? 3. What.
What Is Bluetooth? How Does It Differ from a Wired Connection?
Computational Neurobiology Center, College of Engineering, University of Missouri, Columbia MO DAY 2 – 50 minutes HOW DOES A ROBOT MOVE?
How Does a Light Sensor Work?. 1. How do humans sense light? 2. Provide an example “stimulus-sensor- coordinator-effector-response” framework using the.
The NXT is the brain of a MINDSTORMS® robot. It’s an intelligent, computer-controlled LEGO® brick that lets a MINDSTORMS robot come alive and perform.
Control Using Sound. 1. What is sound? 2. How does the LEGO sound sensor sense sound? 2 Control Using Sound Pre-Quiz.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
Music by Touch. 1. Provide an example “stimulus-sensor- coordinator-effector-response” framework for both your (human) sense of touch and the robotic.
Welcome to the Virtual Math Teams of the Math Drexel University A Quick Tutorial for Beginners Step 1. First of all, you need to go to this URL.
What Is a Program?. What Is a Program? Pre-Quiz 1. What is a program? 2. What is an algorithm? Give an example. 2.
Maze Challenge Maze Challenge activity > TeachEngineering.org
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
Click on these! %2Fblank%2Fbrowse.asp%3FA%3D383%26BMDRN%3D2000%26BCOB%3D0% 26C%3D64893.
How to connect your NXT via Bluetooth A step-by-step instruction.
screen shots Emma Jarman. Adding attachments What is an attachment? An attachment is an that has a file attached to it. The file could be.
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Sentry System Two-Way Communication.
How Do You Make a Program Wait?
Introduction to LEGO Mindstorms EV3 What is in the box?
Remote Control Using Bluetooth
DAY 2 – 50 minutes HOW DOES A ROBOT MOVE?
Exploring Computer Science Lesson 6-5
Meetoo Tips.
Line-Follower Challenge
Using the Lego Mindstorms Edu NXT Software
Don’t Bump into Me! Presentation > TeachEngineering.org
What Is an Electric Motor? How Does a Rotation Sensor Work?
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
How to connect your brick
Sumobot Challenge Sumobot Challenge Activity > TeachEngineering.org
Robotics Using Lego Mindstorms EV3 Mission 1: Building Your Robot
What Is Bluetooth? How Does It Differ from a Wired Connection?
Follow the Light Follow the Light Presentation > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Mindstorms EV3 Programming
What Is a Program? What Is a Program? lesson > TeachEngineering.org
How Does a Color Sensor Work?
How Does an Ultrasonic Sensor Work?
Navigating a Maze.
Sumobot Challenge Sumobot Challenge Activity > TeachEngineering.org
How Does a Touch Sensor Work?
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Music by Touch Music by Touch Presentation > TeachEngineering.org
Lego Robotics Small Builds.
Exploring Computer Science Lesson 6-5
Lego Robotics Small Builds.
Controlling your quadcopter
Sumobot Challenge Sumobot Challenge Activity > TeachEngineering.org
NXT Programming by Paul Cain.
What is a Robot?.
Navigating a Maze.
Warm Up- What is a robot? Describe in one sentence what you understand by the term ‘robot’ 2. What are the main parts of a robot? What do people do to.
Maze Challenge Maze Challenge activity > TeachEngineering.org
That’s Hot! Robot Brain Programming
Using Waits, Loops and Switches
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Hare and Snail Challenges
Topic 6- Basic Computer Literacy
Getting started with LEGO EV3 Mindstorms software
Downloading to the NXT requires the correct hardware setup
Controlling your quadcopter
Presentation transcript:

Robot Soccer Challenge Robot Soccer Challenge activity > TeachEngineering.org Image source: Microsoft clipart at http://office.microsoft.com/en-us/images/results.aspx?qu=soccer&ex=1#ai:MP900422624| Center for Computational Neurobiology, University of Missouri

Pre-Activity Quiz What kind of wireless electrical connection can EV3 robots use to communicate with other electrical devices (including other EV3s)? Can you think of a way to use a Bluetooth connection to enable one EV3 robot to remotely control another? Describe it.

Pre-Activity Quiz Answers What kind of wireless electrical connection can EV3 robots use to communicate with other electrical devices (including other EV3s)? Bluetooth technology is a wireless connection that enables communication between electrical devices.  Can you think of a way to use a Bluetooth connection to enable one EV3 robot to remotely control another? Describe it. Let’s call one EV3 the “controller” and the other EV3 the “receiver.” Answer continues on next page 

Pre-Activity Quiz Answers (continued) When each button (orange, left, right) is pressed on the controller EV3, have the controller send a distinct message (“1”, “2”, “3”) via Bluetooth to the receiver. When no controller button is pressed on the controller EV3, have the controller send another distinct message (“0”) to the receiver. Program the receiver so that: when it receives “1” it moves forward when it receives “2” it moves left when it receives “3” it moves right when it receives “0” it does nothing

Your Design Challenge To program two EV3s (a “controller” and a “receiver”) so that one can be used to remotely control the other via a wireless Bluetooth connection so that… When you press the middle button on the controller EV3, the receiver EV3 moves forward. When you press the left arrow button on the controller EV3, the receiver EV3 turns left. When you press the right arrow button on the controller EV3, the receiver EV3 turns right. Images sources: (LEGO EV3 intelligent brick) 2008 Hugo12, Wikimedia Commons http://commons.wikimedia.org/wiki/File:EV3-brique.jpg; (LEGO robot on wooden floor) 2006 Eirik Refsdal, Wikimedia Commons http://commons.wikimedia.org/wiki/File:Lego_Mindstorms_EV3-FLL.jpg Center for Computational Neurobiology, University of Missouri

Design Challenge Objectives (continued) When we are done, we will be able to control the LEGO MINDSTORMS EV3 taskbot (the “receiver”) similarly to how the robot in this video is controlled: http://youtu.be/zohDeKxXUPo?t=1m. If several groups are able to run their programs at the same time, they can use their EV3 taksbots to “play soccer” with a small ball. To do this, each group remotely controls its taskbot, which acts as one of the soccer players. The LEGO EV3 battle tank (remote controlled) video is 1:58-minutes long at http://youtu.be/zohDeKxXUPo?t=1m Center for Computational Neurobiology, University of Missouri

Part 1: Understanding the Programs Before you use one EV3 to remotely control another, you must understand how the programs for the controller and receiver EV3s work and how they interact with one another. Images sources: (LEGO EV3 intelligent brick) 2008 Hugo12, Wikimedia Commons http://commons.wikimedia.org/wiki/File:EV3-brique.jpg; (LEGO robot on wooden floor) 2006 Eirik Refsdal, Wikimedia Commons http://commons.wikimedia.org/wiki/File:Lego_Mindstorms_EV3-FLL.jpg Center for Computational Neurobiology, University of Missouri

Review: What is an electrical connection? An electrical connection is the link or bond that passes electricity between two or more things. Wireless electrical connections allow two devices to be linked remotely without being joined by a wire. Image source: (six devices connected to chargepod multi-device charger hub; source): http://www.techgadgets.in/misc-gadgets/2007/21/callpod-chargepod-a-multi-device-charger-announced/ and CallPod Mobile Necessities http://www.callpod.com/products/chargepod Center for Computational Neurobiology, University of Missouri

Review: Bluetooth with the EV3 EV3 robots can use a wireless connection called Bluetooth® to communicate. Like many other devices (such as smartphones), the EV3 can send text messages through Bluetooth. Example: If you were worried about an intruder coming into your room, you could program the EV3 to use the ultrasonic sensor to “watch” the door to your bedroom. If the ultrasonic sensor detects the door moving, it could send you a message saying “intruder alert.”

Bluetooth Program Overview In this activity, we need one EV3 to be the remote control device (the “controller”) and the other to be the vehicle that responds to the controller (the “receiver”). So one EV3, the controller, sends messages via Bluetooth when you press different buttons on the EV3 brick. The other EV3, the receiver, receives those messages via Bluetooth and is programmed to move forward, left, right or backwards when it receives the messages.

Controller Program When any one of the three LEGO brick buttons (see above) is pressed, we want the controller to send a corresponding message (“1”, “2,” or “3”) to the receiver. When no buttons are pressed, the controller sends the message “0.” Image sources (LEGO EV3 intelligent brick) 2008 Hugo12, Wikimedia Commons http://commons.wikimedia.org/wiki/File:EV3-brique.jpg Center for Computational Neurobiology, University of Missouri

Receiver Program When the receiver EV3 receives the “0” message via Bluetooth, it knows that the controller EV3 does not have any buttons being pushed and stops moving. When the receiver receives “1,” it knows that the controller’s orange button is being pushed and the receiver moves forward. When the receiver receives “2,” it knows that the controller’s left button is being pushed and the receiver turns left. When the receiver receives “3,” it knows that the controller’s right button is being pushed and the receiver turns right.

Summary: EV3 Interactions Using Bluetooth Controller Program Receiver Program controller button pushed  Via Bluetooth, the controller sends this message  Via Bluetooth, the receiver receives this message  receiver action no button “0” does not move orange “1” moves forward left “2” turns left right “3” turns right

Part 2: Running the Programs! Now that you understand how the programs work, let’s download them onto the EV3s! Once groups have the controller/receiver programs working and have some practice with remotely controlling their taskbots, we’ll organize a game of robot soccer! Image source: (girl chases soccer ball): Microsoft clipart: http://office.microsoft.com/en-us/images/results.aspx?qu=soccer&ex=1#ai:MP900422170| Center for Computational Neurobiology, University of Missouri

Change the Receiver EV3 Name Since the class will have more than one EV3 robot using Bluetooth at the same time, it is best to change the receiving EV3s’ names to something unique so that they are easily recognizable from each other. To do this, follow the instructions below and on the following slides: Turn on the receiving EV3 and use the USB cord to plug it into the computer. Launch “LEGO MINSTORMS EV3” software on the computer. Open a new or existing program.

Change the Receiver EV3 Name (continued) Look for a gray panel of buttons to appear in the bottom right corner of the screen. Click on the button with a picture of the EV3 brick on it.

Change the Receiver EV3 Name (continued) A window appears (see below)

Downloading Instructions Now you are ready to download the controller and receiver programs onto both EV3 bricks. Note: These two programs are provided so you do not have to create them—no programming is necessary for this challenge. Download the receiver program, Receiver.ev3, onto the EV3 that will be receiving messages, which should be an EV3 on a taskbot that can move.

Downloading Instructions (continued) Download the controller program by performing these steps: Open the controller program, Controller.ev3, on the computer and highlight the second block. In the field next to “Connect To,” type in the unique name you gave your receiver robot.

Downloading Instructions (continued) Download the controller program, Controller.ev3, onto the EV3 that you want to use as a remote control device. (This order is important ) Begin running the receiver program on the receiving EV3. Then run the controller program on the EV3 that remotely controls it. Have fun!

Post-Activity Quiz Explain how we used messages sent over a Bluetooth connection to enable one EV3 to be used to remotely control another. What ideas do you have for how you might change the programming to accomplish different tasks using two EV3 bricks? In your own words, what are the steps of the engineering design process? Which is your favorite step? Center for Computational Neurobiology, University of Missouri

Post-Activity Quiz Answer Explain how we used messages sent over a Bluetooth connection to enable one EV3 to be used to remotely control another. Let’s call one EV3 the “controller” and the other EV3 the “receiver.” When each button (orange, left, right) is pressed on the controller, it sends a distinct message (“1”, “2”, “3”) via Bluetooth to the receiver. When no button is pressed on the controller, it sends another distinct message (“0”) to the receiver. We programmed the receiver EV3 so that… when it receives “1” it moves forward when it receives “2” it moves left when it receives “3” it moves right when it receives “0” it does nothing What ideas do you have for how you might change the programming to accomplish different tasks using two EV3 bricks? Answers will vary. In your own words, what are the steps of the engineering design process? And which is your favorite step? The main steps: 1) understand the problem or challenge, 2) brainstorm and research to generate solution ideas and preliminary designs, 3) choose the best solution to pursue as the definitive design, 4) create a prototype, 5) test it and make improvements, 6) present the results and final solution. Center for Computational Neurobiology, University of Missouri

Vocabulary Bluetooth technology: A type of wireless electrical connection used for communication between two devices. electrical connection: The link or bond that passes electricity between two or more things. soccer field  Image source (soccer field diagram): 2014 Denise W. Carlson, College of Engineering, University of Colorado Boulder. Used with permission. Center for Computational Neurobiology, University of Missouri