Thursday, September 25, 2008

Documentation

Link to the datasheet for the SHARP IR sensor

http://document.sharpsma.com/files/GP2Y0A710K0F_DS.pdf

Work in progress.. deciphering the source code.

Here's how we have progressed with the Water-Balls project. Here's the source code, followed by the images of the circuit that works using the Arduino software along with the source code.


ARDUINO SOURCE CODE –


/*

GP2D120 sensor example

by Tom Igoe

Reads a changing voltage from a GP2D120 IR ranging sensor

on analog input 0 and sends the result out in ASCII-encoded

decimal numbers.

Arduino/ATMega8 hardware connections:

A0/PC5: potentiometer on analog in 1

D0/PD0/RX0: Serial input from the PC via MAX232 or hex inverter

D1/PD1/TX0: Serial output to PC via MAX232 or hex inverter

Distance ranging formula comes from Acroname, http://www.acroname.com:

http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html

Created 6 Oct. 2005

Updated 25 Oct. 2005

*/

int val; // outgoing ADC value

int distance = 0;

int ledPin = 11;

int outPut = 0;

//function prototype:

//void blink(int howManyTimes);

void setup()

{

// start serial port at 9600 bps:

beginSerial(9600);

// blink(3);

}

void loop()

{

// read analog input:

val = analogRead(0);

// send analog value out:

printString("Analog Value =\t");

//Serial.println(val);

// Calculate linear slope of reading (thanks, Acroname!):

distance = (2914 / (val + 5)) - 1;

printInteger(distance);

outPut = distance

;printString("\n\r");

lightLED(distance);

//analogWrite(ledPin, outPut);

// wait 10ms for ADC to reset before next reading:

// delay(10);

}

void lightLED(int value){

if( value == 9 ){

analogWrite(ledPin,0);

}else if (value == 8 ){

for( int i=0;i<30;>

outPut=i;

analogWrite(ledPin, i);

delay(50);

}

//Serial.println("distance = 8");

}else if (distance == 7){

for( int i=30;i<90;>

outPut=i;

delay(10);

analogWrite(ledPin,outPut);

}

}else if (distance == 6 ){

for( int i=90;i<120;>

outPut=i;

delay(10);

analogWrite(ledPin,outPut);

}

}else if (distance == 5 ){

for( int i=120;i<150;>

outPut=i;

analogWrite(ledPin,outPut);

}

}else if (distance == 4 ){

for( int i=150;i<180;>

outPut=i;

analogWrite(ledPin,outPut);

}

}else if (distance == 3 ){

for( int i=180;i<255;>

outPut=i;

analogWrite(ledPin,outPut);

}

}

}

// Blink the reset LED:



Here's the Schematic Circuit Diagram:





















And here are the images of the work we did today:




































































Wednesday, September 24, 2008

All about WATER BALLS!!!

Now that we've decided a topic and have it approved from Anders, we are a little more clear as to where we are heading.
Our concept for the User Interface and User Experience design that extends till the 25th of October is based on using cheap materials, primarily water balls (that cost Rs 10 for 50 small balls) along with motion sensors and motion detectors so as to produce a kind of psychedelic effect.
So what are these water balls?
These are balls made up of specific polymers which when kept in a water holding container, absorb the water and expand. The material, is such that it can absorb the entire water and expand to a great extent making the container tightly filled.
Here are a couple of images of the interaction between water balls and lights:





















































































So how do we intend to go about doing it?
Here's a rough plan of how we intend to execute the concept and hence create a psychedelic effect:























Our Inspiration:








Jellyfish



















Lava lamps

Meet us!

We're a group of 3 members working with Water Balls, LeDs and motion sensors as a part of the User Interface and User Experience Design course at Srishti School of Art, Design and Technology, Bangalore.

Here's a brief intro to our team members:
Somesh: final year Visual Communication Design student at Srishti
Nachi: Specializing in Product and interface design at Srishti, currently in the first year specialization
Khushboo:final year VCD student at Srishti.

... more to come..!