Showing posts with label lilypad. Show all posts
Showing posts with label lilypad. Show all posts

4.6.09

lets look at the tech

Because I find it all so interesting.

I've spent a lot of time in the project exploring different possible technologies to use, including hacking wiimotes, Arduino, RFID, and colour tracking. I explored all the different strengths and weaknesses of each tech: colour tracking being pap in low light, and interfered with by similarly coloured objects, wiimotes being temperamental little things and prone to errors in Processing in my experience, Arduino being one of the most appealing technologies I looked into, but all the fun components get a little bit expensive on my budget, and RFID only reading tags, not tracking. I'm now going to look into the uses of the two technologies that I have decided to use, and the potential uses of what I have created using them.

When I first started this project I was quite interested in tracking the users around the space, which still interests me, but as I progressed through the project I found myself becoming more interested in creating a tactile interface, and the technologies that were best to create one were what I ended up using - Arduino and RFID tagging. The RFID tagging allowed me to create physical objects that could be recognized by the computer, allowing the real world to interact with the data in the computer. The Lilypad allowed me to create objects that were not only clever and glowy and wow, but allowed me to create objects that the user wants to pick up and interact with. The knitting also helped with that, people seem to be comfortable with the objects and find them familiar because of the way they are made.

"In of itself, I don't find RFID that exciting. When it's connected to a greater network (e.g. a database, the web, other intelligent devices, etc.) , that's when it can get really interesting." - Doria Fan

Doria fan uses RFID tags to create objects that are imbued with personal histories, without overpowering the object with technology. Her RFID enabled medical history bracelets are still bracelets, the technology does not interfere with the practicality of the object.



The tags inside the medical bracelets contain activate a link to the patients online medical history, making it a beautiful but practical object, containing the wearers personal history.

iTea is another RFID tagging system which uses the internet to bring up data.



Dropping your conference pass in a tea cup scans the internet for data about you. Some information is taken off a social network site, some is googled, allowing the user to see their personal profile made by the internet, whether it's true or false.

To sum it up, the wonderful thing about RFID is that it enables an object to be two different things. It remains the object it was or was intended to be, the bracelet is still a bracelet, the big wooly cloud is still a big wooly cloud, but it allows the object to take on a different aspect as well. It becomes an object that can interface with the digital world, and can bring up data that not only relates to the object, but adds to its meaning.

I've looked into the uses of the Arduino lilypad before, so this bit will be a little bit shorter. Basically, after my experimentation and research in my last project, which focused on the lilypad being a technology to create wearable textiles, I found myself wanting to experiment with it more in a different context. I have researched in toy hacking as part of this project, looking into the creations from the mediamatic workshop, which while were brilliant examples of the toys getting new functionalities, the objects lost some of their identities as toys, what with the wires poking out of them. Granted they were prototypes from a workshop, but I wanted to create objects that were still objects. My little wooly friends were designed to be wired up, and buzzing around around the place and blinding people with ultra bright LEDs, but I wanted them to retain the element of familiarity and softness brought about by creating them by knitting, even before i knew I was going to knit them or reminded myself how to knit. By using the lilypad I was able to make them into "shiny wow wow's", but by using soft circuits was able to keep them as approachable objects.

So then, how could what I have made be used? My program, even there are around a thousand lines in it, is rather simplistic. It gets the feed, matches it up with the RFID tag and spits it out to the screen. And makes some swirly animations. All rather nice but the data it's getting, and the way it gets it could be used in other ways. Some examples are in the RFID examples above, using the technology to personalise objects and drag in data from the internet. The use of the weather data itself lends it to be used with a mapping system like google maps, returning the data to it's geographical context, and reminding people who don't have such a detailed map in there heads of where places are in relation to each other. The weather feed could also be used in conjunction with other feeds, perhaps used with flickr, to create a link between a weather state and the most recent and geographically appropriate geotagged photo uploaded, creating a visual representation of the weather that is more closely related to the data than my swirly graphics.

There are many things it could be used for i suppose, now that I've figured out how to do the simpler parts (getting the feed, getting it to the screen, using RFID tags), I plan to keep exploring the possibilities.

2.6.09

testing everything

I decided to try to use my new shiny Duemilanove to test my little wooly bits, and the not so wooly ones. Turned out to be a lot easier than using the lilypad to test them. Instead of having to spend ages sewing up circuits just to rip them back out. I simply plugged one end into the 5v and one into the ground.

This is the only thing that's faulty beyond squishing it into working! The vibe board in the cloud works, but the little sun doesn't light up. This is a bit annoying as I tested it quite extensively while making it.



Here's another cloud with a vibe board in it, this one works fine, although you can't see it in the photo.



Here's my sun..



and my raindrops...





Now I need to fix my sunny cloud, and hook them up to the lilypad.

27.5.09

making things

Over the past week I have finally finished my knitting, been aggravated by conductive thread, and been testing LEDs.

I finally finished knitting my raindrops, and created the pouch to make the raindrop shape, and stuffed an RFID card into it.



Here is one of my raindrops, with my cloud who now has eyes. The raindrops aren't completely finished, I've left the bottom open so I can put some LEDs in them, and hook them up to a lilypad, but the basic shape is there.



I also worked on my sun a lot. Once the LEDs were put through I made the circuit with conductive thread, and tested it by temporarily adding a power source. Some of the LEDs are a little temperamental but do work.



This is the finished sun circuit. I've covered the back of the LEDs so they don't get caught up in the stuffing.



I'm also making a little sun, which will be attached to a wooly cloud to represent "partly cloudy". I've decided to put some LEDs into this one as well, as the bigger sun was relatively simple to do.



Here is the big sun partly sewn together and stuffed. The bottom has been left open so I can connect it to a lilypad later. My idea for using the LEDs is to get them to blink or flash when the RFID reader reads the appropriate card.

17.5.09

forgetting things is sometimes good.

I remembered to order my RFID reader and some cards..



forgot to order the USB connector. *face palm*

So while I've been waiting for that to appear I've been working on my code, using a button based system. As any other tech I use will use the same basic way of working; something sending a signal, something waiting for a signal, and when that signal is received running the script which looks at the weather feed and spurts it out when necessary.

(Actually it works a bit more like this, pulling in the weather feed every five seconds or whatever, and saving it. Then waiting for a signal stating what weather the user wants to look at, looking at the saved weather feed, and spitting out the appropriate weather.)

I've been using arduino for this, programming my buttony lilypad to send a signal to processing. I was having a few problems at first, once the signal was sent it wouldn't stop sending it, or processing wouldn't stop reading it. New button presses weren't even registering, which confused me a bit. I did a bit of research and found out how to debounce buttons, and now it works. Once a button is pressed it will keep displaying that weather until a new button is pressed. I would like to make some kind of rest state, where if nothing is pressed something else happens, not sure how to do it, may involve timers in processing, sending a resting state from arduino just jams the signal for button presses.

That might not make sense to you, but makes perfect sense to me. Here's the arduino code I'm currently using:


// edited the example to use two buttons
//edited the example further t o send a signal to processing.
//and debounce code from http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1241461190

int ledPin = 13; // LED is connected to digital pin 13
int switchPin = 2; // switch connected to digital pin 2
int switchPin2 = 5;
int switchValue; // a variable to keep track of when switch is pressed
#define BOUNCE_PERIOD 150

long last_read_time;
long last_value;

int val = 0;
int val2 = 0;

void setup()
{
pinMode(ledPin, OUTPUT); // sets the ledPin to be an output
pinMode(switchPin, INPUT); // sets the switchPin to be an input
digitalWrite(switchPin, HIGH); // sets the default (unpressed) state of switchPin to HIGH
pinMode(switchPin2, INPUT); // sets the switchPin to be an input
digitalWrite(switchPin2, HIGH); // sets the default (unpressed) state of switchPin to HIGH

Serial.begin(9600);
}

void loop() // run over and over again
{
// If we are past our bounce period
if (millis() - last_read_time > BOUNCE_PERIOD){

// Check the button
val = digitalRead(switchPin);
val2 = digitalRead(switchPin2);
// If the button has changed since last bounce period

if (val != last_value){
digitalWrite(ledPin,val);
if (val == LOW) Serial.print("A");
last_read_time = millis();
last_value = val;
delay(10);
}

if (val2 != last_value){
digitalWrite(ledPin,val2);
if (val2 == LOW) Serial.print("B");
last_read_time = millis();
last_value = val;
delay(10);
}
}
}


I've also been knitting my second cloud and light raindrop... the knitting never ends!!!!

11.5.09

mmm buttons.

I've decided to look back into buttons, incase all the fancy RFID and wiimote trickery doesn't work. My backup idea is a simple button based system, with all the little toys or rather tactile bits wired up to a lilypad, with a boring button to press to send the signal, to see what the weather is like.



As I couldn't get ellie to work, I found a tutorial that tells you how to make switches. Turns out that one end of the button should connect to the - bit of the lilypad.



I've even got it working with two buttons, because I'm so clever!

10.5.09

from arduino into processing

is not as simple as I first thought it would be. This is for the light sensor I will be using in my final piece.

I've been trying two approaches, the first one getting processing to hijack the serial communication that the lilypad sends to arduino, to see the values the light sensor sends back. This was a bit weird, the values in processing were quite different and didn't make much sense, there didn't seem to be any correlation between the numbers I was seeing and the changes in light.

I've then been looking into firmata, which allows you to program the arduino board from processing itself, but this method recieved even stranger results, this time only printing out 0. It seemed to be receiving a signal from the light sensor but that was only to say that there was no light. I've found someone with a similar problem on the processing forum, so hopefully they'll be able to help me, but it's confusing me at the moment.

6.5.09

it works... i think...

You may remember my aforementioned buzz buzz, which is a little lilypad arduino circuit with has a light sensor and some vibe boards. I wanted it to vibe when it sees a certain amount of light. After much googling and hair pulling I couldn't figure out what was wrong with my original code.

I decided to come back to it today, and try again. After another couple hours of googling I found this site which had the kind of code i was trying to make. I looked at it and made some changes to my code and now it works!


//if there is light, vibe.

int pins[] = { 9, 10,}; // an array of pin numbers
int num_pins = 6; // the number of pins (i.e. the length of the array)
int ledPin = 13; // LED is connected to digital pin 13
int sensorPin = 0; // light sensor is connected to analog pin 0
int sensorValue; // variable to store the value coming from the sensor


void setup()
{
int i;

for (i = 0; i < num_pins; i++) // the array elements are numbered from 0 to num_pins - 1
pinMode(pins[i], OUTPUT); // set each pin as an output

Serial.begin(9600); //initialize the serial port

}

void loop()
{

int i;

sensorValue = analogRead(sensorPin); // read the value from the sensor
Serial.println(sensorValue); // send that value to the computer


if (sensorValue > 450) {

digitalWrite(pins[i], HIGH);
delay(100);
}
else {
digitalWrite(pins[i], LOW);
delay(100);
}


}


It's a bit tempermental, I think it's more to do with the circuit instead of the light sensor or the code. I'm going to use the data from the light sensor to bring up a feed of where it's sunny now.

14.3.09

oooh...



all my shiny new toys came in one day!
Which is very nice.

I've got another Lilypad, with some buttons, vibe boards and some light and temperature sensors, to make some hybrid toys with. I'm not sure how effective the light and temperature sensors will be, but i want to play.

In another box of joy was the Violet mirror, which was packaged so very lovely.



It's so dinky! and you get BUNNIEZ!!

27.11.08

the lilypad (omg)

The lilypad was developed by Leah Buckley and Sparkfun electronics. The aim of the project was to create a mass producible easy to program microprocessors to get a broad range of people experimenting with wearable technology.



This is the e-textile construction kit version 1.0, which introduced the idea of a construction kit for wearables. All the pieces were very square and bulky but show the basic idea.





Here are some soft version of the lilypad, which are more flexible than the mass producible version which i have, but couldn't be mass produced. The flexible version is made of conductive fabric, and the connections are made from conductive thread.

20.11.08

my boobs light up!

sheer awesome.



the mister approves.

25.10.08

for the unbelievers

it didn't work at the presentation yesterday because a bit of thread ripped. But my first Lilypad circuit works now.



It flashes LEDs. Simple enough but i'm glad everything is working. It's running an example sketch called Loop which I edited slightly so it found the LEDs.

17.10.08

it's here.....

and it came in a pretty little box and it's tiiiiiny.



i want to play now.