LeJOS Java for Lego RCX 2-12-2005 CJ Chung Associate Professor of Computer Science Director of Robofest Assistants Maurice Tedder Steven Kryskalla.

Slides:



Advertisements
Similar presentations
Mindstorms State Machines A structured method for handling tasks and events using RoboLab and NQC Brian Smith
Advertisements

RoboParade Workshop II CJ Chung, Ph.D. Founder & Director of Robofest and RoboParade Brought to you by a grant from.
1chung 5 th Annual Robofest 2004 Informational Meeting Mar. 20, 2004 Chan Jin Chung Ali Khazaal Jason Lo Computer Science Lawrence Technological University.
1chung Robofest 2005 RCX code Workshop Jan 29, 2005 CJ Chung.
1chung 5 th Annual Robofest 2004 Follow-up Meeting at Cranbrook* May 29, 2004 Chan Jin Chung Lawrence Technological University (*) Celebrating 100 years.
2012 R2R Game Judging Guidelines Updated Feb 18, 2012 Go to and click on [Robofest 2012] button. This PowerPoint file.
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
1chung 5 th Annual Robofest 2004 Informational Meeting Jan. 17, 2004 Chan Jin Chung Lawrence Technological University.
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Introduction to LEGO NXT robotics and Robot Sumo for
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO NXT robotics and Robot Sumo
1chung THANKSGIVING RoboParade CJ Chung Associate Professor of Computer Science Lawrence Tech University
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
Alma Robotics Challenge March 30, 2007 Alma College.
Programming Your Robot (in C)
EV3 Workshop Curriculum Developed by Joe DeRose, Ph.D.
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Engineering H193 - Team Project Gateway Engineering Education Coalition P. 1 Spring Quarter 2008 Robot Programming Tips Week 4 Day 2 By Matt Gates and.
The Turtle Laboratory Sequence Myles McNally LMICSE Workshop November , 2004 University of Mississippi.
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.
For more Lectures and Notes Visit
LEGO Mindstorms Hitachi H8-based RCX brick B.A. Juliano, R.S. Renner, F. Jauregui January 2004 California State University, Chico Intelligent Systems Laboratory.
Chuang-Hue Moh Spring Embodied Intelligence: Final Project.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Teaching with Robotics Professor: Jeffrey Forbes
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Introduction to LEGO NXT robotics and Robot Sumo – Sept 20, 2008 Douglas G. Czinder IEEE SEM R&A Chairperson Professor Keith Bozin.
Department of Computing and Information Sciences Kansas State University Design Methodology for State based Embedded Systems Case Study: Robot Controller.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Robotics Overview of NXT-G Actuators in Mindstorms. Touch sensor Labwork: Right turn. Touch/bump. [Explore move versus Motor Move mini & motor mini. Motor*.]
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.
EV3 Workshop Oct 3, 2015 Instructor: Chris Cartwright
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
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.
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.
EV3 Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
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.
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.
Introduction to JAVA Programming
JAVA TRAINING IN NOIDA. Introduction to Java:  Java training in noida is a general-purpose computer programming language that is concurrent, class-based,
Introduction to LEGO RCX robotics and Robot Sumo Douglas G. Czinder IEEE SEM R&A Chairperson Ms. Susan Latos Robofest Assistant Coordinator.
Presentation Outline I. Background Information II. Design Project
Object Oriented Programming in
Exploring Computer Science Lesson 6-5
Deriving Consistency from LEGOs
Chapter 1 Introduction to Computers, Programs, and Java
The Java Programming Language
Introduction Enosis Learning.
How java is better than other languages according to history and uses.
What is a Robot? A Electro-Mechanical system Plus Artificial intelligence Can do certain tasks that human like Robot Arm Honda Asimo Robot Fish Robot Vacuum.
UNCW Computer Science Jack Tompkins Daniel Heywood
Introduction Enosis Learning.
Girl Scout Lego Robotics Workshop
Robot Programming Computer Literacy S2.
Exploring Computer Science Lesson 6-5
Team Project: A Surveillant Robot System
LEGO Mindstorms Robot and Java
Presentation transcript:

LeJOS Java for Lego RCX 2-12-2005 CJ Chung Associate Professor of Computer Science Director of Robofest Assistants Maurice Tedder Steven Kryskalla Rick Dudley

Agenda 9:00 am - Introduction to LeJos Java Programming using Eclipse 9:15 am – Installation of Java, Eclipse, and LeJos 9:45 am – LeJOS Java Programming Workshop 11:00 am – Mini Challenge 11:45 am - Wrap-up

Why Autonomous Robots?

2 Million Dollar Prize, 2005 142 Miles, within 10 hours

Weaponized robot, also known as SWORDS in Iraq, Jan. 14, 2005 Many of the vehicles being developed will have some autonomy, meaning they'll navigate rough terrain, avoid obstacles and make decisions about certain tasks on their own The Pentagon's research arm, the Defense Advanced Research Projects Agency, also recently awarded contracts to aid research of robots that one day could be dropped into combat from airplanes

Your RJ (Roverbot Jr.) Two motors One light sensor on input port no. 1 Left A Right C One light sensor on input port no. 1 One touch sensor on input port no. 2 One brain: H8 microprocessor, 16MHz

Why Java to program the Brain?

Why Java? AP CS A and AB using Java since 03-04 year Write Once, Run Anywhere AP CS A and AB using Java since 03-04 year Pure OO (Object Oriented) language Standardized Free

Characteristics of Java Simple: automatic memory allocation and garbage collection. # of language Construct is small. Portable Robust (Reliable): “exception handling” Multithreaded Interpreted Distributed Secure Architecture Neutral Dynamic: You can freely add methods in a class at runtime)

LeJOS for Lego LeJOS [Ley-J-oss] http://lejos.sourceforge.net Replacement Firmware for Lego RCX brick – JVM for RCX Size: 16KB around 12 KB for user-programs Download for Free Can be thought of as J2ME (Java 2 Micro Edition) for smaller devices such as pagers, cell phones, and handheld PCs. Total Memsize of RCX: 16KB for ROM

LeJos Memory Map User Programs (12 KB) Routines for ROM (4 KB) leJos JVM (16 KB) ROM (16 KB)

Advantages of using Java for Lego instead of NQC (or C++) Pure Object Oriented. Enormous APIs Floating point numbers: vital for navigation Recursion Threads Simple Event Model You can use custom made sensors, easily Powerful networking APIs Web control of your robot Everything is for free However, no Garbage collection yet (?) Trigonometric functions

Comparing RCX programming languages RCX code leJos NQC (VB) LegOS pbForth Language Graphical Java NQC C/C++ Forth FW replacement N/A Yes No Floating-point Programmable Display Trig and adv math Interpreted

How to Install LeJos programming environment Using DOS Start | Control Panel | System | Advanced | Environment Variables Add c:\lejos\bin to the system PATH, if leJos was installed at c:\lejos IDE Eclipse: the best free Java tool www.robofest.net resources button

Uploading JVM to RCX using DOS Fast mode: lejosfirmdl –f Slow mode: lejosfirmdl It takes about one minutes After the download, you should see a number on the LCD representing the battery voltage

Compile, Upload, and Run using DOS Compile: lejosc <filename>.java Upload: lejos <filename> Press the green button Uploading more than one program lejos <filename>,<filename> Program 0 Program 1

Workshop Topics Eclipse programming environment Learning Java Basics with Lego RCX Repetition – while and for Decision – if, if else Methods Variables Sensors IR Packet Communications Mini Challenge: a part of Robofest Challenge, RoboRelay

Robofest 2005 Junior Division (5-9th) Senior Division (9th-12th) Exhibition Division 13 regional competitions Top winning teams to World Robofest at LTU on April 23. MPC laptops to the best team for each division

Class Mission 1 Do forever Beep when the light sensor sees the bright light

Class Mission 2 Go forward until the robot detects the edge of the white board. Stop at the edge of the board

Class Mission 3 Go forward while counting N black lines. Stop right after the Nth black line

Mini Challenge (a part of Robofest Game) Start when the lamp under the board is on Follow the black line until it detects the end of the line (edge detection) Turn around Coming back to the home base Stop when the bumper (touch senor) is hit