Skip to content

A Processing library that allows easy control over Phidget boards

License

Notifications You must be signed in to change notification settings

sgeigers/Phidgets-For-Processing

Repository files navigation

Notice:

This is a deprecated (old) library. It only supports Phidget21. New users should use SimplePhidgets - which supports Phidget22.

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:https://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.