Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Robot Shove (aka Bottle RoboSumo) Rules & Judging Guidelines North American Championship Nov 3, 2012, 2pm~6pm Lawrence Tech 1.
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO NXT robotics and Robot Sumo
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
NXT 2-Motor Car Adapted from Physics by Design, Second Edition, by Barbara Bratzel, College House Enterprises, 2007 MAXA ROBOTICS 2011.
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
EV3 Workshop Curriculum Developed by Joe DeRose, Ph.D.
EducateNXT Enter the name “Sound Graphing” for your experiment. Real-time Data Logging Click the Switch to NXT Data Logging icon in the top-left corner.
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.
Engineering Roles We will be forming groups of 3 students
LabView Basics.
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Sensors For Robotics Robotics Academy All Rights Reserved.
Automation and Robotics
Robot Soccer Challenge
Using the NXT Light Sensor. 2 Connect One Light Sensor – 1 From My Files use Left / Right NXT buttons and get to View menu and push Orange button. From.
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
NXTG Workshop for Bottle RoboSumo Lawrence Technological University.
Connecting VEX and ROBOTC
LEGO Robotics Lecture 1: Getting acquainted with your robotic environment.
An Intro to Robots and Computer Programming
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
Computational Neurobiology Center, College of Engineering, University of Missouri, Columbia MO DAY 2 – 50 minutes HOW DOES A ROBOT MOVE?
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
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.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Basic Robot Design. 3 Steps Design Build Program Drawing and thinking of ideas Using your design to make a robot Telling your robot what to do.
Coding for the FIRST Tech Challenge: RobotC
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Maze Challenge Maze Challenge activity > TeachEngineering.org
Today’s Agenda 1.Scribbler Program Assignment 1.Project idea due next class 2.Program demonstration due Wednesday, June 3 2.Attendance & lab pair groupings.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
2 3  A machine  Built to help us  Autonomous (not remote control)  If we want robots to do things for us, we have.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
Sentry System Multiple Sensors
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
EV3 Software EV3 Robot Workshop
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Touch Sensor.
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
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.
Testbed Coding In this activity you will code different challenges for the Testbed. For each challenge a sample program is shown. Use what this sample.
Introduction to Programming in RobotC
NXT Mindstorms Kit Programming
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
Deriving Consistency from LEGOs
By Sanjay and Arvind Seshan
Sensors For Robotics Robotics Academy All Rights Reserved.
Basics for Robotics Programming
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
BEGINNER PROGRAMMING LESSON
Beginner Programming Lesson
BEGINNER PROGRAMMING LESSON
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Oregon Robotics Tournament and Outreach Program
Presentation transcript:

Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2

Bottle Robo Sumo with Lego NXT & RobotC Summer 2012 Lawrence Technological University Co-Developed by Dr. CJ Chung and Dr. Kurt Meister Dr. Chris Cartwright

LEGO NXT is an Autonomous robot Left Motor with Rotation SensorLeft Light Sensor Computer Right Light SensorRight Motor with Rotation Sensor Sonar Sensor

Your first task is to make the robot Go forward on the light paper Until it gets to the edge of the paper And Stop First Program

Light sensors (which are pointed down) Turn on a red light Tell the computer how bright a light they are seeing reflected back Function of the color of the surface and how far the surface is from the light sensors How does the robot know it is at the edge of the paper?

Open the program Go.c Connect your robot to the laptop Turn on the robot Lets Try It!

Open a Program

Open Go.c

Ignore the Error Message

How to Connect Your Robot to Your Laptop

NXT Computer Switch programs Emergency Stop, BACK and turn off Turn on and ENTER

Poll the Robots Sensors

View More Information

Setting Up the Light Sensors Do the same thing for Sensor 3

Lets See What the Robot Sees Put one light sensor over the light paper Put the other light sensor over the edge of the table

Use the Midpoint of Those Values to Decide What is Light and Dark Insert the midpoint in Line 9 where the question marks are

Lets See What the Program Does

Download Go.c to the Robot

Run the Program Press the Orange Button 3 times You should see Run on the display – Don't cheat and run the program from your laptop Put the robot on the folder Press the Orange Button one more time to run the program

Did Your Robot Stop at the Edge? If so, GREAT Try adjusting the variable NormalPower and see what happens If not, Try running the program again while Polling the Brick CONTINUOUSLY and adjust the values

Now, you are ready to play RoboSumo Just like sumo One robot has to push the other off the table Without it going off the table RoboSumo

Just like a bat, the Sonar Sensor sends out sound waves By measuring how long it takes for the sound waves to be reflected back It knows how far away something is It does NOT know what that something is If YOU are the closest thing in front of the robot, it will find YOU!!! How Does the Robot Know Where the Other Robots Are?

Well use Light Sensors the same way we did to find the difference between the light paper and the dark table Now, the robot is just looking for the difference between the light table and the dark edge Much less light is reflected back past the edge of the table How Does the Robot Know Where the Edge of the Table Is?

Open the Program Sumo.c

Change the LightSensorThreshold Insert the same value for LightSensorThreshold you used for Go.c

Lets See What the Program Does

If youre daring, you can adjust some of the other variables SonarSensorThreshold NormalMotorPower HighMotorPower Other Variables to Adjust

Download Sumo.c

If your team is ready to compete, bring your robot to the sumo tables The display on your NXT should show sumo.c When I say go, press the orange button to run your program If we have time, the last surviving robot from each table will have a final match Mini Sumo Competitions

The goal is to be the first robot to find the bottle and push it off the table OR Have your robot push the opponent off the table Bottle Robo Sumo

Necessary Strategy for bottle sumo Instead of just moving forward, how could we have the robot search for the bottle (or an opponent)?

The Ultrasonic sensor uses sound waves to locate objects and determine how far they are from the robot, just like a bat! However, it sees things in a wide angle, just like your eyes Its field of vision is about 45 degrees to either side That means it sees things that are not directly in front of the robot Finding Objects using Sonar Sensor

FindObject.c

Problems? Did the robot find YOU instead of the bottle? Did the robot spin too far (slow down the power)? Did the robot stop too soon (remember field of vision)?

Some ideas to make a complete Bottle Robo Sumo program Usually the bottle will be located in front of the robots as shown below: Start with left x degree spin-search and right 2x degree spin-search, where x is less than 90 degrees Whenever, it backs up, do the similar spin- search B R1R1 R2R2

Bottle Robo Sumo Opportunities US Open in Nov 2012 Robot Olympic in South Korea, Dec 2012 Robot Olympic in Colorado, USA, Dec 2013 …

Close Go.c, Sumo.c, FindObject.c Do NOT save changes Assistants Will Close Your Programs

Between Groups Make sure correct NXT is matched with laptop Check the battery level on the NXTs Replace the battery pack if less than ½ charged Put the old battery pack on the charger Make sure students didn't save programs If so, open copy and save as Help the students assemble in teams of 2