Sunday, December 12, 2010

Wiring/Coding

The power lines needed to be placed on the bottom, before the wiring was placed on top of them. Something I forgot to mention about other precautions we took for sealing the box- We put cat litter and oil absorbent pads inside the aluminium trays, and the power lines ( 15 Amp utility extension cords for 16 DC adapters).








Coding that I took from Melany for master/slave arduinos:

#include
int ADDRESS[] = {65,42,43,60,61,62,64,65};

// these are digital pins (leds)
int led[]={2,3,4,5,6,7,8,9,10,11,12,13};

// these are analog pins (photoresistors and pir)
int photo[] = {0,1,2,3,4,5,6,7,8,9,10,11};
int ambient = 15; // this is used for the comparison of each photoresistor
int motion = 14; // pir sensor digital
int motion2 = 13; // second pir sensor
int sound = 12;

int light[12];

void setup() {

Serial.begin(9600);
Wire.begin();

for(int i = 0; i< 12; i++){
pinMode(led[i],OUTPUT);
}

for(int i = 0; i< 12; i++){
pinMode(photo[i],INPUT);
}

pinMode(ambient, INPUT);
pinMode(motion, INPUT);
pinMode(motion2, INPUT);

}


void loop() {

int compare = analogRead(ambient);
int val = analogRead(motion);
int val2 = analogRead(motion2);
int noise = analogRead(sound);
Serial.print(val);
Serial.print(' ');
Serial.print(val2);
Serial.print(' ');
Serial.println(noise);

for(int i = 0; i< 12; i++){
light[i] = analogRead(photo[i]);
}

int i= 0;
while( i < 8){

//Serial.println("val");
int value = ADDRESS[i];
Wire.beginTransmission(value);
//Serial.println(i);
if( val >= val2){
Wire.send(val);
}
else{
Wire.send(val2);
}
Wire.endTransmission();
i++;
}


if (noise >= 10){

int delayTime = 50; //the time (in milliseconds) to pause between LEDs
//make smaller for quicker switching and larger for slower

for(int i = 0; i <= 12; i++){
int offLED = i - 1; //Calculate which LED was turned on last time through
if(i == 0) { //for i = 1 to 7 this is i minus 1 (i.e. if i = 2 we will
offLED = 12; //turn on LED 2 and off LED 1)
} //however if i = 0 we don't want to turn of led -1 (doesn't exist)
//instead we turn off LED 7, (looping around)
digitalWrite(led[i], HIGH); //turn on LED #i
digitalWrite(led[offLED], LOW); //turn off the LED we turned on last time
delay(delayTime);
}

int i = 0;
while (i< 8){
Wire.beginTransmission(ADDRESS[i]);
int number = 111;
Wire.send(number);
Wire.endTransmission();
delay(150);
i++;
}

}


if( val != 0 || val2 != 0){
// for the control of leds----------------------------------
for(int i = 0; i< 12; i++){

if (light[i] > compare + 10){
digitalWrite(led[i], HIGH);
}

else {
digitalWrite(led[i], LOW);
}

}
}

else if (val == 0 && val2 == 0){
for(int i = 0; i<12; i++){
digitalWrite(led[i], LOW);
}
}
}






Saturday, December 11, 2010

Sealing the box

One of our main concerns for this project was the ferrofluid leaking ( something that had happened in our smaller module).Because the electromagnets heat up, they can easily melt the silicone and other adhesives we use to seal the box. I took on the responsibility of sealing it using multiple suggestions from both Keegan and Carlo. To address this issue, we sealed the electromagnets into their holes with epoxy clay on both the top and bottom. Keegan suggested making drip trays out of aluminium and putting them into the wooden box, underneath the electromagnets and wiring, incase the ferrofluid did leak through the epoxy. We also sealed the acrylic box itself with silicone on the inside and outside.














Friday, December 10, 2010

Rhino Models of the box



Here are some Rhino Models of the box that Carlo rendered before he built it:


Building the box for the final

These are some pictures of the process of building the box. Carlo designed the box and Keegan and Josiah helped build it. I was in New York for thanksgiving break during this process, but was mainly responsible for finishing it, which involved sanding and staining the wood with polyurethane.

This design which is mainly driven by our change to a horizontal surface, also invites for interaction because of the form. I personally think it is successful and a significant improvement from our last design.






Saturday, November 27, 2010

Ferrofluid ( and lots of failures)



Melany attempted to make an electromagnet that used ferrofluise as the core.They didn't spike the way we wanted them to, but it did make a bump.

I was able to wrap an electromagnet using enameled copper wire, that spiked the way we wanted. The spikes aren't on as large of a scale as we would like them to be, but this is the first successful electromagnet we have made so far.

Building the first of three boxes for the final

Rhino model of what we imagine our final to look like. We planned to have three separate boxes that would serve as "aquariums" with electromagnets in each of them that would respond to different stimuli ( sound, vibration, and light).


Our crit for this idea did not go well. It was suggested that we CNC route the boxes instead of hand cutting them. The boxes are too tall and use a lot of material. We are thinking about going back to our original idea of having a horizontal surface ( a table), instead of the three boxes we were planning on.

Working Module ( finally)






For this week, we were required to have a working module of our final project to present to various professors and a visiting artist from Berlin. The module is an array of electromagnets and photoresistors , which allowed the electromagnets to turn on in response to changes in light. The electromagnets were constructed out of lag bolts and enameled wire that Keegan took from transformers.

We received positive feedback from most of the professors and visitors. They seemed to like our idea of the predator and prey relationships of garden eels we were trying to mimic ( the garden eels would be the electromagnets, while the people interacting with the module would be the predators).

During our presentation, we mentioned trying out different shaped magnets and seeing how the ferrofluid reacts with then. Max suggested using just the enameled wire in the ferrofluid and seeing what sorts of reactions we get. Right now we are using a lot of energy to power just a small module.