Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Student. 45 minutes

Similar documents
Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Teacher. 45 minutes

Renewable Energy. Getting Started With the LEGO Energy Meter

LME Software Block Quick Reference 1. Common Palette

Robotics II. Module 4: Bluetooth Communication

Robotics II. Module 5: Creating Custom Made Blocks (My Blocks)

This page outlines some of the alternate pieces that can be used for building.

Recipes4Success. Draw and Animate a Rocket Ship. Frames 5 - Drawing Tools

the NXT-G programming environment

What Is a Program? Pre-Quiz

Using Mapmaker s Toolkit. In this tutorial, you will learn the following basic elements of Mapmaker s Toolkit:

Part 1: Basics. Page Sorter:

LEGO MINDSTORMS NXT Lab 4

EV3 Programming Workshop for FLL Coaches

Part A: Monitoring the Rotational Sensors of the Motor

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform

ACTIVINSPIRE CHEATSHEET

PHYC 500: Introduction to LabView. Exercise 1 (v 1.3) M.P. Hasselbeck, University of New Mexico

Ancient Cell Phone Tracing an Object and Drawing with Layers

Pre-Lab Excel Problem

Tech Tips. BeeBots. WeDo

Emote 1.0 Users Manual

A QUICK TOUR OF ADOBE ILLUSTRATOR CC (2018 RELEASE)

Controlling the Robotic Arm using the BBC micro:bit

Tutorials. Lesson 3 Work with Text

Robotics II. Module 2: Application of Data Programming Blocks

Use the Move tool to drag A around and see how the automatically constructed objects (like G or the perpendicular and parallel lines) are updated.

ROBOLAB Tutorial MAE 1170, Fall 2009

OnPoint s Guide to MimioStudio 9

Edupen Pro User Manual

Mobi View. Charging: Turning on Mobi View: Using Your Mobi View: Writing Notes:

SolidWorks 2½D Parts

2 Lab 2: LabVIEW and Control System Building Blocks

Robotics Study Material School Level 1 Semester 2

Word 2003: Flowcharts Learning guide

Learning Photoshop Elements Step-by-step Lesson Two

Robot Navigation Worksheet 1: Obstacle Navigation

Boise State University Digital Systems Laboratory

Basic Classroom Tools Promethean Module 1 (ActivInspire)

COMP2611: Computer Organization Introduction to Logisim & simple combinational circuit

Vision Pointer Tools

Get comfortable using computers

HYPERSTUDIO TOOLS. THE GRAPHIC TOOL Use this tool to select graphics to edit. SPRAY PAINT CAN Scatter lots of tiny dots with this tool.

Loops and Switches Pre-Quiz

Panther Instructions

FRC LabVIEW Sub vi Example

Figure 1: My Blocks are blue in color, and they appear in the Custom palette in NXT-G.

University of Florida EEL 3701 Dr. Eric M. Schwartz Madison Emas, TA Department of Electrical & Computer Engineering Revision 1 5-Jun-17

Loops and Switches Pre-Quiz

Gradebook Entering, Sorting, and Filtering Student Scores March 10, 2017

Introduction In this document, users will Llearn how to utilize SysQue Systems Pipe, and how to draw Pipe into their projects.

Full Search Map Tab. This map is the result of selecting the Map tab within Full Search.

Migration Guide. Notebook to ActivInspire

NXT Programming for Beginners Project 9: Automatic Sensor Calibration

icev TUTORIAL ASSESSMENT GENERATOR

Robolab. Table of Contents. St. Mary s School, Panama. Robotics. Ch. 5: Robolab, by: Ernesto E. Angulo J.

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule

A Guide to Autodesk Maya 2015

SolidWorks Intro Part 1b

Google Sheets: Spreadsheet basics

InDesign Tools Overview

University of Florida EEL 3701 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering Revision 0 12-Jun-16

Quick Keyboard Short Cuts. Instructor: Rachel Miller

Teach Yourself Microsoft PowerPoint Topic 4: Slide Master, Comments and Save Options

2. Getting Started When you start GeoGebra, you will see a version of the following window. 1

Robotics II. Module 1: Introduction to Data & Advanced Programming Blocks

Basic Data Acquisition with LabVIEW

User Guide. Dynamic Student Edition and Dynamic Student Edition ebook App

Easy Stand Alone (U8) Getting Started Guide for Pixel Control

ST NICHOLAS COLLEGE RABAT MIDDLE SCHOOL HALF YEARLY EXAMINATIONS February 2016

Google Docs: Spreadsheet basics

MindTap Math Foundations Instructor s Guide to Communication Tools

ebook Users Guide For MyDistrict.net

Appleworks 6.0 Word Processing

Using DegreeWorks Plans (for Advisors & Students)- Templates Note: Optimum web browser for use with DegreeWorks Plans is Google Chrome or Firefox

Robotics II. Module 3: Dealing with Files

Collaboration Tools. Student Guide. Copyright 2015 by Edmentum. All Rights Reserved.

After completing this lesson, you will be able to:

Learning to use the drawing tools

Getting Started with LabVIEW Virtual Instruments

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Excel Spreadsheets and Graphs

ENGAGEMENT SERVICES. Cengage YouBook: Instructor Guide for WebAssign. Accessing the Cengage YouBook: With the Cengage YouBook, you can:

LABQUEST 2 DATA LOGGER

Kodiak Quick Guide: Content

Lesson 4 - Creating a Text Document Using WordPad

Science. Getting Started Guide

This document describes the various enhancements and modifications to DRM Windows that occurred between versions and

SmartChart User Guide

Creating Postcards in Microsoft Publisher

TUTORIAL SESSION Technical Group Hoda Najafi & Sunita Bhide

Technical Learning. To Get Started. 1. Follow the directions in the Constructopedia to build Robo 1.

OPENING A LEADS.TXT FILE IN EXCEL 2010

Getting Started with ActivInspire

Microsoft Access XP (2002) Queries

SOLIDWORKS: Lesson 1 - Basics and Modeling. Introduction to Robotics

Getting Started Manual for CODIBOT

Collaboration Tools. Instructor Guide. Copyright 2015 by Edmentum. All Rights Reserved.

Google Drive. Lesson Planet

SOLIDWORKS: Lesson III Patterns & Mirrors. UCF Engineering

Microsoft PowerPoint 2003 Basic Activities

Transcription:

Module 2, Add on lesson Introduction to the NXT and Mindstorms software Student 45 minutes Purpose of this lesson Write a basic program using LEGO Mindstorms Download and run programs on the NXT Materials Copy of the lesson Computer Mindstorms software Introduction to the NXT and Mindstorms software 1

Background and Discussion Open LEGO Mindstorms (File -> New), and the following screen will appear: MAIN PROGRAMMING WINDOW Sequencing Beam Block Palette Program Starting Point NXT Controls Palette Selector Help Tab Map Tab CONFIGURATION PANEL HELP / MAP WINDOW Block Palette: Access the blocks for use in Mindstorms programs. Palette Selector: This selects which functions are available on the block palette. Program Starting Point: The program will start from this point. Sequencing Beam: This beam connects the blocks in the program. The blocks connect one after another in order along the sequencing beam. Help Tab: Shows the help window. When you click on a block in the program, the help window will show helpful information about how to use that block. Map Tab: Displays a map of the program in the map window. If you click on a spot on the map window, the main programming window will center on that point. NXT Controls: These are used to download programs to the NXT and run them. Introduction to the NXT and Mindstorms software 2

Displaying Text on the NXT Screen with a Mindstorms Program 1) Follow the directions below to display the equation of 3 * 4 = on the NXT screen. a. To display something on the NXT screen, use a display block. On the palette selector, choose complete palette (middle tab). Then, on the palette, scroll over the common icon (the green circle), and the select the display block (the computer screen), as shown below: b. Move the display block into the blue start area, and click to connect it to the program starting point. c. Click on the display block to activate the configuration panel at the bottom. In the configuration panel, use to pull down menu to change the Action from Image to Text. Then change the Text from Mindstorms NXT to 3 x 4 = by typing over it. d. Now your screen should look like this: Introduction to the NXT and Mindstorms software 3

e. To keep the display on the NXT screen, add a loop block after the display block. Scroll over the common icon in the palette window again, but this time select the loop block. Move the loop block next to the display block until you see the sequencing beam extend, then click to put the loop block in place. Programming Tip: If a block in your program is grayed out, that means that it has not been connected to the sequencing beam, and will be ignored when the program runs. You can click and drag a block to move it within the programming window, and if you move it close enough to the sequencing beam that the beam extends, then when you click it into place it will be attached to the sequencing beam. The loop above is not connected to the beam The two blocks are connected properly. f. Place a charged battery pack in the NXT. Connect the USB cable to the NXT and to the computer. Turn on the NXT by pressing the orange button. g. Download your program to the NXT by clicking the arrow button in the middle of the NXT control panel on the bottom right of the Mindstorms main programming window.. NXT TIP: If you get a message that says the firmware on the NXT is out of date, that means you need to download new firmware before your programs will run. Firmware is computer code that is stored on the NXT and is separate from your Mindstorms programs. To update the firmware using the Mindstorms software, go to the tools menu at the top of the screen and select Update NXT Firmware. When the window comes up, select download. Wait until the download is finished, then close the window and try running your program again. h. At this point, your NXT should display 3 x 4 = on its screen. i. The loop program is set to infinity, meaning it will run forever, so the program won t stop on its own. Stop the program by either clicking the stop button in the NXT controls in Mindstorms, or by clicking the dark grey button on the NXT. j. Save your program to the computer. NXT Tip: The dark grey button on the NXT is the back button. It takes you to previous menus. If you go all the way back, it gives you the option of turning off the NXT. The orange button is the enter button. Introduction to the NXT and Mindstorms software 4

Assessment 1 1. Click the display block, change the values of X and Y in the configuration panel, and run your program. What happens to the display as you change X and Y? 2. Set your loop to run for a certain amount of time. In the program, click on the loop. In the configuration panel, under Control, switch from Forever to Time. Now enter some number of seconds and run the program. What happens? 3. Delete the loop from the program and run it. Now what happens? Why? 4. What is the difference between the following two programs? Do you expect them to run any differently on the NXT? Why or why not? Programming Tip: You can put blocks inside of a loop. When you move a block to a position inside a loop, the loop will automatically expand in size to accept the new block. Introduction to the NXT and Mindstorms software 5

Making a calculation and displaying the result with a Mindstorms program 1. Add a math block to the program (the math block is under data blocks on the block palette) before the other two blocks, so the program looks like this: 2. Notice the input/output bar sticking out from the math block. Inputs and outputs are used to pass data from one block to another. Inputs have a connector on the left, and outputs have a connector on the right. (Note: some items can be both an input and an output). 3. Click on the math block. In the configuration panel, set the operation to be multiplication. Also set A to the value of 3, and set B to the value of 4. This tells the block to multiply 3 x 4. 4. From the advanced blocks on the block palette, select the number to text block and insert it after the math block. The program should now look like this: Programming Tip: Most programming languages, including Mindstorms, treat text differently than numbers. Numbers are used for calculations, and text is used for displays. In order to display a number, it must first be converted to text. 5. Wire the # output of the math block to the # input of the number to text block. Your program should now look like this: Programming Tip: To run a wire, first click on the output you wish to wire (the cursor should change to a wire spool before you click), then drag the wire where you would like it to go. If you click in a blank spot while dragging a wire, the wire will be pinned in that spot this helps you keep your drawings of wire looking orderly. Click on the input you Introduction to the NXT and Mindstorms software 6

wish to connect in order to finish the wire. You can erase a partially drawn wire by hitting escape if you haven t yet connected it to an input. To remove a wire that has been wired to an input, click on the wire at the input. 6. Add another display block just to the right of the number to text block. In the configuration panel for the new display block, change the Action from Image to Text and change the Line from 4 to 5. 7. Click on the line at the bottom of the new display block to open up its input/output bar. Programming Tip: Clicking on the line at the bottom of a block will open its full input/output bar. Clicking at the top of an open input/output bar will hide all of the inputs and outputs except for those which have been wired. 8. Wire the text output of the number to text block to the text input of the new display block. Hide the unused inputs and outputs. Your program should now look like this: 9. Click on the original (rightmost) display block. In the configuration panel, uncheck the box where it says clear. 10. Save and run your program. The NXT display should read: 3 x 4 = 12 Introduction to the NXT and Mindstorms software 7

Assessment 2 1. What programming change is needed to make the NXT display the entire equation on one line instead of two lines (so it reads: 3 x 4 = 12)? 2. Go back into the program and check the clear button of the second display block (that you unchecked in step 9 above), then run the program. What happens? Why? 3. Use your program to calculate 10,864 x 26,532. Record the answer here: 4. Delete the two wires in your program, and try to wire the # output of the math block directly to the Text input of the display block. What happens? Why? Introduction to the NXT and Mindstorms software 8