You are on page 1of 9

Arduino

Poe - proof of concept


tags: embodied visualization, text analysis
Method 1 (large scale, complex): raspberry pi, blinkM module, Mallet
Method 2 (medium difficulty)
1. Install Firmata Library in Arduino (turns Arduino into a peripheral that will
communicate with a program) [see http://arduino.cc/en/reference/firmata]
2. Use NLTK in Python to break text into individual words, identify as noun and
adjective, and then classify as one of five senses
3. Map classifiers to the Arduino Output
Method 3 (least difficult)
1. Assign a number (1-5 for one of five senses) to each word in a short poem
2. Write a short program in Python to read the poem [see
http://arduino.cc/en/reference/firmata]
3. Write a short program in Arduino to respond with desired Output
1=visual, 2=auditory, 3=tactile, 4=olfactory, 5=taste, 6=predictive [lights,
respectively, red, blue, green, yellow, white, purple] ? I dont think we need to define
outputs right now - just what the output channels will be. We can play around with
the outputs as we get things working (because we could theoretically, instead of just
having lights, have vibration for touch, sound for auditory, etc.) --agreed, but for us
to classify the words in the poem below together, how do we propose to do that - I
thought maybe highlighting the words with color, or should we leave comments as
to how wed each categorize a word like night for now?
II Program
/*Setup
Define inputs:
- If: list of visual words, then: visual
- If: list of sound words, then: auditory
- If: list of touch words, then: tactile
- If: list of death words, then: predictive
Particularly curious if I can use this http://words.bighugelabs.com/api.php as a
source of synonyms.

Light/pin mapping
Setup*/
/*loop:
Decision point: Decide on chunk size of text.
Reading is done with the IndexOf command
Read (How do we have the Arduino read?) first {chunk}, display lights
Read second {chunk}, display lights.
very simple blinker text based on alternative IndexOf commands:

int led=13;
void setup() {
pinMode(led, OUTPUT);
}
void loop (){
String StringOne = "Twas brillig and the slithy toves";
String StringTwo = "Lo! t is a gala night";
String StringThree = "Within the lonesome latter years!";
String StringFour = "Did gyre and gimble in the wabe";
if (StringOne.indexOf ("brillig") >=0) {
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
delay(100);
digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
delay(100);

digitalWrite(led, HIGH);
}
else if (StringOne.indexOf("gala") >=0){
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
digitalWrite(led, HIGH);
}
}
/*dooblie doo*/

repeat? */
Alphabetized wordlist extracted from poem
Affirm
Amid
Angel
Angels
bedight
Be forgot
Bewinged
Bidding
blood-red
breathes

Chased
circle
Come
Condor
Conqueror
Crawling
Crowd
Curtain
Down
drama
drowned
Evermore
Fangs
fears
fitfully
flapping
Fly
Food
Form
form
Formless
Funeral
Gala
Go
God
Hero
High
Hither
hopes

Horror
Human gore
Imbued
Intrude
Invisible
Latter
Lights
Lonesome
Low
Madness
Man
mimes
Mimes
Mimic
Moral
motley
Mumble
Music
Mutter
Night
not seized
orchestra
out
Out
Pall
Pallid
Pangs
Phantom
play (n.)

Plot
Puppets
Quivering
return in
Rout
Rush
same spot
Scenery
Scenic
See
see
Seraphs
Shape
Shift
Sin
sit
Sob
Solitude
Soul
spheres (phil.)
Storm
tears
theater
Throng
Tither
to and fro
Tragedy
Unveiling
Uprising

Vast
veils
Vermin
Wan
Wings
Worm
wo[e]
Writhes
writhes
years

III Poem
The Conqueror Worm
BY EDGAR ALLAN POE
Lo! t is a gala night
Within the lonesome latter years!
An angel throng, bewinged, bedight
In veils, and drowned in tears,
Sit in a theatre, to see
A play of hopes and fears,
While the orchestra breathes fitfully

The music of the spheres.

Mimes, in the form of God on high,


Mutter and mumble low,
And hither and thither fly
Mere puppets they, who come and go
At bidding of vast formless things
That shift the scenery to and fro,
Flapping from out their Condor wings
Invisible Wo!

That motley dramaoh, be sure


It shall not be forgot!
With its Phantom chased for evermore
By a crowd that seize it not,
Through a circle that ever returneth in
To the self-same spot,
And much of Madness, and more of Sin,
And Horror the soul of the plot.

But see, amid the mimic rout,


A crawling shape intrude!

A blood-red thing that writhes from out


The scenic solitude!
It writhes!it writhes!with mortal pangs
The mimes become its food,
And seraphs sob at vermin fangs
In human gore imbued.

Outout are the lightsout all!


And, over each quivering form,
The curtain, a funeral pall,
Comes down with the rush of a storm,
While the angels, all pallid and wan,
Uprising, unveiling, affirm
That the play is the tragedy, Man,
And its hero, the Conqueror Worm.

You might also like