Robot Programming Manual

Similar documents
An Introduction to Programming using the NXT Robot:

Agent-based/Robotics Programming Lab II

Robotic Programming. Skills Checklist

Robotics Workshop. for Parents and Teachers. September 27, 2014 Wichita State University College of Engineering. Karen Reynolds

RoboCup Sumo Workshop. Margaux Edwards July 2018

Robotics using Lego Mindstorms EV3 (Intermediate)

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

How Do You Make a Program Wait?

Lab book. Exploring Robotics (CORC3303)

Let There Be Light. Opening Files. Deleting National Technology and Science Press

Welcome to. NXT Basics. Presenter: Wael Hajj Ali With assistance of: Ammar Shehadeh - Souhaib Alzanki - Samer Abuthaher

EV3 Advanced Topics for FLL

Chapter 14. using data wires

acknowledgments...xv introduction...xvii 1 LEGO MINDSTORMS NXT 2.0: people, pieces, and potential getting started with the NXT 2.0 set...

Deriving Consistency from LEGOs

Ev3 Robotics Programming 101

contents in detail PART I GETTING STARTED acknowledgments...xvii

Mindstorms NXT. mindstorms.lego.com

Pre-Activity Quiz. 2 feet forward in a straight line? 1. What is a design challenge? 2. How do you program a robot to move

understanding sensors

Studuino Icon Programming Environment Guide

Lego Nxt in Physical Etoys

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. LEGO Bowling Workbook

Pre-Day Questionnaire

Unit 4: Robot Chassis Construction

FLL Programming Workshop Series

Line-Follower Challenge

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

2015 Maryland State 4-H LEGO Robotic Challenge

Let s start by making a pencil, that can be used to draw on the stage.

Automatic Headlights

Create Your Own World

Erik Von Burg Mesa Public Schools Gifted and Talented Program Johnson Elementary School

Create a Vector Glass With Layered Reflections to Create Depth

LEGO Mindstorms Class: Lesson 1

Create a Simple Game in Scratch

Pong Game. Intermediate. LPo v1

Laboratory 7: CONTROL SYSTEMS FUNDAMENTALS

Scratch for Beginners Workbook

Competitive VEX Robot Designer. Terminal Objective 1.4: program and operate the Tumbler

Chapter 1. Robots and Programs

Vision Ques t. Vision Quest. Use the Vision Sensor to drive your robot in Vision Quest!

AP Art History Flashcards Program

Before displaying an image, the game should wait for a random amount of time.

Ghostbusters. Level. Introduction:

Nebraska 4-H Robotics and GPS/GIS and SPIRIT Robotics Projects

MazeBot. Our Urban City. Challenge Manual

Introduction to Turtle Art

The ideal K-12 science microscope solution. User Guide. for use with the Nova5000

Creating a Frame by Frame Animation for PhotoStory

After Performance Report Of the Robot

A Day in the Life CTE Enrichment Grades 3-5 mblock Programs Using the Sensors

Haunted House. If you drive completely off the black paper or visit a room out of order, your turn is over. Back groun d. Back groun d B A C K G R

Here Comes the Sun. The Challenge

Introduction to Robotics Rubrics

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

2018 First Responders 4-H Robotics Challenge Page 1

Flowcharts and Programs

Introduction to programming with Fable

Creating Computer Games

1-11. Mini Sumo Bot. Building Instructions. Fun Projects for your LEGO MINDSTORMS NXT! Home Projects Help Contacts. Building: Program:

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

COMPUTING CURRICULUM TOOLKIT

MEASUREMENT CAMERA USER GUIDE

Hands On Activity: Robotics in the Classroom. Using Lego Mindstorms (Prepared by Connie Gomez and Virgilio Gonzalez)

Let s start by making a pencil that can be used to draw on the stage.


Where C= circumference, π = 3.14, and D = diameter EV3 Distance. Developed by Joanna M. Skluzacek Wisconsin 4-H 2016 Page 1

Parts of a Lego RCX Robot

Closed-Loop Transportation Simulation. Outlines

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

Instructors. Manual GEARED. After-School Robotics Program By Haley Hanson

Robotics Platform Training Notes

Getting Started. with Easy Blue Print

Animating objects 1. We want the graphic we just created to appear in the following sequence.

LS Creative Learnings Pvt Ltd. STEM-Robotics Education. Report for Sep S.B. Patil Public School, Pune

Congratulations on your decision to purchase the Triquetra Auto Zero Touch Plate for All Three Axis.

Apple Photos Quick Start Guide

Basic NXT-G Programming

Step 1: Set up the variables AB Design. Use the top cells to label the variables that will be displayed on the X and Y axes of the graph

S B Patil Public School, Pune

Robot Olympics: Programming Robots to Perform Tasks in the Real World

Assignment 5 due Monday, May 7

A Day in the Life CTE Enrichment Grades 3-5 mblock Robotics - Simple Programs

12. Creating a Product Mockup in Perspective

FIRST LEGO LEAGUE. PowerUp Summer Game. Presented by FRC 6328

4-H Mindstorm EV3 Robotics Camp Mills County 4 Day Camp Day 1, Tuesday AGENDA

Line Detection. Duration Minutes. Di culty Intermediate. Learning Objectives Students will:

Hi everyone. educational environment based on team work that nurtures creativity and innovation preparing them for a world of increasing

I.1 Smart Machines. Unit Overview:

04. Two Player Pong. 04.Two Player Pong

Sten BOT Robot Kit 1 Stensat Group LLC, Copyright 2016

Land use in my neighborhood Part I.

Getting Started. Right click on Lateral Workplane. Left Click on New Sketch

2.4 Sensorized robots

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Programming I (mblock)

New Sketch Editing/Adding

Multi-Robot Cooperative System For Object Detection

Programming with Scratch

Transcription:

2 T Program Robot Programming Manual Two sensor, line-following robot design using the LEGO NXT Mindstorm kit.

The RoboRAVE International is an annual robotics competition held in Albuquerque, New Mexico, for 3rd grade through 12th grade aged students. www.roborave.org This manual will walk you through programming this LEGO NXT robot to follow a line with 2 T intersections, deliver balls to a tower, and return home. This manual shows NXT Software v1.1. RoboRAVE International is a program supporting the mission of Making Research a Core Value. For more information, contact Inquiry Facilitators at 888-527-2007 or e-mail manual@gotoif.org. Copyright 2011 Inquiry Facilitators, Inc. 9 8 7 6 5 4 3 2 1

Programming Manual Getting Started................................................. 2 Following a Line................................................ 6 At the Tower.................................................. 38 Return from Tower............................................. 50 Appendix.................................................... 52 Command List and Location................................. 53 1

RoboRAVE International This manual will help you program a LEGO NXT robot to follow a black line to a tower, deliver a payload of ping-pong balls, back up, turn around, and return to the starting position -- all in under three minutes! We assume that you have already installed the Mindstorm NXT programming software. If the Mindstorm NXT programming software has not been installed, please install before proceeding. To begin, click on the Mindstorm NXT software icon. In the pages that follow, the larger text size gives the basic instructions. The smaller text size is additional background information for adults or interested students. 2

Programming Manual If this is the first time you have used the software, look for the region labeled Start New Program. 3

RoboRAVE International If you are starting a new program, type its name in the box under Start New Program. If you are working on a program that s already been saved, navigate to it in the box under Open Recent Program. 4

Programming Manual This is the first screen you ll see. Click on the middle tab to see the Complete palette of icons. Each of the tabs reveals another palette of icons. There is a list of all the commands on each of the palettes in the Appendix. 5

RoboRAVE International Click on the top icon to see the Common flyout. 6

Programming Manual Click on the Loop icon. 7

RoboRAVE International Drag the Loop command off the flyout. All the programming commands will be entered the same way finding the command and dragging it to the work area. A white box shows where the command will be placed. Placing a command incorrectly can cause the program to crash and all your work to disappear. Save your work often! 8

Programming Manual Drag the Loop command to the Start box and release the mouse button. Dragging the Loop command to the Start box begins the program. The first step of the program will be a set of instructions inside a loop. Those instructions will repeat over and over until a certain condition is met. 9

RoboRAVE International Be sure the Loop command is selected. You can tell if it is selected because the blocks are outlined in blue. The Configuration Panel on the bottom left allows you to change information about a command. Here the Configuration Panel tells us that this Loop command will repeat forever. That s what we want. The bottom right window gives you information about the command and access to more help. 10

Programming Manual Go to the Common flyout (top green button) and drag a Switch to the Loop. The Loop will expand to fit the Switch command. The white box shows where the command will drop. Be sure the white box is inside the Loop. 11

RoboRAVE International Drop the Sensor inside the Loop command. 12

Programming Manual Use the Configuration Panel at the bottom of the page to change the Touch Sensor to a Light Sensor. Notice that the icon has changed from a hand to a light. 13

RoboRAVE International Click on the Darker Than button in the Compare section. When you test the program, you may want to change the Threshold Value (the box that shows 50 ) so the sensors of your robot more accurately sense the line. 14

Programming Manual Go back to the Common flyout and get another Switch command. 15

RoboRAVE International Drop the Switch command in the top part of the Light Sensor Switch. If you need to move the work area, click on the hand icon above the work area. Be sure to click on the arrow before you continue programming. 16

Programming Manual Be sure the Switch is in the correct place. 17

RoboRAVE International Change the settings to: Light Sensor Port: 4 Compare: Darker Than 18

Programming Manual Drag another Switch to the lower part of the first Switch. Change the settings to: Light Sensor Port: 1 Compare: Darker Than Switches are located in the top (Common) flyout OR on the Common palette. To use the Common palette, click on the green circle right above the Configuration Panel. 19

RoboRAVE International Go to the Common flyout and get a Move command. 20

Programming Manual Drop in the location shown. 21

RoboRAVE International Change the settings of the Move command to: Port: B and C Direction: Up Power: 35 Clicking in the circle in front of the Port letter or the Direction toggles the button on (orange) or off (white). 22

Programming Manual Change the Duration to Unlimited. 23

RoboRAVE International Drag two Loops to the location shown inside the top inner Light Sensor Switch. Loops are in the top (Common) flyout. 24

Programming Manual Drag a Move command into the location shown. Change the settings in the Configuration Panel to: Power: 35 Duration:.25 Seconds 25

RoboRAVE International Go to the Action flyout and get a Motor command. Move commands are found in the Command (top green circle) flyout. 26

Programming Manual Drag the Motor command inside one of the upper loops. Change the settings to: Port: B Direction: Down Power: 45 27

RoboRAVE International Add two more Motor commands. Use the Configuration Panel to program each of the motors. Port: C Direction: Up Power: 45 Port: B Direction: Down Power: 45 28

Programming Manual Add another Motor command. Change the settings to: Port: C Direction: Up Power: 45 29

RoboRAVE International Click on the first inner loop. The two sides of the loop should be outlined in blue. Change the settings to: Control: Time Unit:.25 (seconds) This time setting will need to be changed based on the length of time the robot needs to find the line. 30

Programming Manual Select the second inner loop. Change the settings to: Control: Sensor Sensor: Light Sensor Port: 4 Until: Darker than (click in front of left light) 31

RoboRAVE International Drag a Motor command to the bottom line of the top Light Sensor Switch. Change the settings to: Port: B Direction: Down Power: 45 The Motor command is in the Action (light green) flyout. 32

Programming Manual Drag another Motor command to the same line. Change the settings to: Port: C Direction: Up Power: 45 33

RoboRAVE International Drag a Motor command to the top line of the lower Light Sensor Switch. Change the settings to: Port: B Direction: Up Power: 45 34

Programming Manual Drag another Motor command to that line. Change the settings to: Port: C Direction: Down Power: 45 35

RoboRAVE International Select the outside Loop. Change the Control to Sensor. 36

Programming Manual Change the settings to: Sensor: Ultrasonic Sensor Port: 3 Show: Centimeters (change this before changing the Distance) Distance: 12 This command instructs the robot to follow the instructions inside the loop until the ultrasonic sensor (which sends out an ultrasonic signal and sense how long it takes to bounce back) is within 12 cm of the tower. 37

RoboRAVE International Drag a Move command to the line outside the Ultrasonic Sensor Loop. Change the settings to: Port: A, B, and C Direction: None This command stops the robot when it reaches the tower. 38

Programming Manual Drag a Motor command after the stop moving command. Change the settings to: Port: A Direction: Up Power: 45 Duration: 6 Seconds 39

RoboRAVE International Drag a Wait command from the Common flyout to the end of the program. 40

Programming Manual Change the settings of the Wait command to: Control: Time Unit: 1.5 (Seconds) 41

RoboRAVE International Drag a Motor command to the end of the program. Change the settings to: Port: A Direction: Down Power: 45 Duration: 6 Seconds 42

Programming Manual Drag a Move command to the end of the program. Change the settings to: Port: B and C Direction: Down Power: 45 Duration: 1.5 Rotations 43

RoboRAVE International Drag two Loops to the end of the program. Insert a Motor command in the first Loop. Change the settings to: Port: B Direction: Down Power: 45 The Loop command is in the top (Common) flyout. 44

Programming Manual Insert another Motor command to the first Loop. Change the settings to: Port: C Direction: Up Power: 45 45

RoboRAVE International Insert a Motor command in the second loop. Change the settings to: Port: B Direction: Down Power: 45 46

Programming Manual Insert another Motor command in the second loop. Change the settings to: Port: C Direction: Up Power: 45 47

RoboRAVE International Click on the first Loop. Change the settings to: Control: Time Unit:.45 (Seconds) 48

Programming Manual Select the second Loop. Change the settings to: Control: Sensor Sensor: Light Sensor Port: C Until: Darker Than 49

RoboRAVE International Select the entire first Loop. Copy it by going to Edit and Copy or typing CTRL-C. 50

Programming Manual Paste the copy of the first Loop at the end of the program. You may need to drag it into the correct position. 51

RoboRAVE International Situation Left Light Sensor (1) Right Light Sensor (2) Left Motor (B) Right Motor (C) 1 w w 2 w b 3 b w 4 b b Your robot has two light sensors, two motors, and one ultrasonic sensor. When the robot goes forward in a straight line (Situation 1), both light sensors see white and both motors go forward. When the line turns to the right (Situation 2), the right light sensor (light 2) sees black. The right motor (C) goes in reverse to make the robot turn right. When the line turns to the left (Situation 3), the left light sensor (light 1) sees black. The left motor (B) goes in reverse to make the robot turn left. When the robot comes to a T, both of the sensors see black. You need to program the robot to turn in the correct direction when it gets to the T. 52

Appendix Common palette Move Record/Play Sound Display Wait Time Touch Light Sound Distance Loop Switch Complete palette Common Move Record/Play Sound Display Wait Loop Switch Action Motor Sound Display Send Message Motor* (RCX) Lamp Sensor Touch Sensor Sound Sensor Light Sensor Ultrasonic Sensor NXT Buttons Rotation Timer Receive Message Touch* (RCX) Rotation* (RCX) Light* (RCX) Temperature * (RCX) Flow Weight Loop Switch Stop Data Logic Map Compare Range Random Variable Advanced Text Number to Text Keep Alive File Access Calibrate Reset Motor Custom palette My Blocks Web Downloads 53