Thursday, September 25, 2008

The Initial Prototype + Code

a. at the highest intensity.

b. mid-range.

c. at the lowest intensity = 0.

d. connections - breadboard - resistor - sensor.

e. connections - computer - LED - arduino board - breadboard.

----------------------------------------------------------------------------------------------------------------------------------------

CODE:

int potPin = 2; // select the input pin for the potentiometer
int ledPin = 11; // select the pin for the LED
int val = 0; // variable to store the value coming from the sensor
int por = 0;

void setup() {

Serial.begin(9600);

pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT

}

void loop() {

val = analogRead(potPin); // read the value from the sensor
Serial.println (val, DEC);
if (val>0)
por = val/4;
analogWrite(ledPin, por);

//val = analogRead(por);



}

----------------------------------------------------------------------------------------------------------------------------------------






Schematic & Data Sheet


Above is the schematic diagram for my prototype - hopefully it explains it all easy and clean.

The data sheet for the sensor used can be found here:

(page 5 & 6)

http://www.sparkfun.com/datasheets/Sensors/Flex/SoftPot-Datasheet.pdf




LED + Bookmark + Customize -----> Initial Concept

This is my concept for my prototyping an interactive experience course, at Srishti School of Art, Design & Technology.

Using the Arduino board, a couple of wires, breadboards, resistors, sensors and LED's and a whole bunch of code - I hope to create a prototype of a LED bookmark - a simple flat ruler like object with an LED at the head of it, that can be hooked onto the book, and give one sufficient amount of light to read a book without disturbing the others around. Using the sensor is just to increase the interactivity between this object and the user - and creating an almost customized space for the user.

Using a ribbon touch sensor, placing it along the vertical of the ruler like object should be able to control the intensity of the LED, from a range of "switched off" to "brightest the LED could reach".

Let's hope this works out!