The patterns for the pig and all the wigs are from Knitting Mochi Mochi by Anna Hrachovec. The knitting of the soft circuit pig was largely unaltered from the original pattern. The main adaptation was that I needed to access the inside of the pig. The original pattern knits the pig from tail to snout and stuffs the pig before casting off and closing up the body. I added an opening and a flap to the underside of the pig by working the body flat instead of in the round for the section between the increases and decreases. I cast on 5 stitches at the end of the row and cast them off again before joining the body in the round and continuing on to the head. This gave me a flap so sew snaps to create a clean closure.
To summarize the previous posts, I made a singing stuffed animal that happens to be a pig. It sings a different song according to the wig it is wearing which functions as an electrical switch between VCC and ground. This change in voltage is detected by an Arduino Uno. This post will go over the Arduino code that I wrote.
The full source is up in github. Please take it and do as you would like with it. Let me know what you get up to with it.
The interaction design for the singing pig was to have a different song start playing when a different wig is placed on the pig. The pig needed to stand by itself without being connected to anything else and the wigs needed to look like nothing out of the ordinary (ordinary wigs for pigs, that is). I wanted the way the wigs attach to the pig to be no different than any other stuffed toy, but they also need to pass current and electrically trigger events on an Arduino. Metal snaps were my go-to item as they very nicely interface between “hard” components (things you normally associate with a circuit) and “soft” components (conductive thread).
I come from a family serious crafters. I’m the only child that didn’t go to art school (though I guess music school isn’t that left field). My sister is currently studying at Savannah College of Art and Design basically learning how to design awesomeness. When she visited me in London this past summer, we came to a rather strange agreement: she would create a mounted deer head art piece for me and in return I would make her a stuffed animal pig with different wigs that sings (she also requested ninja-capabilities, but I had to draw the line somewhere). We agreed this in July and then didn’t really speak of it again, but we both understood that we needed to produce our gifts by Christmas.
This started when she was thumbing through my copy of Knitting Mochi Mochi by Anna Hrachovec and came to the pig with wigs (you can see one of them on the book cover in the upper right corner). We had been playing around with my Sing-a-ma-jigs earlier. I think the Mochi Mochi Land patterns are yearning to be mashed up with some electronics, and when my sister concluded independently of me that the pig should sing (a project I had wanted to do but didn’t have time to devote to at the ITP Camp last summer), I believed I had no other choice than to make it so.
The result is a pig with glowing eyes and the on/off switch as the tail. When the pig is on and there aren’t any wigs on its head, nothing happens beyond the pulsating eyes. When a wig is snapped onto it, the pig sings the song associated with that wig: a black wig sings Bad Romance by Lady Gaga; a beehive sings Tik Tok by Ke$ha; and a mohawk sings Superbass by Nicky Minaj.
And this is what my sister made me (sorry, not a brilliant photo):
At an ITP Camp session lead by Catarina Mota of openMaterials, I built a voodoo doll of her design. It’s so simple, yet such a great effect.
Here are her slides from the session:
Full tutorial after the jump.