Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.

Slides:



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

Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
X-Call Version V3.0 User Guide
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.
Presented by: Benefits Systems Support. Getting Started ê Open Powerpoint, create a blank presentation. ê Select a style for your first slide from the.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Robot Soccer Challenge
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
1 of 6 Parts of Your Notebook Below is a graphic overview of the different parts of a OneNote 2007 notebook. Microsoft ® OneNote ® 2007 notebooks are digital.
Using the Unity 98 Cordless Response System Directions : Courtesy of IHC public relations.
EducateNXT NXT... an introduction The Kit and the Software.
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.
Reviewing Common Blocks for St. Agnes Elementary School Teachers by Jenny Chang Feb. 26th, 2007 USC & University Neighborhood Outreach Robotics STEM program.
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.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
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.
Robotics Catchup/Review: switch, arithmetic, range, loop Bluetooth Lab: Finish parallel parking. Next: Use Bluetooth communication for calculate & send.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Introduction to the Basic Parts of LEGO’s NXT Robotics
Coding for the FIRST Tech Challenge: RobotC
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
ROBOTICS MY BLOCKS. OBJECTIVES Create, edit and configure a my block Insert a my block inside a program and test its functionality.
More switches, Comparison Day 7 Computer Programming through Robotics CPST 410 Summer 2009.
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*.]
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
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.
JAZLER SHOW2 JAZLER SHOW2 AUTOMATION SOFTWARE. EASY PLAYBACK JAZLER SHOW2 AUTOMATION SOFTWARE Jazler Show is a program that lets you load audio files.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
LEGO® MINDSTORMS® NXT Move Block.
JDS5 Training Guide. On Start Up you will see this screen click the OK button Click OK.
Wimba Pronto Setting Pronto Preferences of the ND University System April 2009.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
ROBOTC Software EV3 Robot Workshop
Mindstorm NXT-G Introduction Towson University Robotics.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
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.
Overview: This lesson explores the NXT as a computer. It is intended to follow the "Introduction to Computers" lesson. Objectives: Students will be able.
Introduction to LEGO Mindstorms EV3 What is in the box?
LEGO MINDSTORMS PROGRAMMING
Exploring Computer Science Lesson 6-5
Using the Lego Mindstorms Edu NXT Software
Audacity Presented by Carrie Walter
BEGINNER PROGRAMMING LESSON
Mindstorms EV3 Programming
Understanding Communication with a Robot? Activity (60 minutes)
Mindstorms EV3 Programming
Introduction To Programming with LEGO NXT 2
Touch Sensor.
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Displaying sensor values while a robot is running
Exploring Computer Science Lesson 6-5
Storing Values as Variables
Introduction to PowerPoint
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
Lego MINDSTORMS EV3.
Getting started with LEGO EV3 Mindstorms software
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007

Topics Differences between Common, Complete and Custom Palettes Opening and Saving Programs Tools Menu Download Menu NXT Window Basic Programming with the Common Palette Icons Troubleshooting: Downloading and Updating Firmware Using the Feedback Block

Common Palette MoveRecord/PlaySoundDisplay Wait for (sensors) LoopSwitch

Common Palette There are 20 challenges under the Common Palette There are 20 challenges under the Common Palette Each challenge has a video of what should happen, a design guide, and a build guide. Each challenge has a video of what should happen, a design guide, and a build guide. It’s a fun way to learn about building and programming NXTs

Complete Palette Links to Common Palette icons ActionsSensorsFlowDataAdvanced

Custom Palette My Blocks - You can store reusable blocks of programming that you created here Web Downloads - You can save programs friends you or programs you get from sites like

Opening Programs For a NEW program 1. Click on File/New on the Menu Bar or 2. Type a name for your program under Start New Program and click Go 2. Type a name for your program under Start New Program and click Go For a SAVED program 1. Click on File/Open or 2. Click on the drop down arrow in the box under Open Recent Program, pick your program, and click Go Open saved file Open new file

Saving Programs If you have already named your program, you can click File on the Menu Bar then click Save. If you have not named your program, change the name from Untitled to something that indicates what your program does. Avoid long names and random punctuation symbols in your filenames Look to see where your files are being saved so it will be easy for you to find them again!

Tools Menu Calibrate Sensors One way to calibrate your light and sound sensors. Details on last slide of PowerPoint. There is an easier way to calibrate light sensor.

Update Firmware Connect and turn on NXT. Connect and turn on NXT. If you’re online, click Check. If you’re online, click Check. Find the most recent update. Find the most recent update. Download. Download. Be sure to see where it downloads! Be sure to see where it downloads!

Block Import Export Click on Browse button to find and select the Block/file you want to import. Click on the dropdown arrow by Advanced to select where you want the block to be stored. Click on the Add Blocks to Palette button

Download to Multiple NXTs You can download one or more program files to multiple NXTs. You can download one or more program files to multiple NXTs. Detailed directions are at the end of this PowerPoint and available by clicking on the Mindstorms help icon on the Menu Bar

NXT Window Download and Run Download Download and Run selected Stop NXT Window

Wonderful NXT Window - Communications Tab Name your robot Check battery life remaining Check file storage available Check firmware version Check NXTs connected

NXT Window - Memory Tab Delete, upload or download files. To delete, select the group, like Sound, to see the Sound files on the NXT. Highlight the file you want to delete. Click Delete. You can delete all if you wish. NOTE: This deletes files from your NXT, not your computer.

Basic Programming with the Common Palette Move Wait Block - for motors Record/Play Wait Block - Sound Wait Block - Plays a sound Display Wait Block - Words, data, graphics Wait for Wait Block - Sensor icons Loop Wait Block - Repeat action until Switch Wait Block - If “True” do X, if “False” do Y

Basic Programming with the Common Palette Move Icon Used to control your motors Built in rotation sensor LCD display on NXT brick shows number of rotations as they are counted Inside the motor

Move Icon - Properties This move icon programming says that the motor is connected to Port C. Its Direction is forward at Power 60% for Duration 1.7 seconds (unlimited, rotations, degrees are other options for Duration) and then Brake. Rotation and degrees measure rotation of motor, not wheel

Basic Programming with the Common Palette Record/Play Icon Lets you record and save movements of your robot

Basic Programming with the Common Palette Sound Icon Recognized sound patterns and tones Recognized sound patterns and tones Can be programmed to respond to one clap, two claps or a musical note. Can be programmed to respond to one clap, two claps or a musical note. In what kind of environment would you NOT want to use this sensor? In what kind of environment would you NOT want to use this sensor?

Basic Programming with the Common Palette Display Icon Can be programmed to display images, text, or drawings. Below the display is programmed to show a Happy Face

Display You’ll want to add a Time block after the Display block so that the images stays displayed. Otherwise, it happens so fast you don’t see it. Sample code below.

Basic Programming with the Common Palette - Wait Icon Wait Icon - Sensors TimerTouchLightSoundUltrasonic

Touch Sensor Detect On (When pushed in so the electrical connection is made) or Detect On (When pushed in so the electrical connection is made) or Off (when not pressed and no connection is made) Opening for inserting an axle so you can extend the touch range and/or add height/width at the tip (Be careful about using these extensions if you are also using an ultrasonic sensor!)

Ultrasonic Sensor Measures distances from objects Sends out a signal, waits for return of signal, while keeping track of time between send and receive CUTE!

Ultrasonic - Icon and Properties Does best with objects straight in front of it. Will sense objects on the side - especially if you DON’T want it to ! :-) Is very useful and easy to program This ultrasonic sensor is connected to Port 4 and will do an action like go forward until the distance between it and an object is less than 26 cm.

Light Sensor Measures light on a scale of 0 (no light) to 100 (very bright) Must be calibrated in lighting where program will run Possible to turn off the infrared source so sensor only measures ambient light

Calibrating the Light Sensor Attach a light sensor and turn on your NXT. You’ll be at My Files. Arrow over to View and press orange button. Arrow over to Reflected light and press orange button. Arrow to the number of the port you connected your light sensor to and press the orange button.

Calibrating continued Place your NXT with the light sensor over the dark line (or whatever the darker, lower value light ) and write down the number that displays on the NXT. Place your NXT with the light sensor over the white or lighter area and write down the number that displays on the NXT. Add the two number together and divide by 2. This gives you the number you enter as the value for Light: in the Light Sensor Block properties window.

Why does the NXT wiggle when it follows the dark line? Motor B on, C off so robot will turn. You told it to turn until the light value is greater than 42. Then Motor C goes on and Motor B stops and the NXT turns the other direction until the light sensor reads a value of more than 42. That’s the source of the cute “sashay”.

See the light sensor and its programming in action.

Basic Programming with the Common Palette Loop Icon Very handy for making actions repeat Be careful! If you set the Loop block to unlimited (forever) it will keep doing that action until you shut it off our the battery dies! You can change Control to Sensor, Time, Count, or Logic

Basic Programming with the Common Palette Switch Block Icon and properties window Use this block to have your robot choose between two sequences of code. If light value is greater than 42, turn Motor B on and Motor C off. If light value is less than 42, Motor C on and Motor B off. The input value for the switch block can Be a sensor or a Logic value of number, text, or number

Troubleshooting Downloading and updating Firmware Handout from Kristie Brown, LEGO Education Representative for the Southeast.

Using the Feedback Block What provides feedback to the NXT? SensorsMotors Built-in timers Buttons on the Brick (Also, the Receive Message programming block lets you receive input from a message sent via Bluetooth.) You will learn specifics of using these in Intermediate Programming

Sensors for Feedback Sensors detect changes in conditions Touch - Haven’t hit wall. to Have hit the wall! Sensors can only respond to ONE condition at a time. The same light sensor icon cannot identify and follow both a red line and a black line Sensors can only respond True or False.

Timers for Feedback You will learn more about these in intermediate programming.

Buttons for Feedback Left, Right, and Enter (orange) buttons can be used for feedback. The Cancel button cannot.

Websites (Resources page of wiki has many more links) videos - videos

Sources MINDSTORMS Education NXT “Getting Started with NXT”. Kelly, Jim. LEGO MINDSTORMS NXT-G Programming Guide.

Calibrate Sensors Select the light sensor and the port the sensor is connected to. Then click the Calibrate button. This will download a small program to the NXT and run it automatically. On the NXT’s screen you will see text that reads “Min Value:”. Point the light sensor towards a material or spot that represents what the light sensor should measure as dark. Press the orange Enter button on the NXT. Next you will see text that reads “Max Value:”. Point the light sensor towards a material or spot that represents the brightest location the sensor will encounter during the program. Press the orange Enter button again. Calibration is complete. Calibrating a sound sensor Select the sound sensor and the port the sensor is connected to. Then click the Calibrate button. This will download a small program to the NXT and run it automatically. On the NXT’s screen you will see text that reads “Min Value:”. Position the sound sensor in the environment it will encounter when the program is running and where any background noise is measurable. Press the orange Select button on the NXT. Next you will see text that reads “Select Max:”. Measure or make the loudest sound you want to measure and press the Select button again. Calibration is complete. Source: NXT Help button

Download to Multiple NXTs This function allows you to download one or more programs to multiple NXTs. This is especially useful if you need to load a number of NXTs with the same program(s) for a competition or classroom assignment. The Download to Multiple NXTs feature is only available in the educational version of the LEGO MINDSTORMS NXT Software. You can download a number of programs to an NXT until this memory is full. An average program is 11 kilobytes in size but this varies. When the memory is full, you can select programs to delete in order to make space. See the Help file “Managing files and memory on the NXT” for details. Note: Before using this function, make sure that all of the programs you would like to download are open in the software. When you open more than one program at the same time, the program names appear as tabs along the top of the work area (as shown in the graphic below). Also, make sure your bricks are "available" by pressing Scan in the NXT window. Otherwise they will not appear in the Download to Multiple NXTs window. Image – show at least three program tabs in a row and a bit of surrounding interface

When the programs that you would like to download are open, launch the function by choosing Download to Multiple NXTs... in the Tools menu. This will open the Download to Multiple NXTs dialog box, shown below. Image of Download to Multiple NXTs dialog box with callouts 1 & 2 marked 1. Choose NXTs lists all of the NXTs that are currently available. 1. Choose NXTs lists all of the NXTs that are currently available. 2. Choose Programs lists all of the programs that are currently open. 2. Choose Programs lists all of the programs that are currently open. Note: If you do not see an NXT in the list, close the Download to Multiple NXTs tool and open the NXT window (accessible from the controller). Make sure that all the NXTs have been configured in this window before launching the Download to Multiple NXTs tool. Downloading to Multiple NXTs First, choose the NXTs to which you would like to download by clicking in the box(es) to the left of the NXT names. You can select all available NXTs by clicking the Select All button below the list. Clicking the Deselect All button deselects all of the NXTs. Then choose the programs you would like to download by clicking the boxes to the left of the program names. When your selection is complete, click the Download button below the program list. This begins the download process. The progress columns display the download progress.

Download to Multiple NXTs During the compilation process there are four status messages that can be displayed in the Programs list box: * Skipped - if you did not select that program file * Skipped - if you did not select that program file * Compiling - if the file is currently compiling * Compiling - if the file is currently compiling * Done - when that program has been compiled * Done - when that program has been compiled * Error - if a problem is encountered while compiling the program * Error - if a problem is encountered while compiling the program Once all of the selected programs have been compiled, the download process begins. During download, there are four status messages that can be displayed in the NXT list box: * Skipped - if you did not select that NXT * Skipped - if you did not select that NXT * Downloading - if it is currently downloading to the NXT * Downloading - if it is currently downloading to the NXT * Done - when downloading all programs to that NXT is complete * Done - when downloading all programs to that NXT is complete * Error - if a problem is encountered during the download process * Error - if a problem is encountered during the download process Click the Close button when you are finished downloading programs to multiple NXTs. Note: To share programs between computers (allowing the programs to be edited on a different computer), you should exchange the.rbt file of the program by using or a USB drive. Source NXT Help button