| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Get Started with the GizmoKit

Page history last edited by Wendy Ju 14 years, 6 months ago

     on to Buttons & LEDs =>      

 

The GizmoKit is based on the Arduino, which is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. We chose this as a platform because there is a critical mass of artists and designers using it as a way to "sketch" interactive objects or environments. (What else is in the Gizmo Kit?)

 

The Arduino can be programmed with different code (called firmware) to enable it to interact in a variety of ways. For starters, we have programmed the Arduino with a program called Firmata which allows the Arduino to interface gracefully with Processing in a generic fashion. The following instructions (and downloads) are meant for an Arduino using Firmata firmware.

 

  1. Install the FTDI USB Serial driver for the USB chip on the Arduino board:

    Windows executable, OS X >=10.4 on Intel Macs, OS X, Power PC or older Intels

     

  2. Download our Arduino library for Processing: arduino_library.zip

    (Note: this version is NOT identical with the official version distributed on the Arduino site)

    Inside you will find a folder called "arduino" that you should extract into the libraries folder inside your Processing sketchbook directory. (On the Mac, the sketchbook directory is inside your Documents folder by default. On the PC, the sketchbook directory is in My Documents by default.) If you are currently running Processing, you will have to quit and restart in order for the new library to be recognized. When it is restarted, you should see the option of "arduino" when you go to Sketch->Import Library.

     

  3. After extracting the library files, start Processing and run this test to verify that the library is installed correctly. Processing code (test_arduino.zip):
    /*
    * Test Arduino library
    */
    import processing.serial.*;
    import cc.arduino.*;
    Arduino arduino;
    void setup() {
    size(200, 200); noLoop(); println(Arduino.list()); }

    void draw() {
    }
    The output in the console window below the source code should be something like this ON A PC:
    Stable Library
    =========================================
    Native lib Version = RXTX-2.1-7
    Java lib Version = RXTX-2.1-7
    [0] "COM1"
    and something like this on a Mac:
    Stable Library
    =========================================
    Native lib Version = RXTX-2.1-7
    Java lib Version = RXTX-2.1-7
    [0] "/dev/tty.Bluetooth-PDA-Sync"
    [1] "/dev/cu.Bluetooth-PDA-Sync"
    [2] "/dev/tty.Bluetooth-Modem"
    [3] "/dev/cu.Bluetooth-Modem"
  4. Download all example code (arduino_examples.zip) and extract the folder into your Processing sketchbook examples/ directory.

     

More info on Processing is available at:

 

     on to Buttons & LEDs =>      

 

 

Comments (0)

You don't have permission to comment on this page.