GMU:Human and Nonhuman Performances II SS16/Group FLL: Difference between revisions

From Medien Wiki
Line 62: Line 62:


== '''Installation''' ==
== '''Installation''' ==
'''Interaction with Screen'''


At the beginning of the installation, we decided to replace those colorful fine lines with a 3D Chinese knot, which is designed with one line and very expressive in shape. On the other hand, a complex knot could also become a metaphor to describe a human being with complex relationships in his/her life.  
At the beginning of the installation, we decided to replace those colorful fine lines with a 3D Chinese knot, which is designed with one line and very expressive in shape. On the other hand, a complex knot could also become a metaphor to describe a human being with complex relationships in his/her life.  
Line 79: Line 81:
[[File:ChineseKnotDemo.jpg|thumb|left|500px|Chinese knot demo]]
[[File:ChineseKnotDemo.jpg|thumb|left|500px|Chinese knot demo]]
<br style="clear:both;">
<br style="clear:both;">
'''Interaction with Objects'''
We finally decided to use the photocell sensor and vibration motor to build a plumb line. Each line is wrapped with red wools and tied as a handle. The sensor and motor are connected to the Arduino Uno which is running on a laptop.
Here is the code running in Arduino:
<source lang="Java" line start= "1">
int photocellPin = 0;    // the cell and 10K pulldown are connected to A0
int photocellPin1 = 1;    // the cell and 10K pulldown are connected to A1
int photocellReading, photocellReading1;    // the analog reading from the sensor divider
void setup() {    // We'll send debugging information via the Serial monitor
  Serial.begin(9600);
  pinMode(3, OUTPUT); 
  pinMode(5, OUTPUT);
}
void loop(void) {
  photocellReading = analogRead(photocellPin);
  photocellReading1 = analogRead(photocellPin1);
  if(photocellReading < 400 && photocellReading1 < 400 ){
    digitalWrite(3, HIGH);
    digitalWrite(5, HIGH);
    delay(100);
  }
  else {
    digitalWrite(3, LOW);
    digitalWrite(5, LOW);
    delay(100);
  }
  Serial.print("Analog reading1 = ");
  Serial.println(photocellReading);    // the raw analog reading1
  Serial.print("Analog reading2 = ");
  Serial.println(photocellReading1);    // the raw analog reading2
  Serial.println(" ");
 
  delay(10);
}
</source>


== '''Demo''' ==
== '''Demo''' ==