Robotics Invention System 2.0

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

Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Computer Basics. The Computer (Generic) Processor executes commands. Memory stores program and data. Input devices transfer information from outside world.
Lego RCX Assembler and a Case Study Luis Paris Dept. of Computer Science University of Mississippi.
LEGO Robotics Lecture 1: Getting acquainted with your robotic environment.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L19 (Chapter 24) Multithreading.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Building robots Spring Mindstorms Programming Java + leJOS, NQC, and others.
The Turtle Laboratory Sequence Myles McNally LMICSE Workshop November , 2004 University of Mississippi.
How do we make our HelloTester.java program do something? The java in our HelloTester.java file won’t do anything by itself. We need to tell the computer.
Introduction to Lego Mindstorms LMICSE Workshop June , 2005 Alma College.
The Turtle Laboratory Sequence LMICSE Workshop August , 2006 Villanova University.
The Turtle Laboratory Sequence LMICSE Workshop June , 2005 Alma College.
Using LeJOS LMICSE Workshop August , 2006 Villanova University.
Using LeJOS LMICSE Workshop June , 2005 Alma College.
Programming with Lejos Part 1. What is lejos? Cut-down version of Java for the RCX platform Includes: –Lejos API –JVM API includes functionality needed.
LEGO Mindstorms Hitachi H8-based RCX brick B.A. Juliano, R.S. Renner, F. Jauregui January 2004 California State University, Chico Intelligent Systems Laboratory.
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.
Introducing Java.
Lecture 1 Introduction to Java MIT- AITI 2004 What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word.
Interfacing the LEGO RCX to the outside world John M. Larkin Whitworth College Spokane, WA.
NASA SENSORS: Build A Sturdy Car/Rover Lynne Hehr, John Hehr, Cindy Cardwell, Mary Alice Mixon Center for Math and Science Education Arkansas NASA Educator.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
[Low-level] Programming of NXT Robots Pavel Petrovič Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics
Adapted for STLP Camp ‘09 Mobile Robots Why do robots need to move?
Why do robots need to move?
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Robotics as Means to Increase Achievement Scores in an Informal Learning Environment Bradley S. Barker and John Ansorge University of Nebraska-Lincoln.
Exploring with Lego Robots Daniel Limbrick (Texas A&M University) Emily Sherrill (Tennessee Tech University)
Designed to introduce students to programming, logical thinking, teamwork, and project-based learning.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Chess Playing Bot. Detecting Green coloured squares using Blobs.
INTRODUCTION SOFTWARE HARDWARE DIFFERENCE BETWEEN THE S/W AND H/W.
Programming Concept Chapter I Introduction to Java Programming.
AUTOMATION & CONTROL INSTITUTE INSTITUT FÜR AUTOMATISIERUNGS- & REGELUNGSTECHNIK Utilizing Lego Mindstorms nxt(tm) as Teaching and Training Platform for.
Team Project: A Surveillant Robot System Little Red Team Chankyu Park (Michael) Seonah Lee (Sarah) Qingyuan Shi (Lisa) Chengzhou Li JunMei Li Kai Lin Functional.
Team Project: A Surveillant Robot System Little Red Team Chankyu Park (Michel) Seonah Lee (Sarah) Qingyuan Shi (Lisa) Chengzhou Li JunMei Li Kai Lin SW.
JAVA COURSE LESSON2 BY OMPUTER ENGINEEING ASSOCIATION.
SLego: A Squeak Implementation of Lego Mindstorms Alexandre Bergel Institut fuer Mathematik und Informatik University Bern
Event Driven Programming Minus the GUI Plus a Robot By Charlie Vick.
CSE 1341 Honors Professor Mark Fontenot Southern Methodist University Note Set 11.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
VEX ARM® Cortex®- based Microcontroller. The VEX ARM® Cortex®-based Microcontroller coordinates the flow of all information and power on the robot. All.
How to control LEGO® Mindstorms devices Thomas Mueller thomas _ tmspecial.com.
Building robots Spring Building Braitenberg Vehicles From Abstraction to Realization.
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.
Parallel Processing (CS526) Spring 2012(Week 8).  Shared Memory Architecture  Shared Memory Programming & PLs  Java Threads  Preparing the Environment.
Mindstorms 1.1 Today’s topics l AI l History of Robotics l Uses of robots l The RCX l ROBOLAB l Upcoming ä Basic control ä Kinematics ä Robot architectures.
Java FilesOops - Mistake Java lingoSyntax
Controlling a Robot with a Neural Network n CS/PY 231 Lab Presentation # 9 n March 30, 2005 n Mount Union College.
ATI LEGO ROBOLAB Steps To Getting Started. ROBOLAB Introduction  Robots are built around the RCX programmable LEGO brick that is used to control motors.
MAY LEGO ENVISON SYSTEM Team members: Brennan Beavers (CprE) Justin Goers (CprE) Erin Isvik (CprE) Roger Rathje (CprE) Client: Toying with Technology.
Producing Morse Code Pete Sanderson Chuck Burchard Patrick Bobbie Alma College Lego Mindstorms Workshop 16 June 2005.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Introduction to EV3. Many Different Types of Robots Snake Robot.
DPS Secondary Science Institute 1 Agenda 8:30-8:45 Introduction and Overview 8:45-9:15 The Bumper Car 9:15-10:15 The Line Follower 10:15-10:30 Questions.
Instructions Quit H Robinson. Quit Start Game H Robinson Instructions: Enable Macros when prompted. If you were not prompted then open PowerPoint, go.
T.R.I.D.E Simon Overell (seo01) Supervisor: Keith Clark.
Branching Error (a.k.a. the VM Program Instruction Break Error)
Lego Mindstorm Robot Educator Tutorials
Instructor: Chien-Ho Ko
Internet and Java Foundations, Programming and Practice
IT Basic Wednesday 14 April 2010
Programming without BlueJ Week 12
Computer Organization & Compilation Process
class PrintOnetoTen { public static void main(String args[]) {
Team Project: A Surveillant Robot System
System Programming By Prof.Naveed Zishan.
Programming Robots using Java
LEGO Mindstorms Robot and Java
Presentation transcript:

Robotics Invention System 2.0

RCX Programming cycle zProgram Mindstorm PC-side software, i.e. RCX code or Robolab zRCX code translates your code to “Bytecode” zUse IR tower between PC & RCX to put your program in RCX RAM zFirmware interprests bytecode to m/c code zRCX processor executes machine code

InfraRed receiver must face IR Tower

This is a sensor port, NOT a motor port.

Sensor ports Motor ports

Logical Structure

RCX: The Robot’s Brain

What is sensing?

Why do robots need sensors?

PC side Software zLego RCX code zRoboLab zNQC (Not Quite C) zJava APIs (Application Programming Interfaces) It is a set of command libraries allow user to use JVM-equipped computer to communicate with RCX using original firmware

Firmware zlegOS (C/C++) zpbForth (Forth) zleJOS (LEGO Java OS)

Programming Legos with Java zhttp://www3.ltu.edu/~chung/os/Lego- leJOS.htm

HelloRCX C:\>lejosfirmdl Use --help for options. Transferring "/Apps/lejos/bin/../bin/lejos.srec" to RCX % C:\>

HelloRCX.java import josx.platform.rcx.*; public class HelloRCX { public static void main(String[] args) { Motor.A.forward(); Motor.C.forward(); try { Thread.sleep(2000); } catch (InterruptedException ie) {} Motor.A.stop(); Motor.C.stop(); } }

Compilation C:\>lejosc HelloRCX.java C:\>

Running C:\>set RCXTTY=COM2 C:\>lejos HelloRCX C:\>

RCX zTransfer & run on RCX zUse a PC-side emulator

Line Follower Robot zLine is darker than the floor zRobot will follow the left border of the line (e.g. it turna right to go toward the line, left to go away from line) zO/P port A, C to control wheel (motors) zO/P port B to ocntrol the arm

Main methd Int floor, line; Task Main() { initialize(); Calibrate(); Go_Straight(); While (true){ Check_Bumper(); Follow_Line(); }

Programming concepts zMutlitasking zStep-By-Step event driven scheme zPriority

Java Programming Concepts zThreads and Timing zMemory usage: yMinLCD, LCD, TextLCD ySound yMinSound zGarbage Collection

Debugging zEmulator zLCD (5 c/c) zPlay Sounds zleJOS displays uncaught exception