Example Projects
Workshops

Actuators
Circuits
Communication
Connections
Power
Sensors
Traces
Conductive Materials
Non-Conductive Materials
Tools
Techniques
Code
Example Projects
  • Aluminum Foil Tilt Sensor
  • Amplified Pillow Speaker
  • DJ Hoodie
  • Fabric JoyPad
  • Granny Square MIDI
  • JoySlippers
  • Massage my feet
  • Musical Pillow
  • Neoprene LED Light Pouch
  • Openwear Finger Bend Sensor
  • Piano T-Shirt
  • Capacitive LED Fower
  • Puppeteer Costume
  • Puppeteer Gloves
  • Sensitive Fingertips
  • Sensor Sleeve
  • Silent Pillow Speaker
  • Solar T-Shirt
  • Solar T-shirt II
  • Star Light
  • Stretch Sensitive Bracelet
  • Tilt Sensing Bracelet
  • Time Sensing Bracelet
  • Touch Sensitive Glove
  • Voodoo Sensor Doll
  • Wearable Sound Experiment
  • Wearable Toy Piano
  • Wearable Waste of Energy
  • Wireless JoySlippers
  • Wireless Tilt Sensing Bracelet
  • About
  • Newsletter
  • Shopping Local

  • SEARCH
    Content by Mika Satomi and Hannah Perner-Wilson
    We support the Open Source Hardware movement. All our own designs published on this website are released under the Free Cultural Works definition
    The following institutions have funded our research and supported our work:

    Mika was a guest researcher at the Smart Textiles Design Lab, The Swedish School of Textiles

    Hannah is a former graduate student of the MIT Media Lab's High-Low Tech research group


    Hannah and Mika were both research fellows at the Distance Lab
    Example Projects

    Musical Pillow

    An example using the lilypad arduino sewn to a pillow with a speaker and fabric tilt sensor, playing a different note for each petal of the sensor. The pillow also has an analog pin broken out to one of it’s corners to be connected to any external analog sensors to make noise.

    Video:

    Making-of

    Materials and tools:

    Sketch out your circuit connections:

    Thread needle:

    Cut out a piece of felt to mount behind LilyPad for improved electrical contact when sewing with conductive thread to circuit baord holes:

    Tie knots at the ends of your thread and keep ends short. Use nail varnish on ends to stop fraying.

    Trace shapes on conductive fabric with fusible interfacing and cut out:

    Fuse to pillow fabric with an iron:

    Or sew the patches down if your fusible doesn’t hold:-)

    Finished back:

    Finished front:

    Close-ups:

    Program the LilyPad Arduino:

    Arduino Code:

    #include “pitches.h”

    // declare array of input pins connected to tilt sensor petals:
    int tiltPetals[] = {
    5,6,11,16,18,19};

    // declare pin variables:
    int analogCorner = 3;
    int GNDcorner = 10;
    int speakerPin = 9;

    // declare storage variables:
    int tiltValue;
    int cornerValue;

    // declare array of notes associated with each tilt petal:
    int notes[] = {
    NOTE_A1, NOTE_B2, NOTE_C3, NOTE_D4, NOTE_E5, NOTE_F6};

    void setup() {
    // declare tilt sensor petals pins as digital inputs:
    for(int i = 0; i<6; i++){
    pinMode(tiltPetals[i], INPUT);
    digitalWrite(tiltPetals[i], HIGH); // set internal pull-up resistors
    }

    // declare analog corner pin as analog input
    pinMode(analogCorner, INPUT);
    digitalWrite(17, HIGH); // set internal pull-up resistor (analog pin 3 = digital pin 17)

    // declare other corner as output and set to be GND:
    pinMode(GNDcorner, OUTPUT);
    digitalWrite(GNDcorner, LOW);

    // declare speaker pin as output:
    pinMode(speakerPin, OUTPUT);

    Serial.begin(9600); // begin serial communication for debugging
    }

    void loop() {
    for(int i = 0; i<6; i++){
    tiltValue = digitalRead(tiltPetals[i]);
    Serial.print(tiltValue); // print value to serial monitor for debugging

    if(tiltValue == 0) {
    tone(speakerPin, notes[i], 1000);
    }
    }
    Serial.println(); // print a linebreak after each for loop

    cornerValue = analogRead(analogCorner);
    if(cornerValue < 1000) {
    tone(speakerPin, cornerValue, 250);
    }
    //Serial.println(cornerValue); // print analog value for debugging

    delay(10);
    }

    2 Comments so far

    1. [...] Via: Kobakant [...]

    2. LilyPad Arduino | Musical Pillow on March 14th, 2013

      [...] information here. Last updated March 13, 2013. st_go({v:'ext',j:'1:1.7',blog:'40231240',post:'1780'}); [...]

    Leave a comment