For my wearable project, it did not
come out as successful as I thought. I tried to make the piece work
but I ran out of time and frustration got the best of me. The code is
used for this project does work and the idea of this project is to
make the purse light up with LEDs as the amount of things inside the
purse go up with the weight. There is a pressure sensor on the bottom
of the purse and it makes the LEDs light up when it gets full. There
is also a code that makes the LEDs light up in a snake lie pattern.
The documentation for this project is the pictures because I wasn’t
able to convert the video from my phone onto my lap top. The purse
does not have any wiring issues because they were hidden between the
materials of the purse. Also the LEDs were hidden behind the woven
material.
come out as successful as I thought. I tried to make the piece work
but I ran out of time and frustration got the best of me. The code is
used for this project does work and the idea of this project is to
make the purse light up with LEDs as the amount of things inside the
purse go up with the weight. There is a pressure sensor on the bottom
of the purse and it makes the LEDs light up when it gets full. There
is also a code that makes the LEDs light up in a snake lie pattern.
The documentation for this project is the pictures because I wasn’t
able to convert the video from my phone onto my lap top. The purse
does not have any wiring issues because they were hidden between the
materials of the purse. Also the LEDs were hidden behind the woven
material.
Aurdino is pocket.
Sensor in the bottom of the purse.
16 LEDs between woven material.
Empty space in the purse.
CODE>
/* Analog Read to LED
* ——————
*
* turns on and off a light emitting diode(LED) connected to digital
* pin 13. The amount of time the LED will be on and off depends on
* the value obtained by analogRead(). In the easiest case we connect
* a potentiometer to analog pin 2.
*
* Created 1 December 2005
* copyleft 2005 DojoDave <http://www.0j0.org>
* http://arduino.berlios.de
*
*/
int potPin = 2; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int val = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT
}
void loop() {
val = analogRead(potPin); // read the value from the sensor
digitalWrite(ledPin, HIGH); // turn the ledPin on
delay(val); // stop the program for some time
digitalWrite(ledPin, LOW); // turn the ledPin off
delay(val); // stop the program for some time
}