Wearables¶
1. Objective¶
- Create a swatch/sample using a microcontroller with one input and one output, using hard-soft connection solutions and battery
- Create 2 actuator swatches and test them, chosing from examples such as:
Personal Objectives:
- Light diffusion on wool while experimenting with different lighting effects
- Try laser cutting the wool
2. References, research & inspiration¶
I came across Etal Adnan's work. Her work belongs to a post-war Arab modernism [so around 1940-1970]. A group of artists during that time absorbed modern visual language and used it to express their own reality and imbibed it with their culture.
Adnan's work includes certain abstract landscapes. I found these works to be joyful. These landscapes with the sun are of the Mediterranean.
The following painting spoke to me:
3. Tools¶
- Micropixel tape (5v)
- Seweble micropixels
- Air pump (5v)
- Fiberoptic ()
- EL-Wire (another type of fiberoptic)
- Sensor chips
- Sound sensor (available, may not use)
- Light sensor
- Distance sensor
- Tower Pro: Microservo Motor
- Shape, memory alloy (available, may not use)
- Transistor
4. Process & Workflow¶
Actuator 1: Speaker¶
I stitched copper wire into a coil onto a felted camel wool ellipse. I wanted to test how well the copper coil would work on the wool. The coil is of medium density. I left the ends loose.
#include "pitches.h"
// Define the buzzer pin
const int buzzerPin = 8;
// Melody notes for "Across the Universe" intro / main phrase
// Using a simplified monophonic representation of the opening melody
int melody[] = {
NOTE_A4, NOTE_FS4, NOTE_D5, NOTE_FS4,
NOTE_E4, NOTE_CS4, NOTE_D4, NOTE_B3,
NOTE_CS4, NOTE_A3, NOTE_A4, NOTE_FS4,
0 // Rest
};
// Note durations: 4 = quarter note, 8 = eighth note, etc.
int noteDurations[] = {
8, 8, 8, 8,
8, 8, 8, 8,
8, 8, 4, 4,
4
};
void setup() {
// Iterate through the notes of the melody
int size = sizeof(melody) / sizeof(int);
for (int thisNote = 0; thisNote < size; thisNote++) {
// Calculate the note duration (1 second divided by note type)
int noteDuration = 1000 / noteDurations[thisNote];
tone(buzzerPin, melody[thisNote], noteDuration);
// To distinguish the notes, set a minimum time between them
int pauseBetweenNotes = noteDuration * 1.30;
delay(pauseBetweenNotes);
// Stop the tone playing:
noTone(buzzerPin);
}
}
void loop() {
// no need to repeat the melody.
}
Actuator 2: Neopixel Felt Collar¶
#### Trials with the code to create different lighting effects
I wanted to use the distance sensor:
- one light at a time
- sequential lighting - the wave
- dimming effect based on distance from the sensor
The code below is for this effect. I wanted to use the dimming based on distance.
- dimming effect based on distance with wool diffusion experiment
I soldered wires:
- out of the GND
- Into DO (Pin)
- Into for voltage
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 6, NEO_GRB + NEO_KHZ800); // 12 LEDs on pin 6
int trigPin = A0; // Trigger
int echoPin = A1; // Echo
int stripPin = 7;
int numLEDs = 12;
long duration, cm;
int nearCM = 5; // at this distance or closer → full brightness
int farCM = 20; // at this distance or farther → off
void setup() {
//Serial Port begin
Serial.begin (9600);
//Define inputs and outputs
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(6, OUTPUT);
strip.begin();
strip.setBrightness(50);
}
void loop() {
// The sensor is triggered by a HIGH pulse of 10 or more microseconds.
// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// digitalWrite(trigPin, LOW);
// digitalWrite(LED_BUILTIN, HIGH);
// Read the signal from the sensor: a HIGH pulse whose
// duration is the time (in microseconds) from the sending
// of the ping to the reception of its echo off of an object.
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
// Convert the time into a distance
cm = (duration/2) / 29.1; // Divide by 29.1 or multiply by 0.0343
Serial.print(cm);
Serial.print("cm");
Serial.println();
if (cm > 0) { // skip the false 0 readings
int d = constrain(cm, nearCM, farCM); // keep distance between 5 and 50
int level = map(d, nearCM, farCM, 255, 0); // close = 255 (bright), far = 0 (off)
//strip.fill(strip.Color(level, 0, 0)); // red at that brightness
strip.fill(strip.Color(level, level, level)); // white at that brightness
strip.show();
}
delay(50);
}
Bodice Prep¶
I wanted to create a bodice based on Adnan's work from earler and code the different neopixels with the different colors to match this particular landscape. In Rhino, I re-scaled the painting so that the proportion are closer to my size, then traced the outlines. I superimposed the pattern of a bodice in the simplest way possible.
This is my first experiment with cutting the felt in the laser cutter. It worked really well. I was encouraged to try the pattern.
I had a pattern ready in Rhino and I did one trial on synthetic felt. I pinned the parts together and it was alright for the purposes of this week. Next I needle-felted some carded wool into the area I would need. This week included with experimenting with laser cutting the felted wool. In this case, the wool is no less than 4 mm thick.
I didn't find that the diffusion of the collar worked very well. So for the bodice, I placed a layer of butter paper to help with the light diffusion. Then I added a layer of nude-coloured mesh as the base for the bodice. I sewed each piece of the felt pattern individually onto the mesh.
#include <Adafruit_NeoPixel.h>
// Strips in the order they light up: pin 5, 6, 7, 4, 3
const int NUM_STRIPS = 5;
Adafruit_NeoPixel strips[NUM_STRIPS] = {
Adafruit_NeoPixel(7, 5, NEO_GRB + NEO_KHZ800), // 1st: pin 5, 7 LEDs
Adafruit_NeoPixel(8, 6, NEO_GRB + NEO_KHZ800), // 2nd: pin 6, 8 LEDs
Adafruit_NeoPixel(3, 7, NEO_GRB + NEO_KHZ800), // 3rd: pin 7, 3 LEDs
Adafruit_NeoPixel(8, 4, NEO_GRB + NEO_KHZ800), // 4th: pin 4, 8 LEDs
Adafruit_NeoPixel(6, 3, NEO_GRB + NEO_KHZ800) // 5th: pin 3, 6 LEDs
};
// Colour for each strip (R, G, B), same order as above
int colors[NUM_STRIPS][3] = {
{173, 188, 110}, // pin 5 = green (region 3)
{103, 132, 204}, // pin 6 = sea blue (region 6)
{203, 159, 145}, // pin 7 = salmon (region 2)
{164, 117, 122}, // pin 4 = mauve (region 1)
{213, 204, 160} // pin 3 = cream (region 4)
};
int trigPin = A0;
int echoPin = A1;
long duration, cm;
int nearCM = 5;
int farCM = 20;
unsigned long stepDelay = 1000; // time between each strip starting
unsigned long startTime = 0;
unsigned long lastSeen = 0;
bool someoneThere = false;
int level = 0;
void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
for (int i = 0; i < NUM_STRIPS; i++) {
strips[i].begin();
strips[i].setBrightness(50);
strips[i].show();
}
}
void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH, 30000);
cm = (duration / 2) / 29.1;
Serial.print(cm);
Serial.println("cm");
unsigned long now = millis();
if (cm > 0 && cm < farCM) {
if (!someoneThere) {
someoneThere = true;
startTime = now;
}
lastSeen = now;
int d = constrain(cm, nearCM, farCM);
level = map(d, nearCM, farCM, 255, 0);
}
if (someoneThere && now - lastSeen > 500) {
someoneThere = false;
level = 0;
}
unsigned long elapsed = now - startTime;
for (int i = 0; i < NUM_STRIPS; i++) {
if (someoneThere && elapsed >= stepDelay * i) {
strips[i].fill(strips[i].Color(colors[i][0] * level / 255,
colors[i][1] * level / 255,
colors[i][2] * level / 255));
} else {
strips[i].clear();
}
strips[i].show();
}
delay(50);
}
5. Results¶
Speaker¶
There are very noisy backgrounds here :/
Collar¶
Bodice¶
The different strips were coded to match the colours from the artwork. I wanted their lighting to be staggered. It kind of worked and is a good starting point.
6. Weekly reflection & critical thinking¶
As always, to realize any vision a the time within the week is elusive. Nonetheless, I tried two important things with the wool this week:
- Laser cutting: which opens up so many possibilities
- Lighting diffusion: though not perfect, I learned that butter paper and distance help with more even lighting diffusion.
I know this is not the best solution, but in the nick of time soldering the strips and using alligator cables was a quick solution. Ideally, I would have sewn the circuits with conductive thread.
I am also quite happy with the bodice as it is closer to my vision of using the camel wool. It is a local resource that I want to use in a contemporary manner, rather than stay stuck in a 'heritage' cateogry.