CSCI 1302 Proposals Getting Started with Phidgets.

Slides:



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

Teacher/Mentor Institute Using the Cortex Chuck Powell.
Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
Module 3 Configuring Hardware on a Computer Running Windows XP Professional.
Manual Software Upgrade Guide ◆ Notice 1. Use the full model name of TV when manually downloading software updates. Ex) 47LX9500-UA : The Full model name.
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
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.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
This document guides you through using the common features of the InFocus™ Mondopad™ touchscreen display located in this room. Getting Started Power Display.
Getting your Arduino to Work: Microsoft Windows 1.Install Arduino programming environment 2.Install Arduino Uno driver 3.Make sure you can download a program.
Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen & Kevin Barrett July 21-22, 2014.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
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.
Transferring Data from XL-30 PC to Dell PC Using Link Maven.
LSU 06/04/2007BASIC Stamp Editor1 The BASIC Stamp Editor Programming Unit, Lecture 3.
Double click on laptop clock to get the “analog” clock and the current time showing in hh:mm:ss format in upper right corner of laptop desktop.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
Github & Arduino How To: Post On Github How To: Download from Github How To: Upload Code Downloaded from Github to Arduino Tommy Sanchez EE400D Spring.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Lab 4- Intro to using Wii remotes Southern Methodist University Bryan Rodriguez.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Jeff Branson Education Outreach Coordinator Derek Runberg Curriculum Curator Getting.
Move Pictures From Your Mobile Phone to Your PC.  You never know when a photo opportunity is going to arise, which is why having a camera phone can be.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Otasuke GP-EX! Chapter 11 GP-Viewer EX
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
Screenshots of the E-book download For Windows and Flash disks.
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.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
The George Washington University Department of ECE ECE 1010 Intro: Electrical & Computer Engineering –Introducing KIPR Link/Interface and Set-up –Continuation.
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
Presentation: Phidgets for Rapid Pervasive Prototyping Applied Pervasive Computing.
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 1P. 1Spring Quarter Introduction to Sensors Lab 1.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
U2020 X-Series Power Sensor Firmware Upgrade Process Version 1 Date: 8 August 2012.
Introduction To Greenfoot
Profitable Growth B3X Number one to the customer! MTK PC Sync Guide for Window XP 1. Insert CD in PC, & open the same from CD drive.
Programming - Motion Intro to Robotics. Motors and Sensors Setup The first thing we need to do is tell ROBOTC that we have motors on our robot. Choose.
By Joshua Shaw.  Now that we have a program, we should see how it works in the real world  To do this we need the Cortex and the orange USB cable 
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
ISite Main Window Open iSite v7.0 from your laptop (the Main window will appear) Auto-Discovery occurs on if connected to a iNFINITI Modem via a LAN, port.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
Lab 03: Outputs and File Management Soran Bilbas soranbilbas.epu.edu.krd Technical Business Management 4 February 2016.
HP Indigo Sales & Marketing Suitcase Overview and setup
Having fun with code, using Arduino in a middle school CS classroom
After Construction Name: Per #:.
Downloading Arduino FOR WINDOWS.
Arduino is an open-source platform for building electronics projects
Crouzet touch Quick start.
iSERIES PROGRAMMING/LOGGING TRAINING
Introducing KIPR Link/Interface and Set-up
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.
Arduino and Grove LET’S START.
Roller Coaster Design Project
FeMaidens Programming
U2040 XA-Series Power Sensor Firmware Upgrade Process
Create a Desktop Shortcut
FPGA Vinyl to Digital Converter (VDC)
Downloading Arduino FOR MAC.
Arduino and Grove LET’S START.
Downloading to the NXT requires the correct hardware setup
Presentation transcript:

CSCI 1302 Proposals Getting Started with Phidgets

Equipment Visit phidgets.com Look up specifications for each sensor Online documentation: Order additional phidgets Company ships from USA, competitive pricing Buy USB Hub The laptop computers may only have 1 USB port so buy a HUB to attach multiple devices Interface Kit and Servo Motors each attach to a USB Port

Installation Procedure (1 of 6) Computer must have Java Installed JGrasp or TextPad

Installation Procedure (2 of 6) Go to location for Phidget Windows Downloads Downloads Windows

Installation Procedure (3 of 6) 1. Download Phidget Framework (Phidget 21.MSI) 2. Install Phidget Framework 1. Microsoft.NET should be installed on your computer, 2. After installing Microsoft.net., install Phidget 2.1 MSI. This will create the folder Program Files/Phidget on your computer. 3. You will see a PH icon on status bar to indicate success

Installation Procedure (4 of 6) Create a Phidget Files Folder on your C Drive Download “Java Files” and save in your Phidget Files Folder Examples: Java (Zip file) Additional Files: phidget21.jar Java API Manual: javadoc.zip

Installation Procedure (5 of 6) Unzip Files Use UnZip to extract files from.zip The phiget21.jar is a compressed java file. You can use JGrasp to extract all files (Tools/Jar). Ultimate Zip is another program to extract the java files.

Using JGrasp to Extract Files

Installation Procedure (6 of 6) 2 folders will be created. (com and meta-inf) All source files you create must be in the Phidget Files folder. They will import data from the com folder

Interface Kit 1.Connect the Analog Sensor to any of the analog input ports (labeled 0 to 7) using a Phidgets sensor cable. 2.Connect the InterfaceKit board to the PC using the USB cable. 3.Connect one end of the wire to a digital input port and the other end to the ground connection. 4.Connect the LED to one of the digital output by inserting the long LED wire into any of the digital outputs (labeled 0 to 7) and the shorter wire to Ground. 1.

Testing the InterfaceKitPhidget Double Click on the icon to activate the Phidget Control Panel and make sure that InterfaceKitPhidget is properly attached to your PC. If you do not see the device listed Go to WebService Tab Set [Start up Type] Automatic and Press [Start] You may have to detach the Interface Kit from USB port and reattach after WebService status is Running WebService Tab General Tab

Testing the InterfaceKitPhidget When you double click on the device name, GUI appears that allows you to interact with the device Remember to close this interface before executing your program. The interface kit may be “connected” to one program at a time.

Using Phidget Classes (1 of 6) Source code must be saved in folder that contains the com folder. Your program is looking for this structure. Import the Phidget classes in your source code import com.phidgets.*; import com.phidgets.event.*;

Using the Phidget Classes (2 of 6) LISTEN TO ANALOG SENSORS ATTACHED TO THE INTERFACE KIT PHIDGET Declare an InterfaceKit Phidget instance field InterfaceKitPhidget ik; Up to 8 analog sensors can attach to the interface kit. Open the interface kit with openAny() or open methods Add a sensor listener to monitor change in sensors values/

Using the Phidget Classes (3 of 6) LISTEN TO ANALOG SENSORS ATTACHED TO THE INTERFACE KIT PHIDGET try { ik = new InterfaceKitPhidget(); // Allocate space ik.openAny(); //Open interface attached //Wait for the device to be attached System.out.println("waiting for InterfaceKit attachment..."); ik.waitForAttachment(); System.out.println(ik.getDeviceName()); //Add a Listener to report change in sensors ik.addSensorChangeListener( new InterfaceSensorChangeListener()); }//end try catch (PhidgetException e) { System.out.println("Phidget Exception Generated"); e.printStackTrace(); } THIS IS A CLASS YOU CREATE!

Using the Phidget Classes (4 of 6) Create your class that implements the SensorChangeListener.. private class InterfaceSensorChangeListener implements SensorChangeListener { public void sensorChanged(SensorChangeEvent se) { // Get the port number of the analog sensor that has changed. int port = se.getIndex(); //Get the value of the sensor. int value = se.getValue(); //You must know where each sensor has been attached to the interface kit System.out.println(“Sensor in port: “ + port + “has the value: “ + value); } Required method //SAMPLE CODE if (port == 0) //left light sensor { if (value > 400) // too dark // insert code }

Using the Phidget Classes (5 of 6) ACTIVATE A MOTOR CONNECTED TO YOUR USB PORT Create a servo motor instance field ServoPhidget servo; Open the motor try { servo = new ServoPhidget(); servo.openAny(); //If you just have 1 servo attached used openAny() method. // Otherwise you can specify which servo you want to open servo.open(19844); System.out.println("waiting for Servo attachment..."); servo.waitForAttachment(); System.out.println("Serial: " + servo.getSerialNumber()); }//end try catch (PhidgetException e) { System.out.println("Phidget Exception Generated"); e.printStackTrace(); }

Using the Phidget Classes (6 of 6) MOVE A MOTOR CONNECTED TO YOUR USB PORT /* The range of a servo motor maybe -23 to 232 however this depends on the servo. Typically, the range might be 25 to 180 degrees. */ try { // Set position to lowest position (rewind) servo.setPosition(0, 90); //motor #0, angle 90 degrees } catch (PhidgetException e) { System.out.println("Phidget Exception Generated"); e.printStackTrace(); } The setPosition method is used to move the motor. A PhidgetExecption may be thrown when setting the motor and must be caught in your code.

Frequently Asked Questions Do NOT have the Phidget Control Panel open when you are testing your code. Only one program is able to open the interface at a time. You must close all programs that are trying to access the interface before your code will run.