A Processing library that allows easy control over Phidget boards
Java HTML CSS Shell
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
examples
lib
resources
src/shenkar/phidgets
web
.classpath
.gitattributes
.gitignore
.project
README.md
core.jar
license.txt

README.md

Phidgets For Processing

A Library by Shachar Geiger for the Processing programming environment. Last update, 21/07/2016.

Allows easy control over Phidget boards. For Windows and OSX systems Examples based documentation - everything you need to know in order to use this library is inside the examples - just open the example that fits the Phidget board you'd like to use. Mostly suitable for beginners, but more advanced users will also enjoy the ease and directness of use. Supports most common Phidgets boards. For details on Phidgets, goto Phidgets website.

Installation

Open the Processing editor, choose Sketch -> Import Library -> Add Library, type "phidgets" in the search bar, choose PhidgetsForProcessing and press "Install" below. After install is finished, exit the editor and restart it.

Troubleshooting

If, when running an example, you get an error similar to "ClassNotFoundException: com.phidgets.PhidgetException":

  1. Make sure Phidgets' latest driver is properly installed on your system (go to Phidgets Drivers and install the driver).
  2. Make sure the board is connected to the computer.
  3. Open "Phidgets Control Panel" (installed with the driver), and make sure the connected board is shown. You can test the board by double-clicking on it, but make sure to close the panel when you finish, or Processing won't be able to find it.
  4. If all is well up to here, you probably need to update Java's support for Phidgets in the library, so:
  5. Download [phidgets21jar.zip](http://www.phidgets.com/downloads/libraries/phidget21jar.zip), and unzip it.
  6. Replace phidget21.jar in library folder (typically "c:\My Documents\Processing\libraries\PhidgetsForProcessing\library") with the new file you just downloaded.
  7. Restart Processing.
  8. *Mac users may also need to copy from /Library/Java/Extensions/libphidget21.jnilib into /Documents/Processing/libraries/PhidgetsForProcessing/library (overwrite existing file).

Reference

Beginners are encouraged to open the examples from within the Processing environment (File -> Examples -> Contributed Libraries -> Phidgets For Processing).
More advanced programmers can have a look at the javadoc reference. A copy of the reference is included in the .zip as well.

Our Lab

This library was written in the Kadar Design and Technology Center, Shenkar College of Engineering, Design and Art, Israel.