Thursday, May 28, 2009

E paper workshop example files


The technical aspect: you ask for images, sounds, using a FLASH movie from keys from the keyboard. But then you decide to make a paper switch, which is just more fun than a dull key. So you need a device/program in between, there are lots of possibilities: hacking a keyboard, using a HID, or using the ARDUINO.

With a hacked keyboard (see other blog) all is easy, just use the FLASH movie.

With the HID, KeyWiz40 interface (we have some at CROSSLAB) use a program between this thing and the FLASH called USB OVERDRIVE (Mac - Windows Joycur for instance)

With the ARDUINO use Serproxy, both MAC and Windows, but different files.

All is included in the download file below, (search USB OVERDRIVE here: http://www.macupdate.com/info.php/id/7115 )

So:

MAC and WINDOWS:

download this folder with the example files in FLASH:

http://www.contrechoc.com/flash/e-paperFiles.zip

all can be tested with the normal keyboard too.

added is also the posibility to stream a video (flv format). Just add the video in the folder and ask for the name of the video (under button “6″)

then for the KeyWiz40 interface:
For “normal” e-paper using the keyboard interfaces from Crosslab we can use this example flash movie, with he folders sounds and images:

keyboard input examples.fla

we need for MAC: USB OVERDRIVE between the Whiz HID and FLASH, configure the buttons after choosing the “joystick” tab on the left.

for WINDOWS: for example JOYCUR (or other freeware), also configure some buttons

——————————————————————————————————–

ARDUINO triggered e-paper, with the same FLASH movie:

WINDOWS:

For e-paper triggered by input from the ARDUINO we start the SERPROXY (windows version) first (after having configured the right port in the serproxy.config, see the com port in arduino tools insert it (three times or so) and the FLASH port must be 5331 please!)

then we need the ARDUINO script: arduinoAsKeyboard.pde in the ARDUINO.

then this flash movie: ARDUINO input examples.fla

MAC:

also use SERPROXY but the mac one found in the folder.

You have to configure the serproxy.config file, using your serial connection, found in the arduino tools, or via the terminal using “ls /dev/cu.usb*” as explained on this page: http://protolab.pbworks.com/TutorialFlashSetup

for the rest all the same, so upload the ARDUINO and run arduino script, and then run the FLASH movie.

/*******************************************************************************

For the real lover of e-paper: in the folder above is added a Processing example of reading the ports of the ARDUINO and triggering sounds, images, and text using Processing.The Arduino script used is the same as the last example: reading inputs from ports 12,11,10,9,8, this can be expanded. This eliminates the use of serproxy, or overdrive. But of course the Processing is not as flashy as FLASH!

0 comments: