LEGO Mindstorms Robotic Invention System Barb Ericson Georgia Institute of Technology.

Slides:



Advertisements
Similar presentations
1chung 5 th Annual Robofest 2004 Informational Meeting Mar. 20, 2004 Chan Jin Chung Ali Khazaal Jason Lo Computer Science Lawrence Technological University.
Advertisements

Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Create a Simple Game in Scratch
Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
Create a Simple Game in Scratch
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
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.
LabView Basics.
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
1 Alice: Beyond the Basics Steve Cooper Michelle Venable-Foster Barbara Ericson May 2007.
Robot C Ready, SET, Go! Workshop SDSU, Fall 2013.
Computer Basics. The Computer (Generic) Processor executes commands. Memory stores program and data. Input devices transfer information from outside world.
App Inventor Barb Ericson July 3, 2013.
EIGHTH GRADE ROBOTICS KITTATINNY REGIONAL HIGH SCHOOL MR. SHEA Introduction to Programming
Introduction to Lego Mindstorms LMICSE Workshop June , 2005 Alma College.
An Intro to Robots and Computer Programming
©2006 CSUC Institute for Research in Intelligent Systems Introduction to Coding June 15, 2006.
LEGO Mindstorms Hitachi H8-based RCX brick B.A. Juliano, R.S. Renner, F. Jauregui January 2004 California State University, Chico Intelligent Systems Laboratory.
Alice: A Free 3D Animation World for Teaching Programming Barbara Ericson Georgia Institute of Technology Oct 2005.
Introduction to NXT Software and Functionality Bot’oberfest October 15, 2007.
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.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
LEGO NXT Robot Programming Introduction to Programming a Lego NXT robot in Java.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
Why do robots need to move?
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
EN Engenharia Unificada I PROGRAMANDO O LEGO MINDSTORMS Centro de Engenharia, Modelagem e Ciências Sociais Aplicadas.
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Minds and Computers 2.1 The RCX l Hitachi H8/3297 series processor l 3 inputs/sensors (1, 2, 3) l 3 outputs/motors (A, B, C) l 32k RAM/ 16k ROM ä 12 kB.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Alice: A Free 3D Animation World for Teaching Programming.
ROBOTC Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
Today's Ninja Challenge: Write Your First Computer Game!
Deriving Consistency from LEGOs What we have learned in 6 years of FLL by Austin and Travis Schuh © 2005 Austin and Travis Schuh, all rights reserved.
Vex Robotics program three: using motors and sensors together.
ROBOTICS Jason Bell Brad Carlson
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
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.
Mobile Robots Why do robots need to move?. What defines a robot? Sense – a robot has to take in information about its environment Plan – a robot has to.
Instructions Quit H Robinson. Quit Start Game H Robinson Instructions: Enable Macros when prompted. If you were not prompted then open PowerPoint, go.
Introduction to Robotics using Lego Mindstorms EV3 Shreya Reddy & Kiran Raja RoboAvatars Robotics.
Overview: This lesson explores the NXT as a computer. It is intended to follow the "Introduction to Computers" lesson. Objectives: Students will be able.
Presentation Outline I. Background Information II. Design Project
Introduction to LEGO Mindstorms EV3 What is in the box?
Create a Halloween Computer Game in Scratch
Exploring Computer Science Lesson 6-5
Using the Lego Mindstorms Edu NXT Software
Scratch for Interactivity
Java on the LEGO Mindstorms EV3
Understanding Communication with a Robot? Activity (60 minutes)
Exploring Computer Science Lesson 6-5
Alice: Beyond the Basics
Alice: A Free 3D Animation World for Teaching Programming
Introduction to Object-Oriented Programming in Alice
Alice: A Free 3D Animation World for Teaching Programming
Compiled from various Internet sources Presented by Mr. Hatfield
Creating a Simple Game in Scratch
Getting started with LEGO EV3 Mindstorms software
LEGO Mindstorms Robot and Java
Downloading to the NXT requires the correct hardware setup
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

LEGO Mindstorms Robotic Invention System Barb Ericson Georgia Institute of Technology

What is it? A kit for creating and programming robots built with LEGOs

What is in it? 717 LEGO elements –One RCX programmable brick –2 motors –2 push sensors –1 light sensor –Infrared transmitter for transferring the programs A Constructopedia book with plans for 3 robots and many variations on them CD with video on getting started and visual programming environment (RCX code) –9 robots total

What else do you need? 6 AA batteries Computer –Windows 98/Me/XP –Pentium II 233MHz –32 MB RAM –115 MB Disk Space –USB Port (for the infrared transmitter)

What else might you want? Plastic storage containers –For storing built robots –And for sorting parts better Ultimate Accessory Kit - $50 –45 LEGO pieces including 1 remote control 1 touch sensor 1 rotation sensor 1 lamp 1 Constructopedia

More Sensors g.cfm?dest=itempg&itemid=920&secid=9& linkon=subsection&linkid=45 Angle (Rotation) Light Touch Temp

DCP Sensors g.cfm?dest=itempg&itemid=922&secid=9& linkon=subsection&linkid=45

What else might you want? Vision Command - $100 –A video camera 30 frames per second 352 by 288 color 145 LEGO elements USB connection Built-in microphone Vision recognition software Or get just the camera and USB cable for $39.00 at LEGO Education Store

What does it cost? About $200 Buy at –Toys R Us –Shop.lego.com –Amazon.com –Wallmart.com – egosub.html?source=1359http://legomindstorms2.0.hobbytron.net/robotl egosub.html?source=1359 –Ebay.com

What can you do with it? Use it with RCX code or Robolab (visual programming) –To teach about commands, programs, iteration, conditionals, and variables –Without worrying about syntax Use it with leJOS (Java) –To teach about commands, programs, iteration, conditionals, and variables –Arrays, strings, recursion, listeners, static –Using Java syntax

Programming your Robot Click the Program button in the main menu

Pick the Robot Pick the robot to program. If you are using your own design pick “Freestyle”.

Create a Program using RCX code Big Blocks are shown for a particular robot Click and drag them to make a program –They will snap into place You can save the program using the File menu –This will name your program

Download your Program Turn on the RCX (OnOff button) Plug the IR Tower into your computer Put the RCX near the IR Tower Click the “Download” button –The default is to download to slot 5 –You can change this by clicking on “Settings” When the download is finished the RCX will play a short tune –It displays dots during the download

Running the Program Two ways to run –Click the Run button on the RCX –Or click the Run button on the screen Stopping the program –Click the Run button again on the RCX –Or click the Stop button on the screen

Modify a Block Click on the edit tab at the right edge of the block You can change the duration of commands –Use the arrow key to use preset values –Or type a value in the textbox

Robot Challenge Make your robot go forward for 2 seconds Make your robot turn right for 1.5 seconds Make your robot go backwards for 3 seconds Make your robot spin left for 1.5 seconds Save your program using the File menu

Getting More Information Click on Help Click on What’s this? The cursor will show What’s this? with an arrow Click on something you want more information about –Like a block –Or a menu item

Robot Challenge Use the help to find out the difference between turn left and spin left Use the help to figure out what a Dance block will do Use the edit tab to try out the Dance block –Make sure your robot is on and near the IR tower

Using the Sensors Click a Touch Sensor on the left and position it on the right –Pick the input port attached to your sensor –Click next Pick when to respond –On press, release, or click (press and release) –Click next Click “Try It” to try it or “Done”

Handling a Sensor Event Add command blocks after the if sensor event block –These actions will happen when that sensor event happens –Like when the touch sensor is pressed –Or when the light sensor’s value is > or < some amount

Robot Challenge Make your robot go forward for 10 seconds If your robot’s touch sensor is pressed backup for 1 second and spin right Set up items to block your robot and try it

Adding Iteration Use Repeat Blocks to add iteration (looping) You can change the number of iterations You can repeat a group of commands

Conditionals Add a test –Do one thing if the test is true Like turn left –Do something else if the test is false Like turn right

Variables You can create new variables –freq And use them in other blocks –Add to them –Subtract from them –Multiply them –Divide them

Create New Blocks You can create new blocks using My Blocks –Name the block –Add other blocks to it –You can collapse the interior commands Click on upper left square

Small Blocks Finer control of robot Big Blocks are made up of small block commands Click on the top left box to open a big block –And see the internal small blocks

Where to get help? –Main web site Books – at LEGO Education Store –Building Robots with LEGO Mindstorms –Creative Projects with LEGO Mindstorms –LEGO Mindstorms: RIS 2 Projects

Project Ideas Anders Project ideas (scanner, fan) – Andy’s Page (chess playing robot) – Buick Music Study (Play MIDI or WAV files) – Joe’s Nagata’s Mindstorms Gallery (vehicles) – – (movies) Mario Ferrari’s Web Pages (piano player, skier, etc) –

Using Java with LEGO Robots Install leJOS (the Java Operating System) –Download from Set the system variables Plug in the IR Tower to the top USB port Download the firmware using a command prompt –lejosfirmdl

Setting System Variables Create new System Variables –LEJOS_HOME variable to the directory where leJOS is installed –RCXTTY=USB Add to the PATH variable –The Java SDK bin directory –;%LEJOS_HOME%\bin Add to the CLASSPATH variable –;%LEJOS_HOME%/lib/classes.jar;%LEJOS_HOME% /lib/pcrcxcomm.jar

Using leJOS Import the classes in leJOS –import josx.platform.rcx.*; Compile for Java 1.1 using –lejosjc.bat Class.java Link together an executable –lejoslink.bat -o Class.bin Class Download the executable to the RCX –lejosdl.bat Class.bin

LCD Control

Motor Class –3 objects are available as public static (class) variables Motor.A, Motor.B, and Motor.C –You make the motor go forward, backward, stop (brake), and float to a stop –When you start a motor forward it will keep going until you tell it to stop or float to a stop. –Use Thread.sleep(numMilliseconds) to control how long the motor is moving –Control how fast the motor moves with setPower(num) with num from 0 to 7 (fastest)

Motor Test Make both A and C motors go forward at power 7 for 1 second Stop for 1 second Have both motors go forward at power 2 for 3 seconds Float to a stop

leJOS Resources Download from – Tutorial at – Discussion at – orum_id=552http://sourceforge.net/mailarchive/forum.php?f orum_id=552 Books –

FIRST LEGO League Robotics competition for a team of kids (ages 9-14) –Up to 10 kids on a team Register by Sept 30th –Work for 8 weeks on a challenge New one each year –Compete at tournaments Nov – Dec Georgia Tech hosted one Jan 15, 2005 –Cost (about $600 per team)