Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.

Slides:



Advertisements
Similar presentations
EducateNXT The Corridor Challenge The Corridor Challenge requires programming of a robot to negotiate obstacles and the corridor walls in order to reach.
Advertisements

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.
LabView Basics.
How Does a Sound Sensor Work?
Follow the Light Follow the Light Presentation > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
From the NXT top menu Connect desired hardware as indicated Enter a command in the box indicated from the menu provided Repeat for all 5 boxes.
Remote Control Using Bluetooth. 1. Give two examples of electrical connections. 2. What is the difference between wired and wireless connections? 3. What.
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.
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.
Control Using Sound. 1. What is sound? 2. How does the LEGO sound sensor sense sound? 2 Control Using Sound Pre-Quiz.
Robotics Enrichment class Mr. Bosworth. Goals of Class Learn how to build a basic robot that performs various functions Learn how to program robot to.
Don’t Bump into Me!. 1. How do bats sense distance? 2. Describe how bats sense distance in a “stimulus-sensor-coordinator-effector- response” framework.
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.
What Is a Program?. What Is a Program? Pre-Quiz 1. What is a program? 2. What is an algorithm? Give an example. 2.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Navigating a Maze. Navigating a Maze Pre-Quiz 2 1. What is the difference between a program and an algorithm? 2. About how many inches does an NXT move.
Getting Started! Lego Mindstorms Program NXT 2.0.
Maze Challenge Maze Challenge activity > TeachEngineering.org
Reactive robots UPNA The Public University of Navarra Material for pupils & students.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Master Driver. Master Driver Activity Your Engineering Challenge Make your robot move in a straight line from the start position, and make it stop accurately,
Programming a light sensor to follow a black line.
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.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
ICE at Georgia Tech Robots and Artificial Life Forms An NXT Zoo! Mr. Michaud
Somerset Berkley Regional High School Robotics Engineering with LabView.
Robotics Challenges. Challenge Slide 2 Have your robot make a left curved turn around your Lego person. Go forward, then reverse. Come to a stop, play.
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.
That’s Hot! Robot Brain Programming
Forward Until Sound Program
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
Find the Mindstorms Icon on the computer.. To start a new program click go.
LEGO® MINDSTORMS® NXT Move Block.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Using Sensor Data and Port View.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
Mindstorm NXT-G Introduction Towson University Robotics.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Forward Until Near Stop when near a wall.
Advanced issues in Robotics and Programming Dr. Katerina G. Hadjifotinou Experimental Junior High School of the University of Macedonia.
How Do You Make a Program Wait?
The Corridor Challenge
By Sanjay and Arvind Seshan
Follow the Light Follow the Light Presentation > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
What Is a Program? What Is a Program? lesson > TeachEngineering.org
Introduction To Programming with LEGO NXT 2
Programming Part 2 Mod Kit
Navigating a Maze.
Loops and Switches Pre-Quiz
Music by Touch Music by Touch Presentation > TeachEngineering.org
Programming.
Module F: Presentation Understanding Robot Fundamentals
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
BEGINNER PROGRAMMING LESSON
Forward Until Touch Robot goes forward until it hits a wall.
BEGINNER PROGRAMMING LESSON
Navigating a Maze.
An Introduction to VEX IQ Programming with Modkit
SENSORS.
Maze Challenge Maze Challenge activity > TeachEngineering.org
An Introduction to VEX IQ Programming with Modkit
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.
Presentation transcript:

Wait Program! WAIT please!

1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the function of a wait block? Explain how to use a wait block in a program. 3. What should the move block that comes right before a wait block have its duration set to? 2 Wait Program! Pre-Quiz

1. Why is it often better to use conditional commands rather than program a robot to move exact distances? It can be tedious to measure exact distances and the robot does not always move consistently, depending on factors beyond your control (battery charge, motor speed fluctuations, etc.). 2. What is the function of a wait block? Explain how to use a wait block in a program. A wait block causes a program to wait until a specified stimulus occurs before proceeding to the next command. A wait block must specify the stimulus being waited on and follow a move block with duration set to unlimited. 3. What should the move block that comes right before a wait block have its duration set to? Unlimited 3 Wait Program! Pre-Quiz Answers

4 What do you want the robot to do before it hears a sound? What should the duration of this action be set to? Which sensor do you want the wait block to depend on? What do you want the robot to do after it hears a sound? Challenge 1: Program the robot to move forward until it hears a clap, then turn left Make sure the sound sensor is attached to port 2 of your robot. Questions to think about while you program:

5 Challenge 1 Programming Solution

Do This: Write a program so that your robot: Remains at rest until you press the touch sensor. Once you press the touch sensor, moves slowly forward until you press the touch sensor again. Once the touch sensor is pressed a second time, moves twice as fast. Once the touch sensor is pressed a third time, moves twice as fast as before. Once the touch sensor is pressed a fourth time, stops. **HINT** Robot speed can be controlled by adjusting the power setting on a move block. 6 Challenge 2: Wait Block Programming Challenge

7 A BCD E F G H ABCDABCD Challenge 2 Programming Solution

8 A B C D E F G H EFGHEFGH (continued) Challenge 2 Programming Solution

1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the function of a wait block? Explain how to use a wait block in a program. 3. What is an algorithm? 9 Wait Program! Post-Quiz

1. Why is it often better to use conditional commands rather than program a robot to move exact distances? It can be tedious to measure exact distances and the robot does not always move consistently, depending on factors beyond your control (battery charge, motor speed fluctuations, etc.). 2. What is the function of a wait block? Explain how to use a wait block in a program. A wait block causes a program to wait until a specified stimulus occurs before proceeding to the next command. A wait block must specify the stimulus being waited on and follow a move block with duration set to unlimited. 3. What is an algorithm? An algorithm is a clear and specific procedure for solving a problem in a finite number of steps. 10 Wait Program! Post-Quiz Answers

11 algorithm: A clear and specific procedure for solving a problem in a finite number of steps. conditional command: A command in which the completion of an action depends on a condition being satisfied. For example, if I see a stop sign (condition), I stop (action). engineering design process: A series of steps used by engineering teams to guide them as they develop new solutions, products or systems. iteration: Doing something again. stimulus: Something that rouses or incites to activity. For the purposes of this lesson, it is an action that can be perceived by a robot that causes it to move on to the next part of the program. Vocabulary

12 Slide 1: Boy holding stop sign; source: Microsoft® clipart: us/images/results.aspx?qu=stop&ex=1#ai:MP |mt:2| us/images/results.aspx?qu=stop&ex=1#ai:MP |mt:2| Device and programming images from LEGO MINDSTORM NXT User’s Guide Screen captures and diagrams by author Images Sources