chebe: (AsciiC)
2015-09-23 09:11 pm
Entry tags:

Uno and LilyPad and Adafruit 2.2" TFT LCD

Further experiments with the LCD screen.

Install two libraries;
Adafruit_ILI9340
Adafruit_GFX


Uno pins;
- 13/SCLK to SCLK
- 12/MISO to MISO (not needed)
- 11/MOSI to MOSI
- 10/SS to CS
- 9 to DC
- 8 to RST

Arduino Uno breadboarded to 2.2inch LCD

Uno works smoothly
Photo by chebe





LilyPad Maincontroller pins;
- 13/SCLK to SCLK
- 12/MISO to MISO (not needed)
- 11/MOSI to MOSI
- 10 to CS
- 9 to DC
- 8 to RST

Arduino Lilypad Maincontroller breadboarded to 2.2inch LCD

Lilypad Maincontroller works as well!
Photo by chebe

chebe: (Default)
2014-08-02 10:35 am

Neckpiece that can Cure a Cough

In times gone by, when you caught a cold or got a cough, one of the things you could do to try and cure it was to tie a red flannel around your neck, under your clothes. Did the extra layer of warmth actually help, or was it just superstition? I'm not in a position to answer that, but it sparks some interesting questions.

For all its vibrant colours, traditional torque design, and dynamic nod-to-Newgrange kerbstone spirals, this piece strikes me as something futuristic, or interstellar. How Niki massaged the felt into these shapes I've no idea but, except for the torque clasp, this is one solid piece.

Mannequin wearing black tshirt, and a red felted torque piece

Red flannel neckpiece at Dublin Maker
Photo by chebe



Glorious details )

But for all the set-backs and frustrations, this piece turned out to be many peoples favourite. Everyone who tried it laughed, some almost split their sides. Niki has some good ideas on improvements for the next version, and at the very least there will be fewer microcontrollers involved! So keep an eye-out for the next revision.
chebe: (StepIntoTheLight)
2013-10-08 02:23 pm

LilyPad accelerometer RGB gauntlets, in progress

Sorry it's been so quiet around here, things have been hectic in the analogue world. And to top it all off I'm running a series of four workshops on the LilyPad in TOG, starting Thursday. More hours in each day would come in handy right about now.

But, I haven't been idle. Remember way back when I made a simple accelerometer glove? Well, I'm working on a more elaborate matching pair now. PartFusion, a guy from the hackerspace, makes some really intense RGB daisy-chainable, sewable, LEDs. Armed with these, Adafruit's NeoPixel library, a couple of accelerometers, LilyPad Simple boards, and LiPo batteries, I had the fixings of something strong enough to help land planes.

I used some material from a free tshirt I acquired at some point, made a couple of armwarmers/gauntlets, with inside lining/pouch for the LilyPad Simple board itself. Some metal snaps and lots of conductive thread sewing later I've one strip done. It's still a work in progress, but I brought them along to one of the CoderDojo sessions, and people seemed to like them. I have a deadline for them, a concert I have tickets for, so hopefully they'll get finished soon.

Few photos )
chebe: (ThoughtFractal)
2012-10-01 12:42 am

Lilypad LED Matrix: part 4.b, adjusted layout

Last we looked in on this project I'd just added in the adapter for the keypad and a battery holder. Since then a couple of things happened.

One; in the two-and-a-half years since starting this project, the silver on the conductive thread has started to corrode. This manifested first as the programmed time delays no longer seeming to work right, and then with an un-even light disruption across the LED grid (this happens anyway, but wasn't noticeable before this). So I rather carefully went over every single trace of conductive thread with a thin paintbrush and a bottle of fray-stop glue. Hopefully it will slow down further corrosion.

Two; I got my hands on a IR-detector unit, and wanted to include it in the top (as talked about in the Dublin Maker Faire post). To make this possible the keypad-adapter would have to double up as an ir-adapter. But this required a change of circuit layout.

The keypad has five wires; 3 output, 1 led, 1 ground. The ir-detector has four wires; 1 output, 1 led, 1 ground, 1 power. The adapter has five slots. But two of them are pins 0 and 1 (Rx & Tx) and I had trouble getting them to work consistently. So to fit everything in I decided to move the power and ground lines out to their own adapter. But where was I to find a two-pin breakout board? They come in large, small (used for the existing adapter), and that's it. *brainwave* I remembered a set of empty LED boards I hadn't gotten around to using.



And sure enough, two separate connections, just add headers! I pulled out the existing stitching and stitched the new layout in. The power lines are actually run along the back in channels of bias-binding for insulation because the whole thing is so crowded at this point.



Turned it on, fixed up the code (new pin numbers), adjusted the timing on the patterns, and tried my hand at interrupt coding. However, before I could finish it up, my top needed to go off with [twitter.com profile] Jeffrey_Roe and [twitter.com profile] PartFusion to NY MakerFaire to represent tog, so development of new features was promptly abandoned, to be continued once it returns. (Although, I hear it was a bit wet, so I expect my top probably stayed in somewhere nice and dry.) *edit* Spot the LED top. But now I have a definite list of things that need doing, and then it will actually be finished!

Part 1 | Part 2 | Part 3 | Part 4.a
chebe: (OnTheVergeOfSomethingWonderful)
2012-08-08 12:51 pm
Entry tags:

Lilypad Holders

Here's something I meant to talk about months ago. Lilypad microcontrollers are meant to be sewn into projects. Which can be time consuming, and seriously limits their resusability. (Also, I'd be much more willing to wash my e-garment if I could detach the microcontroller first.) So people have been coming up with shields/adapters to make their Lilypad projects more modular.

One that's pretty cool, and uses a 3-D printer, is the Lilypad Holder from mizliz via thingiverse. Namit very kindly printed me up a couple.



They fit the original microcontroller, the Simple Board (although it doesn't use all the holes), and even the XBee shield. The board is kept in place with a magnet glued into the little hole beneath where the board goes.

But, as I was filing out the holes I realised something; the metal snaps point up. Which means either the FTDI header is face down (making it hard to reach and program) or the other components are loose and not connected to the base material. That could be changed by altering the 3-D model to invert the outside ring though, probably.

But then I also realised the wires (wires!?) from the snaps are soldered directly onto the Lilypad pads themselves. Meaning any board you use with this holder is permanently committed. It's still a really cool idea, just doesn't match the way I work.

There are also a couple of nifty soft-circuit ones I came across that seem like great ideas, but a fair amount of work to create; like the Frogr shield, or a soft-holder also from mizliz, but fixing the direction the snaps point.

And, well, it seems that the powers that be were paying attention, because now there exists a Lilypad Microcontroller (Simple Board version) with built-in snaps! The SimpleSnap. It also has a battery attached, which means it must be removed from a project before washing, but that's a small trade-off. And to complement it there is a SimpleSnap Protoboard as well. I'm looking forward to getting my hands on these!
chebe: (OnTheVergeOfSomethingWonderful)
2011-10-25 12:31 pm
Entry tags:

More updating through the medium of pictures

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)
2011-10-13 11:04 am

Lilypad LED Matrix: part 3, with added SparkFun Keypad

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)
2011-03-18 12:51 am
Entry tags:

Lilypad Temperature Sensing Scarf, code

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)
2010-11-14 10:41 pm

Lilypad Temperature Sensing Scarf, progress report

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: (Default)
2010-10-23 12:01 pm
Entry tags:

Sensing Temperature via Lilypad Temp Sensor MCP9700

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: (Default)
2010-10-10 11:17 am
Entry tags:

New Lilypad Components

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: (Default)
2010-04-30 12:14 pm

Lilypad Project 2: The LED Grid, part 2

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: (Default)
2010-02-22 07:29 pm

Lilypad Project 2: The LED Grid, part 1

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: (Default)
2010-01-07 08:01 pm

The Lilypad Saga Continues

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: (Default)
2009-09-16 10:33 pm

Getting there...

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.
chebe: (Default)
2009-08-04 08:44 pm

My first Arduino Lilypad project

How It All Began:

In this world there a great variety of people, with vastly different skills, interests, backgrounds, and futures. But for the sake of this post I will concern myself with only two kinds. Those who know cool electrical stuff, and those who don't. I fall into the latter category. But when a friend told me about these pre-assembled circuit boards, that are used to rapidly prototype gadgets and inventions, that are so simple to use that artists with no technical background are able to pick them up and realize their visions, well, my first thought was, 'that's kinda cool'. So idly I browsed the interwebs, for this strange thing called Arduino, and discovered it's sleeker, purple-ier, sibling, the Arduino Lilypad. It offers a subset of the range offered for the Arduino, but washable, and redesigned for use on clothing. My imagination immediately filled with visions of me dancing, trailing swirls of colours. *ahem* And other less girly things. And I just knew I had to get my teeth into it. Afterall, if it was so simple to use then I could hardly fail.
This is long, and has two photos, and two videos )


Things I Learned:

- The Lilypad is more expensive than the Arduino, so unless you want wearable tech specifically, stick to the Arduino.
- The Arduino works in a three-dimensional space. You can build flat circuits, or giant cubes. The Lilypad, although it has to shape and conform to the 3-D form of the body, works primarily in flat planes. You are fairly limited to above the fabric, and below it.
- If you don't know much about electronics the Lilypad is easier to use and understand. As you learn more you start seeing how your projects would translate to the Arduino, and just how neat and clever (both intentionally, and coincidentally) the Lilypad is.

- I have installed the Arduino IDE on both Fedora 11 and Windows XP. Both are similar and very easy. Windows does have the disadvantage of offering you many COM ports, and you just have to try them all to find the one that's connected to your Arduino. Whereas on my Fedora machine I have to launch it from the terminal, and as root.

- When using the Lilypad you may notice a complete lack of resistors. This is because the power sources readily available are about 3-5V, which is the range the Lilypad likes. But also, despite it's name, conductive thread, while being conductive relative to ordinary thread, is a quite poor conductor with regards more traditional electrical items like wire. So in essence the thread is your resistor. If you need a greater resistance, simply create a longer path of thread between the power source and your components. Adding other pieces, like clasps and such can also add a decorative touch of resistance if needed.

- Conductive thread is like unshielded/uninsulated wire. It is very important not to cross the positive and negative strands. And seeing how easily the thread frays you will need a way to seal away the knot-ends at the very least. I currently use fabric paint, and find it very good, despite a quite long drying time.