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

Slides:



Advertisements
Similar presentations
LeJOS Java for Lego RCX CJ Chung Associate Professor of Computer Science Director of Robofest Assistants Maurice Tedder Steven Kryskalla.
Advertisements

How to Start a New Robofest Team. Starting a Robofest Team is much easier compared to other robotics competitions Robofest is affordable, only $50 to.
RoboParade Workshop II CJ Chung, Ph.D. Founder & Director of Robofest and RoboParade Brought to you by a grant from.
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.
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.
Robot Shove (aka Bottle RoboSumo) Rules & Judging Guidelines North American Championship Nov 3, 2012, 2pm~6pm Lawrence Tech 1.
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Introduction to LEGO RCX robotics and Robot Sumo
Introduction to LEGO RCX robotics and Robot Sumo
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Teacher/Mentor Institute Using the Cortex Chuck Powell.
SystemCheck for TestNav. Agenda 2 SystemCheck for TestNav – Overview – iPads and Chromebooks – Accessing SystemCheck SystemCheck – Check Your System Proctor.
Alma Robotics Challenge March 30, 2007 Alma College.
DE2-115 Control Panel - Part I
Exercise 1: Install PC Software & NXT Firmware
CY-SWR1100 Dual Band Wireless N Router
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
Comm Operator Tutorial How to send sequence data at given time automatically Serial Port Tool
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.
Lab7: Introduction to Arduino
Graphical RobotC NXT (EV3) Robot Workshop 2015 Instructor: Dr. Fred Brauchler Assistant: Chris Parker 2/7/2015Lawrence Technological University1.
V EX C OACHES ' T RAINING October 12, Agenda for Today 9 – 10 AM : Tina Reeves and the Engineering Notebook 10 – Noon : Finish Building, Basic Robot.
Computer Basics. The Computer (Generic) Processor executes commands. Memory stores program and data. Input devices transfer information from outside world.
Alternative Programming Languages Myles McNally LMICSE Workshop November , 2004 University of Mississippi.
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.
Not Quite C: A CS 0 Option LMICSE Workshop June , 2005 Alma College.
LEGO Mindstorms Robotic Invention System Barb Ericson Georgia Institute of Technology.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Comm Operator Tutorial How to send the data after receiving specific data automatically Serial Port Tool
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
[Low-level] Programming of NXT Robots Pavel Petrovič Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
IT 211 Project Integration and Deployment Lab #11.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
NXC (and NBC) NXC (Not eXactly C) is a language similar to NQC, which was the most popular way to program the RCX Built on NBC, the Next Byte Code ‘assembler’
Jim Ng 15/1/2014 CENG4480 TUTORIAL 1. ABOUT ME Current MPhil Student supervised by Prof. Mak You can find me at Rm116 in SHB
Wall Encounter By Made easy by Dwayne Abuel.
NQC / BricxCC Brief Introduction David Schilling.
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.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
JDS5 Training Guide. On Start Up you will see this screen click the OK button Click OK.
EV3 Software EV3 Robot Workshop
Software Toolchains. Instructor: G. Rudolph, Summer Motivation Desktop Programmers typically write code on the same kind of machine on which it.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
How to Execute TSR Program. Install Borland C++ Download Borland C++ from LMS – oads/BORLANDC.rarhttp://vulms.vu.edu.pk/Courses/CS609/Downl.
ROBOTC Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
Using the BlueJ IDE with Mindstorms LMICSE Workshop June , 2005 Alma College.
Software Toolchains. Motivation 2 Write Run Edit, compile, link, run, debug same platform Desktop Write Run Edit, compile, link, debug on host; run on.
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.
Presentation Outline I. Background Information II. Design Project
Downloading Arduino FOR WINDOWS.
Java on the LEGO Mindstorms EV3
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
The Finch Robot and the While Loop
Compiled from various Internet sources Presented by Mr. Hatfield
Glossary NXT-G – the graphical thing for wimps
Intro. To Java Programming using Lego Mindstorms
Quick Start Guide   Installation GM Pro 7.4 5/10/2019.
Getting the software Install Fantom driver
LEGO Mindstorms Robot and Java
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

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

2chung Agenda Introduction to Robofest and Game Rules Go to and click on Announcement link Tech Resource link 9:15am: NQC Installation and Basics 10:45am: Java, LeJos, Eclipse setup Announcements

3chung NQC installation You must install RIS or RoboLab software to install the drivers for your IR tower. Tech Resource or CD-ROM given today Bricxcc

4chung NQC NQC complier – David Baum Brick Command Center (bricxcc) – IDE tool Tutorial: - TechResource

5chung The first NQC program task main() { OnFwd(OUT_A); OnFwd(OUT_B); Wait(400); // 4 sec OnRev(OUT_A+OUT_B); Wait(400); Off(OUT_A+OUT_B); }

6chung Control Structures repeat(n) while if if else do while

7chung Using variables #define TURN_TIME 85 int move_time; // define a variable task main() { move_time = 20; // set the initial value repeat(50) { OnFwd(OUT_A+OUT_C); Wait(move_time); // use the variable for sleeping OnRev(OUT_C); Wait(TURN_TIME); move_time += 5; // increase the variable } Off(OUT_A+OUT_C); }

8chung Sensors task main() { SetSensor(SENSOR_1,SENSOR_TOUCH); OnFwd(OUT_A+OUT_C); until (SENSOR_1 == 1); Off(OUT_A+OUT_C); }

9chung A Simple Line Following #define THRESHOLD 40 task main() { SetSensor(SENSOR_2,SENSOR_LIGHT); OnFwd(OUT_A+OUT_C); while (true) { if (SENSOR_2 > THRESHOLD) { OnRev(OUT_C); Wait(10); // make smooth movement until (SENSOR_2 <= THRESHOLD); OnFwd(OUT_A+OUT_C); }

10chung Why Java? Write once, run anywhere Professional OO software development AP exam from C++ to Java, 2004-

11chung Install Java, LeJos, and Eclipse! 1. Install RCX or Robolab software to install the drivers for your Infrared Tower. RCX v1.X only supports the serial tower. RCX 2.x supports both the serial and USB versions of the Tower (You can skip this step if you have already installed RCX or Robolab) 2. Download Java J2SE SDK from Install the program by running it. This may take 4-5 minutes to install. (Windows 98 users may need to use the older 1.3.x version if there errors installing the newest version) Acknowledgement: Based on web page created by Jason Chien-Tai and updated by Tim Cahoon, a robofest coach

12chung 3. Dowload leJOS from (Start with Version 2.xx) 4. Extract downloaded leJOS ZIP file to a directory (eg.C:\lejos) When doing the unzip, specify unzip to C:\. The zip file will build the lejos directory for you. 5. Download eclipse from (With Latest Release Start with Version 2.xx) 6. Extract downloaded eclipse ZIP file to a directory (eg. C:\eclipse) When doing the unzip, specify unzip to C:\. The zip file will build the eclipse directory for you. 7. Download the following zip-bundle org.lejos_1.0.2.zip

13chung 8. Unzip it into your eclipse plugin directory. (The files go into c:\eclipse\plugins ) 9. Start eclipse by double-clicking eclipse.exe under C:\eclipse (Double-click again if eclipse is not started) HINT: Make a shortcut for eclipse and put it on your desktop. 10. When eclipse is running, go to the leJOS preference page, using Window->Preferences->Lejos page or Lejos- >Preferences.

14chung Lejos Installation Directory = C:\lejos (where you installed Lejos files) RCX comm port = com1, com1, USB (depends on how infrared tower is connected) Data Transfer Rate = fast, slow (select fast. If you have problems try slow) 8 If lejos is not listed on the bar (with file, edit, source, etc..) at the top of eclipse, the lejos plugins were not put in the right directory. ( eclipse\plugins is where the files go). Exit eclipse and redo step 8 again.

15chung How to write a LeJos Java Program using Eclispe Create a project: File -> New -> Project Highlight leJOS Project and click Next (or double click leJOS Project) Type in your Project Name and Click on Finish Create a Java class file: File -> New -> Other; double click on Class Type a Java class name; check public static void main() and click on Finish

16chung

17chung Compile, download, and run Save the file (compile is done) Select: leJOS -> firmware download (for the first time run, takes more than 5 min) Select: leJOS -> bytecode download to download your program Press the green Run button to execute your program

18chung 1010 Announcement : RCX code and RoboLab Workshop Warm-up Competition at Cranbrook Institute of Science. Only for 10 teams We need referees!