Programming Robots using Java

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

LabView Basics.
Robot Soccer Challenge
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
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.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
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.
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.
Lego Mindstorms NXT 2.0 : Prepared By Afaf mejbel AL-Ajmi. Hanan bahjat salah. Noura Al-asmar..Ohood motlag owaimer.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
Introduction to the Basic Parts of LEGO’s NXT Robotics
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
1 Design and Discovery Robotics Wednesday May 10th 2006 Education Centre Drumcondra Design and Discovery Robotics Wednesday May 10th 2006 Education Centre.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
Sentry System Multiple Sensors
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
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.
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.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Decisions, Looping, and input sensors Mindstorms, Eclipse and Java.
Lesson 1: Motors and Sound Programming Solutions.
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.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
ROBOTICS Jason Bell Brad Carlson
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.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
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.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4.
How Do You Make a Program Wait?
Programming Design ROBOTC Software Principles Of Engineering
Introduction to LEGO Mindstorms EV3 What is in the box?
NXT Mindstorms Kit Programming
Exploring Computer Science Lesson 6-5
Deriving Consistency from LEGOs
INTERMEDIATE programming LESSON: debugging Techniques: DISPLAY, LIGHT, Sound, Button Press… By Droids Robotics © 2014, Droids Robotics, v. 1.0,
Mindstorms EV3 Programming
By Sanjay and Arvind Seshan
Mindstorms EV3 Programming
Introduction To Programming with LEGO NXT 2
Introducing KIPR Link/Interface and Set-up
Robot Soccer Challenge
Programming Part 2 Mod Kit
Classroom Digital Camera
Mindstorms EV3 Programming
Loops and Switches Pre-Quiz
Module F: Presentation Understanding Robot Fundamentals
Robot Programming Computer Literacy S2.
Exploring Computer Science Lesson 6-5
Forward Until Touch Robot goes forward until it hits a wall.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 5.
Programming Design ROBOTC Software Principles Of Engineering
INTERMEDIATE PROGRAMMING LESSON
Which way does the robot have to turn to get to the charger?
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Team Project: A Surveillant Robot System
Compiled from various Internet sources Presented by Mr. Hatfield
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Lego MINDSTORMS EV3.
Programming Robots using Java
Oregon Robotics Tournament and Outreach Program
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
AN INEXPENSIVE ROBOTIC KIT FOR CHILDREN EDUCATION
Presentation transcript:

Programming Robots using Java Linglestown Middle School Penn State Harrisburg Spring 2010 Jane S. Kochanov

http://marsrovers. jpl. nasa. gov/mission/spacecraft_surface_rover http://marsrovers.jpl.nasa.gov/mission/spacecraft_surface_rover.html

Roomba Intelligent Floorvac Robotic Vacuum Roomba 4100 Intelligent Floorvac Robotic Vacuum - Red. Dirt detection and infra-red cliff sensors. Auto adjusts to any floor surface 2-hour continuous cleaning Virtual wall for confining to designated area Rechargeable APS battery, 7-hour charger Measures 13 by 4 inches www.totalvac.com

Virtual Guard Dog It sports a digital camera, infrared sensors and videophone capability so absent homeowners can be notified of intruders. 280,000 yen ($2,600) contraption by Japanese robot maker Tmsuk Co. Ltd. and Sanyo Electric Co. Ltd. http://www.cnn.com/2005/TECH/ptech/06/02/roborior.ap/

Hospital Courier TUG 50 pounds Ferries linens, X-rays, drugs, food Made by Pittsburgh-based Aethon Uses wireless radios to call elevators or open automatic doors http://www.aethon.com

ASIMO Advanced Step in Innovative Mobility Humanoid Robot built by Honda Introduced in November 2000 ASIMO video

LEGO Mindstorms Robot Robot Kit includes: RCX (Robotics Command Explorer) 2 Motors 2 touch sensors 1 light sensor USB infrared transmitter tower A “gazillion” lego parts to build a robot

LEGO Mindstorms Robot RCX runs on 6 AA batteries When batteries are low, battery icon with an “X” across it will appear in the display 3 gray ports labeled 1, 2, 3 Sensor ports 3 black ports labeled A, B, C Motor ports

LEGO Mindstorms Robot 4 buttons On-Off Run to execute and stop a loaded program Prgm to scroll through the loaded programs May load up to 5 programs at one time View allows you to view information on a sensor or motor

LEGO Mindstorms Robot Display Window A little person standing or running Indicates that a program is loaded or running respectively To the right of the little person, a number indicating which of 5 programs will be active when the Run program is pressed To the left of the little person, the Software Watch Shows program being downloaded. It counts units of 100 bytes, so a 3 Kb program counts up to ~ 30 Shows the voltage level of the battery

LEGO Java Operating System Provides a Java package to control the RCX: josx.platform.rcx.* Provides Java classes for working with the RCX features: Motors Sensors Display Sound Buttons IR tower

LEGO Java Operating System TextLCD class: Uses the display to show text messages. This class uses a great deal of memory. The letters are approximations since the display was originally intended for numbers. print (“text”) - prints the text on the LCD. Only the first five letters are displayed.

LEGO Java Operating System Motor class: Used to control the RCX output ports which control the motors. The class contains 3 static Motor instances, A, B, and C, which correspond to the 3 output ports. setPower(int) - sets the current power level of the motor from 0 to 7. backward( ) - moves the motor backwards. forward( ) - moves the motor forwards. stop( ) - stops the motor. reverseDirection( ) - no matter which way the motor is turning, it makes it turn the other way.

LEGO Java Operating System Sound class: The robot is able to play sounds for different tasks you might want to program playTone(int Frequency, int Duration) - - plays a tone in the range 1 - 20000 Hz given by Frequency. The tone is played for Duration: to play 1 second, use 100. It is truncated at 256, meaning that 2.56 seconds is the maximum duration possible.

LEGO Java Operating System systemSound(true/false, int Code ) – plays one of the predefined tones. Code Sound Short beep 1 Double beep 2 Descending arpeggio 3 Ascending arpeggio 4 Long low beep; error sound 5 Quick ascending arpeggio

LEGO Java Operating System Button class: Encapsules 3 RCX buttons View, Prgm, Run. You may call a static instance of each button using VIEW, PRGM, and RUN. waitForPressAndRelease( ) throws InterrupedException - wait until the button is released

Let’s Try Create a simple program together that: Displays a word to the LCD Start one motor Start the other motor Play a descending arpeggio before the motors start Run until the RUN button is pressed