Robot Activity: Programming the NXT 2.0

Similar documents
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.

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.

Technology. Using Bluetooth

1001ICT Introduction To Programming Lecture Notes

Using the Lego NXT with Labview.

LEGO Engineering Conferences ROBOLAB and MINDSTORMS Education Version 4.5 March 2008

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

Introduction WELCOME TO LEGO MINDSTORMS EDUCATION

Robot Soccer Challenge

Technology. Using Bluetooth

Standard League WRO Football Simple Simon EV3 Training Curriculum

GEN II Robot Soccer EV3 Compass Training Curriculum Brian Thomas

Heating of Land and Water

Rescue Rover. Robotics Unit Lesson 1. Overview

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

Getting Started with the LabVIEW Toolkit for LEGO MINDSTORMS NXT

Standard League Robot Soccer EV3 Compass Training Curriculum Brian Thomas

The NXT Generation. A complete learning solution

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

Boyle s Law: Pressure-Volume Relationship in Gases

AKTA ION EXCHANGE CHROMATOGRAPHY SOP Date: 2/02/05 Author: A DeGiovanni Edited by: C. Huang Reviewed by:

FireHawk M7 Interface Module Software Instructions OPERATION AND INSTRUCTIONS

World Robot Olympiad 2018

SOFTWARE FOR CONTROL OF ROBOTIC MANIPULATOR

Race Screen: Figure 2: Race Screen. Figure 3: Race Screen with Top Bulb Lock

Beginner Category Tug of War 2v2

Figure SM1: Front panel of the multipatcher software graphic user interface (GUI) at the beginning of multipatcher operation.

AKTA 3D SOP. Click on the System Control tab. This screen has 4 windows.

Microfluidic Demonstration

AKTA MC SOP Page 1 9/27/04 AKTA METAL CHELATING SOP

World Robot Olympiad 2019

Acidity Tester. Project OBJECTIVES DIFFICULTY LEVEL

SENSUS PRO MANAGER (for SENSUS or SENSUS PRO devices) User s Guide -- Windows. Version 2.0 Published October 17, ReefNet Inc.

PC Configuration software for Discovery MkVI v 1.03 User guide

Wiimote in Physical Etoys

Chapter 13. ANTY: the robotic ant

Downloading/Transferring Golf Courses

The Complete 100 Day Dash Guide Updated May 7, 2013

Missions and Rules for 2009 Smart Move FLL Competition

FLL Indonesia Category

Microsoft Windows Software Manual for FITstep Stream Version 4

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

Oxygen Meter User Manual

Perfect Golf Quick Start Guide

Diver-Office. Getting Started Guide. 2007, Schlumberger Water Services

DDR Dive Data Recorder Manual - Rel /12

This document contains recommendations that may help teams be more successful in preparing for and participating in the FTC World Championship Event.

In addition to reading this assignment, also read Appendices A and B.

PRODUCT MANUAL. Diver-Mobile for Android

CONSOLE-320 ENGLISH. 230A: CONSOLE-320 with cable data output Item 230B: CONSOLE-320 with cable + wireless radio data output

FIBA Europe Coaching Website. Manual. Practice Section

1. First start a new scratch project and remove the default sprite.

ELIMINATOR COMPETITION DRAG RACE Program Manual Firm Ver 4.11

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

Mac Software Manual for FITstep Pro Version 2

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

DST Host User Manual

SENSUS PRO MANAGER (for SENSUS or SENSUS PRO devices) User s Guide Palm OS. Version 2.0 Published October 17, ReefNet Inc.

RM-80 respiration monitor

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

Read this first: To maximize performance and eliminate surprises, the team must take the time to read and understand FOUR documents:

The ICC Duckworth-Lewis-Stern calculator. DLS Edition 2016

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

This is the second part of the installation and set-up guide for this latest version of the NRS, covering:

HyperSecureLink V6.0x User Guide

To Logon On to your tee sheet, start by opening your browser. (NOTE: Internet Explorer V. 6.0 or greater is required.)

CS Problem Solving and Object-Oriented Programming Lab 2 - Methods, Variables and Functions in Alice Due: September 23/24

Software Manual for FITstep Pro Version 2

Main Events. LEGO Creation Contest. Mindstorms SumoBots. Mindstorms Drag Racing. FLL Hydro Dynamics Robot Challenge. Angry Birds Robotics

General Rules 2010: Regular category

NXT Robotics Techniques Workshop 2008

[MYLAPS INTEGRATION]

MP15 Jockey Pump Controller

PitchTracker User Guide. Model: DKPT01 User Guide

USER GUIDE USER GUIDE

RUNNING A MEET WITH HY-TEK MEET MANAGER

SWIM MEET MANAGER 5.0 NEW FEATURES

DIVE MEET SCORING INSTRUCTIONS. Day before meet

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

Page 1 GM-FAQ Club Profile FAQs. Page

XC2 Client/Server Installation & Configuration

Wire Buddy Manual IOpath Software

National Robotics Competition 2018 NRC WRO Challenge Manual

OPERATION MANUAL DIVE CALIPER NOT SCALE / IF IN DOUBT ASK* *ALL UNITS IN MM/DEGREES UNLESS SPECIF. Dive Caliper General DC-051

Air Ball! LabQuest Vernier Gas Pressure Sensor Vernier Motion Detector basketball stopper with needle, stopper stem and tubing attached meter stick

Wickets Administrator

Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete.

Your challenge is to create a programme that will make the NXT:

Fencing Time Version 4.3

AIR FLOW ANEMOMETER INSTRUCTION MANUAL

TRAP MOM FUN SHOOT 2011

Pegas 4000 MF Gas Mixer InstructionManual Columbus Instruments

01 TM SuperModified Testing with RS485 <> USB

SCRATCH CHALLENGE #3

Farm to Fork Local Food Production and Marketing

E-Cadet LEGO Robotics Challenge Some Assembly Required

Measuring wind speed and direction

Tournament Manager: Running a VEX IQ Event - Beginner

DG100 Digital Depth Gauge and Timer. Training Module, Rev B

Steltronic StelPad User Guide

Transcription:

Robot Activity: Programming the NXT 2.0 About this Activity In this activity, you will learn about some features of the NXT 2.0 programming software. You will write and save a program for the Lego NXT robot. Finally, you will download the program and run the program on the Lego NXT robot. ****************************************************************************** I. Make sure that your robot batteries are charged. II. Robot Activity Linear Speed - Programming Your Robot Launch the Mindstorms NXT 2.0 program on your computer. Enter a file name for the new program in the Start New Program field (over type Untitled1). For example, use the file name speed. Select the Go >> button. The following screen is used to graphically create your program. At the bottom of the left column select the center tab to display the omplete palette, green, orange, and yellow squares. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-1

The omplete palette contains six programming categories on the left side: ommon: Move, Record/Play, Sound, Display, Wait, Loop, and Switch. Action: Motor, Sound, Display, Send Message, Lamp * Sensor: Sound Sensor, Ultrasonic Sensor, Rotation Sensor, Receive Message, Touch Sensor, Light Sensor, NXT Buttons, Timer, Temperature Sensor Flow: Wait, Loop, Switch, Stop Data: Logic, Math, ompare, Range, Random, Variable, onstant Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-2

Advanced: Text, File Access, Reset Motor, Stop Datalog, Number to Text, Keep Alive, alibrate, Start Datalog Bluetooth onnection At the bottom of the left column select the left tab, green circle, to display the ommon palette. The ommon pallette contains the same programming objects as the ommon category under the omplete pallette: Move, Record/Play, Sound, Display, Wait, Loop, and Switch. At the bottom of the left column select the right tab, two blue rectangles, to display the ustom palette. The ustom pallette contains two selections: My Blocks Web Downloads Programming is accomplished by selecting a program object and dragging it onto the sheet and dropping it into position in the program. This process forms a graphical chart of the program. There are parameters associated with some program objects. A help facility is located on the bottom right side of the development window. This help facility is used to better understand the programming objects. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-3

Select the ommon palette. Select, drag, and drop the Move object into the program sequence where the blue start square is located. Notice that the Move object replaces the blue start square and the Move parameters will be displayed on the bottom of the development window. Initially the Move parameters are set to make the motors B and move forward one rotation. You can select which of the three motor Ports A, B, or are controlled; the Direction of Forward, Backward, or Stop; the amount of Power they receive (speed); the Duration in Degrees, Rotations, Seconds, or Unlimited; how the motors transition into the Next Action by Breaking or oasting; and how the Steering will be performed. Keep the settings defaulted with Ports B and selected, a Forward Direction, no Steering, a Power of 75, a Duration of one rotation, and the Next Action of Brake. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-4

From the Wait menu, select, drag, and drop the Time object into the program sequence after the Move object. Notice that the Time parameters will be displayed on the bottom of the development window. Keep the settings defaulted with the ontrol selection of Time and the Until selection of one Second. The Wait menu allows for the insertion of a Time, or a Sensor ontrol object. The ontrol objects are used to pause processing until the completion of an event. Time will wait for a specified number of Seconds. The Sensor object allows the selection of the type of sensor and the appropriate parameters for the sensor selected. The Touch, Light, Sound, and Distance sensors are directly available in the Wait menu. The program now has a Move of one rotation followed by a Wait of one second. Select, drag, and drop the Loop object into the program sequence after the Wait object. Notice the Loop parameters will be displayed on the bottom of the development window. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-5

hange the ontrol to Sensor. hange the Sensor to NXT Buttons. hange the Button to Enter button, the square orange button on the NXT controller. Make sure the Action is Pressed. The Loop object allows for code looping. Program objects are placed inside the loop object. The loop ontrol can process Forever, until a Sensor action occurs, for a specific Time in seconds, for a specified ount of loops, or the until the Logic state of a connected Sensor to the loop block becomes true or false. Select, drag, and drop a new Move object into the program sequence inside the Loop object. Keep the settings defaulted with Ports B and selected, a Forward Direction, no Steering, a Power of 75, a Duration of one rotation, and the Next Action of Brake. This loop will test the Enter button at the end of the loop. When the Enter button is pressed the loop will terminate. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-6

The program now has a Move of one rotation followed by a Wait of one second then a Loop containing a one rotation Move. The loop will terminate when the Enter button is pressed. Save the program. onnect the NXT controller to the computer using the USB cable. Turn the NXT on. Select the NXT icon on the lower right of the screen. Select SAN from the pop up window. When the NXT appears in the list (USB), connect to it by selecting it from the list and selecting ONNET. Once connected, close the NXT pop up window. Select the download button which is located beneath the NXT button. When complete, disconnect the USB cable from the robot and run the speed program on the NXT controller by selecting My Files, Software files, speed, and finally press the orange enter button to run the program. To stop the NXT, press the orange enter button. Math with Robots Project: Robot Activity Programming the NXT 2.0 Program Pyzdrowski, 6/26/2012-7