1chung Robofest 2007 Introduction to RoboLab Workshop Feb. 3, 2007 Maurice Tedder www.Robofest.net.

Slides:



Advertisements
Similar presentations
Robofest 2007 NXT Programming Workshop Jan
Advertisements

Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Module 3: Block 3 Call Management
Module 1: BLOCK 1 / MAIN MENU
Zhongxing Telecom Pakistan (Pvt.) Ltd
Getting Started with Microsoft Office 2007
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
BASIC SKILLS AND TOOLS USING ACCESS
Intro to NXT Programming
1chung Robofest 2005 RCX code Workshop Jan 29, 2005 CJ Chung.
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Manuscript Central Training Author Center Module 2.
Writing Pseudocode And Making a Flow Chart A Number Guessing Game
FIGURE 8.1 Process and controller.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
State of New Jersey Department of Health and Senior Services Patient Safety Reporting System Module 2 – New Event Entry.
Microsoft Access 2007 Advanced Level. © Cheltenham Courseware Pty. Ltd. Slide No 2 Forms Customisation.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Mike Scott University of Texas at Austin
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Microsoft®.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
Creating a Dreamweaver Web Page and Local Site
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Teacher/Mentor Institute Using the Cortex Chuck Powell.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
1.
O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 1 Transitioning to Version 8 Building Data Entry Issues in NEAT/MHEA and Oak Ridge National.
1 School Administrators Guide Standards-based Report Card (SBRC) Special Access/Privileges for School Administrators Interim Reporting Interim Reporting.
ETS4 - What's new? - How to start? - Any questions?
© Telcordia Technologies 2004 – All Rights Reserved AETG Web Service Advanced Features AETG is a service mark of Telcordia Technologies. Telcordia Technologies.
PP Test Review Sections 6-1 to 6-6
User Friendly Price Book Maintenance A Family of Enhancements For iSeries 400 DMAS from Copyright I/O International, 2006, 2007, 2008, 2010 Skip Intro.
Bright Futures Guidelines Priorities and Screening Tables
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
LFCDS SkyMail & SkyDrive Full Student Orientation
Lesson 2 Navigating LabVIEW
Exercise 1: Install PC Software & NXT Firmware
INTRODUCTION Lesson 1 – Microsoft Word Word Basics
COMPUTER INTERFACES.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Item Class User Friendly Maintenance  Copyright.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Page 1 of 43 To the ETS – Bidding Query by Map Online Training Course Welcome This training module provides the procedures for using Query by Map for a.
1 How Do I Order From.decimal? Rev 05/04/09 This instructional training document may be updated at anytime. Please visit and check the.
1 BRState Software Demonstration. 2 After you click on the LDEQ link to download the BRState Software you will get this message.
1 Final Cut Pro X Winter Connections Conference 2012.
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
Essential Cell Biology
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Chapter 13 Web Page Design Studio
RefWorks: The Basics October 12, What is RefWorks? A personal bibliographic software manager –Manages citations –Creates bibliogaphies Accessible.
1.step PMIT start + initial project data input Concept Concept.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 6Protecting and Sharing Workbooks.
Page 1 Orchard Harvest ™ LIS Find a Patient Training.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
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.
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.
ROBOTC Software EV3 Robot Workshop
Introduction to LEGO Mindstorms EV3 What is in the box?
Presentation transcript:

1chung Robofest 2007 Introduction to RoboLab Workshop Feb. 3, 2007 Maurice Tedder

2chung Student Assistant Emily Trudell and Joe Long Sat. 9AM-12PM

3chung Agenda Intro to RCX Intro to RoboLab 9 Class Missions (somewhat related to the Robofest Game 2007) Programming Tips

4chung LEGO MindStorms 101

5chung LEGO MindStorms® Overview – Robot Command Explorer (RCX/Brick) Hitachi H8 16MHz 8-bit microcontroller with 32K ext. Ram 16K ROM contains power up driver 16K of firmware can be downloaded to extend the on- chip driver User programs are downloaded to the RCX as byte code in 6K region of memory Firmware executes and interprets the byte code of programs when instructed

6chung LEGO MindStorms® Overview – Robot Command Explorer (RCX/Brick) Infra-red (IR) ReceiverIs a sensor that accepts the program being transmitted from the IR tower. Also transmits data. Sensor Input PortsInput ports 1, 2, & 3 are used to attach sensors to the RCX (0V/0 – 5V/1024 A/D) View ButtonUsed to obtain feedback from the input and output ports On-Off ButtonManually turn the RCX on and off Motor (output) PortsUse output ports A-C to connect any combination of motors LCD DisplayDisplay different values and information regarding the RCX and programs AC/DC Power InputThe RCX can be powered by plugging into a 9 Volt adapter (not for recharging batteries) Program ButtonUsed to switch between programs 1-5 Run ButtonPress the Run button to activate and run your current program Speaker (not shown)Internal speaker indicates RCX status and acts as a programmable sound output

7chung What Is RoboLab? A Graphical programming language For the RCX based on LabVIEW In 1997, LabView was used for Sojourner project By designing a flow chart with given icons the programmer can program the RCX

8chung Writing a new program Click on the Programmer button. You should then see the Inventor login screen. Double click Inventor 4 to get full RoboLab environment. Introduction to RoboLab – Programming Environment

9chung ROBOLAB Environment Set up your screen in Inventor 4 so that it looks like the screen to the right.

10chung ROBOLAB Environment There are two major pallets that contain most of the icons and commands you need to build a program. If you cannot see these pallets, you can find them under the Window -> Show drop down list. Tools Functions

11chung RoboLab Workspace Functions Palette – Contains Icons for all possible RCX program commands. Icons vary with Level Tools Palette – Contains Icons for building a program diagram in the RoboLab workspace Context Help – When this window is open it displays Help information about the Function Icon under the mouse cursor Example Program – All programs begin with a Green light and end with a Red light Icon Search – Click the Search tab to find a Function Icon in the Functions palette Menus Sub Menu Icons – Icons with the right side black dot have sub menu Icons

12chung Tools Palette Operate Value tool: Change values in the Workspace window Wire Tool: connect icons in your program from start to finish Set/Clear Breakpoint: allows you to suspend the execution of your program Set Color Tool: allows you to set the colors of objects in the Panel and Diagram windows Scroll Window Tool: move around in the Title or Workspace windows Arrow Tool: move, delete, or place icons in workspace window Automatic Tool Selection: Automatically senses correct tool to use Get Color Tool: allows you to copy a color from an image and use it as part of the color palette Probe Data: allows you to check the program for values Object Popup Tool: modify settings for items in the Workspace window Edit Text Tool: edit or insert text boxes

13chung RoboLab Programming Elements Forks – equivalent to if/then selection structures Task – run multiple task simultaneously (8 max.) Wait states – program execution will be halted until the wait state condition is satisfied Loops – to create repetition structures in a program Subroutines – a segment of code that can be called repeatedly from another code segment (8 max./program slot) Events – jumps to the specific section of code when the specified event occurs

14chung RoboLab Capabilities I Read Analog input values Output PWM on the output ports Subroutines Multitasking Event monitoring Multimedia Image/sound processing and capture Access all RCX Brick input/output interfaces (buttons, LCD screen, etc.) Music and sound functions

15chung RoboLab Capabilities II Data logging ( Hz) and processing functions using G-Code (can compute basic statistics to derivatives and integrals) Basic Logic and Math functions Variables (47 total, 22 user variables) IR Communication functions Direct program control functions Internet functions User defined libraries LASM functions (LEGO assembly language) Control lab interface functions

16chung Pros to Using RoboLab Easy to see control structure Visual interface is simple Exactly like LabVIEW Data gathering and visualization (investigator)

17chung Cons to Using RoboLab Spaghetti code Hard to wire icons… No edge triggering supported

18chung For More Information LEGOs Page National Instruments Page Tufts University mages/eng/downloads/compare.doc

19chung What is a computer program? A list of instructions created by a computer programmer (you) that tell a computer what to do next Your job as a computer programmer is to: Decide how to get from point A to point B using a bag of tricks (instructions) For the LEGO Robot, instructions = Picture Icons connected together to form a program A (what I want the program to do) B (program doing what I want it to do) LEGO RoboLab Function Icon Palette

20chung An Introduction to Structured Programming (or How to get from point A to point B) Structured programming philosophy states that all programs can written using only three single entry/single exit control structures 1.Sequence structure: is built into RoboLab and means that statements are executed sequentially one after another as along the chain of connected icons 2.Selection structure: chooses between alternative courses of action (makes yes or no decisions) 3.Repetition structure: tells which actions are to be repeated while some condition is true Programs are built in structured programming by stacking and/or nesting as many control structure building blocks as needed to solve the problem

21chung RoboLab Control Structures Sequence Loop/Repetition : Decision: Fork Subroutines: Multitasking:

22chung Ex 1: Go forward 2 seconds and come back by reversing motors

23chung Making Turns Turn left: Spin left: (point turn) Face left: Left wheel Right wheel Left wheelRight wheel stop

24chung Ex 2: Go forward 1.5 seconds and come back by spinning left Spinning 180 degrees? Is it accurate?

25chung Tips How to insert icons? How delete icons? How to save programs? How to use the Icon search feature? Cover the tower and RCX when downloading, if more than one robot in a room! Use Meaningful file names Add Comments using A: edit text

26chung Sensors Light Touch Rotation Temperature Timer – Internal sensor RCX buttons

27chung Light Sensor Percent mode 5% - lowest dark 100% - very bright Reflected light mode: shines a red light Use View Button

28chung Light Sensor Readings Source: HighTechKids.org

29chung Attach a Light Sensor Facing down Gap: around 1 cm (What will be the problem if less than 1 cm to solve the Miner Rescue problem?) Port No. 1

30chung Ex 3. Go straight until the edge of the table is detected. Then stop the robot

31chung Stop when it sees the black line on the Miner Rescue field Measure and record the following values White shelf Black line Foil Outside Edge Start of the ramp from the miner field and the home base: why? The big gap! Suggested to lower the power level move down slowly

32chung The gap between the Light sensor and the floor!!! Both Reflected and Ambient light values are affected by the distance between the sensor and the floor! The light sensor value is in inverse proportion to the gap Light sensor Light sensor

33chung Stop when it sees the black line on the Miner Rescue field

34chung Ex 4. Stop when it sees the 2 nd black line on the Miner Rescue field What went wrong?

35chung How about stopping at the 4 th line? Loop (Repeat) Block

36chung Touch Sensor If released (not pressed): 0 If pressed: 1 Is it very sensitive?

37chung Attach a Touch Sensor Port No. 2

38chung Ex. 5 Loop until a touch sensor is pressed Display seconds until touch sensor is pressed.

39chung Line following - Zigzag methods

40chung Ex 6. Follow the black line until a touch sensor is pressed

41chung Ex 7. Follow the line until it detects the foil Need max power to climb

42chung Ex 8. Follow the line until it climbs back to the home base

43chung Ex 9. Follow the line until it climbs back to the home base – Use Subroutines

44chung Not covered advanced topics Variables Multiple tasks & Synchronization of multiple tasks …

45chung Tips for Robofest 2007 Game Line following may be needed for RCX Light sensor needed for detecting balls in the tunnel or edge

46chung Tips for RoboSumo Light Sensor to detect the ring edge Touch sensor to detect the opponent Theories in physics