Using the EZIO board with simple switches.

LINGO TERMS:

global EZIO

--------

Call digital input line 1 in this way:

D1=EZIO.readLine (1)

D1 will hold boolean values only,

a zero or a 1.


EXERCISES:

Before you start:

1-Download the Keyspan adapter and install. Hook up your board as demonstrated in class-plug serial cable into port 1 of the adapter. Remember to not connect power to the board until wiring and downloads are complete.

2-Test to determine which Keyspan port is being read. Use Sherlock, and find the application called Keyspan USA-28X Manager. Check to make sure the computer is reading the printer port.

3-Download Ben Chang's EZIO XTRA. Copy the XTRA, "EZIOXtra" from the download folder to the Xtras folder in the Director 8.5 application on your hard drive.

4-Download Holmes' sample movies (zip file)

Basic:

1-Using the setup (wire crossing) in the diagram above, run the sample movie "digIn.dir." The shape will grow wider as you touch the wires together. If you get this working, try hooking up an actual switch. Notice that you will likely have to change the values of D1 in the conditional statements for this to work.

2-Open and play the movie simpleswitch.dir.

Intermediate:

1-Hook up two switches and have one switch make a bitmap move left, and have another switch make a bitmap move right.

2-Add a "next" button and a marker to your movie. Create a new looping script that will play a sound or a quicktime movie each time a switch is flipped.

Advanced

BEFORE YOU BEGIN: Hook up a photocell (with a pot) to the EZIO board, line 1. (Open the movie and make sure it works with your photocell.)

Problem 1: Add a script to add a switch to the intermediate movie. Adapt the movie "a2d_sensor.dir" so that when you hit the switch, a sprite changes color.

Problem 2: Add a second A/D sensor that will control the blend of a second sprite.

Problem 3: Delete everything from the score. Create a keyframed animation that is 255 frames long. Use the reading from your A/D sensor to move the playback head to the frame in your animation that corresponds to the number being read at A/D line 1.

EZIO Links:

Michael Rodemer, EZIO board creator

Jennifer Steinkamp: Class lecture notes -Click EZIO

Purchase info: EZIO