(Icommand & Processing). NXT The NXT is the brain of a MINDSTORMS® robot. It's an intelligent, computer- controlled LEGO® brick that lets a MINDSTORMS.

Slides:



Advertisements
Similar presentations
Java + OpenGL = JOGL Java and OpenGL Rich Truban Andrew Potozniak.
Advertisements

Processing and Java David Meredith
Informer Extensions PRESENTER: Brad Leupen | CTO, Entrinsik |
Setting up Eclipse PSC 120 Jeff Schank. Outline Find our user account Create “PSC120” Folder Create a “workspace” folder Link it to Eclipse Install Mason.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Processing Processing is a simple programming environment that was created to make it easier to develop visually oriented applications with an emphasis.
JAVA PROGRAMING LANGUAGE. Content of Java 2 SDK  Development Tools (In the bin subdirectory.) Tools and utilities that will help you develop, execute,
Creating an application in Netbeans. Goal of this tutorial Project 1 requires you to develop and test a graphical user interface (GUI) Netbeans allows.
Mobile Phone Application for Code Recognition December 2008.
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.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
IS 426: Information Systems Construction in Modern Society Downloading and exploring oracle development environments.
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
1 Advanced Computer Programming Concurrency Multithreaded Programs Copyright © Texas Education Agency, 2013.
Processing Dr Andy Evans. Processing MIT Media Lab Libraries for visualisation. Wraps a simple visualisation scripting language.
CSCI 273: Processing An Introduction. Programming Languages –An abstract "human understandable" language for telling the computer what to do –The abstract.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
C O M P U T E R G R A P H I C S Jie chen Computer graphic -- OpenGL Howto.
Presented By: Muhammad Tariq Software Engineer Android Training course.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ   Uses.
Use bluetooth for communication 1. enable bluetooth in NXT and also enable visibility 2. configure setting in brickCC –Wait about 30 seconds for searching.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
MANAGING KEYPADS 2014 v1.0. Manage Keypads 2 Participants may use their keyboards by selecting and clicking on their desired cell (1-9) or by using the.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
How to connect your NXT via Bluetooth A step-by-step instruction.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Session 11 Intro to FRC API.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
Open project in Microsoft Visual Studio → build program in “Release” mode.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
Welcome to CSCE Presented by: Brian Russell. Computer Science Interested in making computer programs called software. Interested in making programs and.
(1) Introduction to Robocode Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii Honolulu.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Computer Science I Libraries. Sound. Saving frames as images. Classwork/Homework: Make sketch using sound. Add saving frames.
Processing == Java + Extra Utilities Processing Adds: – Drawing functions – Text and font manipulations – Image and video – 3D transformations – Keyboard.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Computer Science I Lab 1 ISMAIL ABUMUHFOUZ | CS 180.
Lego League. What is the Lego League? What we will be doing for the next few weeks The AIM of the next few weeks is to gain knowledge into programming,
실험 구성 (DC모터 속도제어) -Matlab xPC Target 이용
Spring 2008 Mark Fontenot CSE Honors Principles of Computer Science I Note Set 11.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Day 1 Session 2. Setup & Installation
PhoneGap, Processing.
Step 1 - Installing TStatSpec Download the TStatSpec software from customer.honeywell.com.  The files will need to be extracted in a new folder.  
CLOUD
OpenGL project setup.
Java on the LEGO Mindstorms EV3
Antenna Gain Plugin (AGP)
Introduction To Programming with LEGO NXT 1
Download TPL.zip to some directory
USING ECLIPSE TO CREATE HELLO WORLD
Android 基礎.
Setting up Netbeans IDE BY: Matthew Hoover Alcon Labs Summer Intern
Installing and running the local check projects in Eclipse
Setting up an Eclipse project from a repository on GitHub
Starting Jena 3 in Eclipse
Bolat Azamat, Kim Dongmin
Compiled from various Internet sources Presented by Mr. Hatfield
Intro. To Java Programming using Lego Mindstorms
Quick Start Guide   Installation GM Pro 7.4 5/10/2019.
Working with Libraries
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

(Icommand & Processing)

NXT 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 different operation.

 serial profile 지원하는 usb Bluetooth Dongle 필요  NXT 끼리의 연결 ◦ 동시에 3 개의 다른 NXT 와 연결 가능 ◦ 1 개와의 통신만 가능 ◦ 파일 전송 가능  Bluetooth 연동되는 다른 기기와도 연결 가능 ◦ 핸드폰 ◦ 조이스틱

NXT Bluetooth Dongle Icommand & processind

 Download and install Eclipse ◦

 Download and install Processing ◦

FILE –> NEW PROJECT and select “Java Project” Create a new project.

Enter your project name (for example, “TestProcessing”) and select “finish” Create a new project.

FILE –> IMPORT –> GENERAL –> FILE SYSTEM Click Next. Import the Processing libraries.

Click browse and find the “lib” directory inside the Processing application folder. “C:\processing – 0135\lib” Select the file “core.jar” inside the lib folder. Click “finish.” Import the Processing libraries.

BUILD PATH –> ADD TO BUILD PATH The “core.jar” file should now appear with a jar icon. Import the Processing libraries.

FILE –> NEW –> CLASS Create a class and write your code.

Enter in a class name “MyProcessingSketch” and click finish. Create a class and write your code.

 After selecting finish, you’ll see the following code :  Import the core Processing library : ◦ “import processing.core.*;”  PApplet is the parent Processing class that allows us to have access to all the Processing goodies.

 Write setup() and draw() ◦ and specify “public” for these Processing functions.

RUN –> RUN AS –> JAVA APPLET Run.

마우스가 클릭된 시작점과 끝점의 좌표를 이용한 line drawing JAVA APPLET

RUN –> RUN AS –> JAVA APPLICATION FullScreen. JAVA APPLICATION

 Download 

bluecove.jar 와 icommand.jar bluecove 는 Java API 로 지원되는 bluetooth library. icommand 는 bluecove 를 이용해서 NXT 에 표준 명령을 전달하기 위한 API 를 제공. Import the Icommand jar file

Bluetooth  Bluetooth Communication ◦ RXTX :  a native lib providing serial and parallel communication for the Java Development  ◦ BlueZ :  Official Linux Bluetooth protocol stack  ◦ Bluecove  a Java library for Bluetooth (JSR-82 implementation) that currently interfaces with the Mac OS X, WIDCOMM, BlueSoleil and Microsoft Bluetooth stack  ◦ ETC 

import icommand.nxt.Motor; import icommand.nxt.comm.NXTCommand; public class TestNXT { public static void main(String[] args) { NXTCommand.open(); // 블루투스 연결 초기화 Motor.B.setSpeed(100); // 속도 //Motor.B.forward(); Motor.B.rotate(360); // 한바퀴 Motor.B.stop(); // 정지 NXTCommand.close(); // 연결을 끊음 } }

 실행하기 전에 properties 파일로 NXT 와의 연결 정보를 주어야 한다. ◦ C:\Document and Settings\icommand.properties  각자의 윈도우 사용 계정  파일을 만들던가 아님, 파일 없이 수행하면 에러가 나면서 자 동으로 파일이 생성된다. nxt.btaddress= d860 nxtcomm.type=bluecove nxtcomm=COM5

 Icommand ◦ C:\icommand-0.6\docs\api\index.html  압축 풀어놓은 경로의 docs 폴더  Processing ◦ ml ml   pse/ pse/

 키보드 4, 8, 6, 2 버튼을 누르는 동안 nxt 가 움직 이게 해보자. ◦ 4 번 키 – 왼쪽으로 회전 ◦ 8 번 키 – 앞으로 전진 ◦ 6 번 키 – 오른쪽으로 회전 ◦ 2 번 키 – 뒤로 후진  Processing – 키보드 값 제어  Icommand – 모터 제어

 processing – reference  Input -> Keyboard -> keyPressed ◦ Draw() 안과 밖의 차이점  안 : 계속 반복하면서 키보드의 눌림을 확인한다.  밖 : 계속 누르고 있어도 반복되지 않기 때문에 한번만 누른 것으로 된다.