Tuesday, February 24, 2009

EOC, Energy Over Camera

Our project EOC, (sketch2), so far progress quite well.
Currently it only possesses 3 thresholds for images in a series of 3 images.
Camera captures how much motion is created and sums it up by pixel through difference.
As motion requires energy, our concept is our energy is captured through the camera to the image inside the screen affecting its state.

Currently we lack... feedback, immediate feedback to be exact. If a user went in front of our project, they would know nothing because it lacks feedback to the user. As an improvement, we will add a feedback bar, to display the amount of energy captured through the camera.

AND

Next time, the series of images will be more meaningful, such as something with a little more life.
Like a seed, that can grow into a giant plant due to the energy it captures, and keeps its state rather than revert when it runs out of motion.

Thursday, February 19, 2009

MAXMSP

Well for the last week we've been learning MAXMSP and Jitter.
It actually seems quite complicated, and theres lots I don't understand in terms of syntax.
Sketch 2 will be quite difficult to do without understand those syntax.

DAY2:

Well that now I've hooked up MAXMSP and the web cam, I noticed something about compatibility between 4.7 and 5.0, 5.0 CANNOT go back to 4.7, which forces me to work in 5.0 and no long able to move back to 4.7.

The syntax is still Very complicated.

Thursday, February 5, 2009

Our Code for Sketch1

The code is very similar to the AnalogInput provided by arduino.

int potPin = 2; // select the input pin for the potentiometer
int potPin2 = 3;
int ledPin = 13; // select the pin for the LED
int ledPin2 = 12;
int val = 0; // variable to store the value coming from the sensor
int val2 = 0;

void setup() {
pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT
Serial.begin(9600);
Serial.println("Systems On");
}

void loop() {

val = analogRead(potPin); // read the value from the sensor
Serial.println(val);
val2 = analogRead(potPin2);
Serial.println(val2);

if (val > 100) {
Serial.print("Object Detected on Sensor 1");
digitalWrite(ledPin, HIGH); // turn the ledPin on
} else {
digitalWrite(ledPin, LOW); // turn the ledPin off
}
if (val2 > 100) {
Serial.println ("Object Detected on Sensor 2");
digitalWrite(ledPin2, HIGH); // turn the ledPin on
} else {
digitalWrite(ledPin2, LOW); // turn the ledPin off
}
}

All the images/videos are located on Zack's blog.
The biggest issue we had with this project was the wiring. The coding of was easy, but the wiring and attaching the ardruino was really really difficult, The wires kept on popping out and breaking the connection.

It is strange that one of the lights are dimmer than the other. And I don't know how to add more power to that slot without causing the code to malfunction.

Anyhow whats done is done.