chebe: (OnTheVergeOfSomethingWonderful), Album art from www.darrenhayes.com
The Electro-Sewing Workshop was last Friday, and I feel it went very well. Even with starting on Irish-Standard-Time and forcing the class to sit through a slide-deck, there were seven very pretty LED-flowers two-and-a-half hours later. Definitely a success!

Here's a couple of pics from the night.



Aren't they pretty! I am planning to write up a how-to for these, but truth be known, they follow essentially the same method as for the LED-horns from last year. Nonetheless, people seemed rather enthused about the whole experience :)

I've also gotten my hands on the new LilyPad ProtoSnap Development Board. It's very nifty; all the main components of the LilyPad range, pre-connected on one board! So you can practice your programming, or simply getting the components to work together the way you want, without having to worry about any of that sewing malarkey. Then, if you want, you can snap the pieces apart and sew them into an actual project!

I plugged it in just yesterday and was highly amused to find a pre-loaded program that tests most of the components (make sure to play with the switches!). But, looking closely, I've noticed that only the RGB-LED, the five white LEDs, and the momentary push-button are connected to actual sew-holes on the Simple Microcontroller Board. The rest of them are connected through paths that would be available on the full Microcontroller Board, but that aren't exposed on the Simple board. Makes sense, seeing as how the LEDs/button take up all the existing holes! (Still, I imagine the numbers printed on next to the other components could get confusing for someone just starting out. Speaking of, there's a nice tutorial available to get you up and running.)

And all this has inspired me to maybe run a LilyPad course in tog in January. We'll see.


In other news, I don't have any photos from Octocon, but we made the same flowers as shown above, and you can check out the photos from Darklight (where I spent some time teaching people to solder) in the Gallery. (Can you spot me, or rather my Dresden Dolls hoodie?) That's almost it for my busy October. *phew*
chebe: (StarryNight), Made by <lj site="livejournal.com" user="vblackangelv">, from her <lj site="livejournal.com" user="icon_goddess"> commun
Take one Lilypad LED-matrix top (you thought I'd forgotten, hadn't you?), add one SparkFun Wearable Keypad, and voila! You get one fun interactive top!

The devil's in the details )

It's all controlled by the push-button. Initially all LEDs are off.
- Push once; all LEDs are on.
- Push twice; you get the random LED twinkle pattern.
- Push thrice; you get into keypad controllable mode (denoted by the keypad lighting up). You press the centre SparkFun-logo button to clear the board and pick a random starting LED. Then you can use the four directions to draw in lights.
- If you press the push-button a fourth time, you stay in the keypad mode, but the timing changes and the pattern becomes a chase-sequence.
- Pressing the push-button again brings you back to the beginning, with all LEDs off. (But so long as you don't turn off the battery, your pattern is still kept in memory.) Here, have a look.



If you happen to be at Darklight next weekend, come find the tog guys, and you can have a go yourself :)
chebe: (South Park)
Someone asked me for this and I realised I'd never posted it. (I had dealt with reading the temp here but not the rest of it.) It's not fully done. The timing and lights and such could still do with some tweaking, but I guess that comes down to personalisation. If you'd like to try this project the physical construction is here, and what follows is my code. If you do give it a go I'd love to see how it turns out!

code monkey like you )
chebe: (HandAgainstGlass), Made by <lj site="livejournal.com" user="vblackangelv">, from her <lj site="livejournal.com" user="icon_goddess"> commun
Science Week has just passed. I wanted to do something Arduino related, and remembered the Breathe Project. I'm not a biology person at all, but loved the idea of investigating breathing. Something we do all the time, most of the time completely unaware, until one day it's very cold, or we're told about breathing exercises as a way to relax. Then we start to get an inkling of how important an act it is. So, shamelessly, I decided to make one of my own.

Where I waffle on about construction of a breath sensitive scarf )
chebe: (SplitMirror), Photo by John Hamill
The LilyPad range includes a temperature sensor, which is a MCP9700 thermistor type sensor, used for measuring ambient temperatures. It has positive and negative power terminals, and a 's' terminal that you connect to an analogue pin on the LilyPad microcontroller. You set up the code in the same way as for other sensors, and read the value:

Code )

This does give a seemingly accurate reading (oddly enough I seem to lack any other kind of ambient thermometer), except that it fluctuates quite a bit. But in and around what seems like a decent value. I may have to do some form of averaging to smooth it out.

I was using the new Simple Board, so thought I'd see if there was any difference using the Main Board. There's not, exact same results. So my only other thought is that maybe the USB-power is fluctuating and skewing the results. Of course, I don't have a ready way of reading the values while it's solely on battery power, so I can't check. Interesting though. I wonder if anyone has seen this before?
chebe: (SplitMirror), Photo by John Hamill
Okay, I'm a little too excited, but I've just discovered new Arduino Lilypad components on Spark Fun! If you reckon my trick with the elastic is too tricky you can now buy a Lilypad coin-cell holder. There's also a battery connect and Simple Power, a JST connector, and JST connector with slide switch and space to add resistor, respectively.

Then in the world of LEDs, we now have Red, Green, Yellow, and Blue Lilypad sewable surface-mount LEDs (a big improvement on just White), but also, you can buy packs of the boards so you can add any 5mm LED you want yourself!



What's really exciting in a new Lilypad itself; the Simple Board. It's smaller the same size, has less holes, and you can plug the LiPo batteries right into it.

And, to really put the icing on the cake, they have a Lilypad Basics Workshop kit! If you want to try something similar but non-Lilypad there's even a Schemer kit like this Sapphire Blue Bracelet kit which looks nifty! So now, no excuses, give this stuff a go! You'll have fun, I promise!
chebe: (SplitMirror), Photo by John Hamill
Remember part 1, with the 3x3 LED matrix? That was practice, for this, a 7x7 matrix, on a functional, wearable, piece of clothing.

Lots of text, pictures, and a couple of videos. )
chebe: (SplitMirror), Photo by John Hamill
I can't help it, I think LEDs are pretty. So what could be better than a tshirt with 49 of them? Well, there's a lot to figure out before I get that far. Let's start with a more reasonable number, say 9, that's a 3x3 matrix. Yes, that's doable. But let's not make it too easy, let's try using the sewing machine, and user input. Okay, ready?

Details, pics, and vid. )

Things I Learned:
1. That to use 4-ply conductive thread in a sewing machine it needs to be in the bobbin.

2. That your choice of fabric is very important. If it is thin/light you need to skip a couple of stitches at the point where two traces cross, to prevent possible shorting.

3. That I can use user input through the computer to affect Arduinos through Serial.read().
chebe: (SplitMirror), Photo by John Hamill
My Lilypad is now aware! It actually does something in response to changes it detects! I can't take the glory, I simply used the code from the project that inspired mine: Leah Buechley's accelerometer shirt.

Interesting things about this code:
Code talk... )

The Result:
Short video... )

Also, there is a newer version of the Arduino IDE available, 17, that fixes the bug I mentioned in a previous post about how the Lilypad was using the wrong baud rate to communicate back to the computer. So now if you set it at 9600, it actually uses 9600. This makes me happy.

Next step? Using data from the 3-axes!
chebe: (SplitMirror), Photo by John Hamill
The physical construction of my Arduino Lilypad glove is almost complete. Just have to tighten the fit, finish a few edges. I was going to line, decorate, and all that jazz, but feel it's a bit unnecessary for this project. I am getting usable information in, and just have to decide what way I want to use that information, as in, how I want the lights to behave in relation to movement. Here's the glove:

Some text and pics )

Things I learned:

- Analog sensors give you a value between 0 and 1023, which represents the level of current flowing through it. Not anything useful like an absolute temperature, sound level, or angle. You have to work these things out yourself, with a thermometer or other measurement device in hand, and seeing what the values correspond to.

- Analog actuators take values between 0 and 255, which I assume represents a level of current?, but that doesn't really matter much. The easiest way to get from sensor data to usable actuator data is to simply divide by 4. This however, doesn't always give you the behaviour you desire.

- Accelerometers also require + and - lines. If you can't see the markings you need a magnifying glass. It will still seem to work without them hooked up, but you'll get somewhat random data that if plotted looks like a soft wave, sitting at 0 for a bit then increasing over a few values to 1023, where it will sit for a bit before descending over a few values to 0, and repeating.

- The language you use to program the Arduino is called Processing.

- Getting data from the Serial object is quite simple. For the regular Arduino if you specify the transfer rate Serial.begin(9600) it comes through on baud 9600. However, for some reason the Lilypad when set at 9600 comes in at 19200. If set at 4800 comes in at 9600. Don't know why. Yet.
Page generated Feb. 23rd, 2012 08:02 am
Powered by Dreamwidth Studios