Category: Assignment-09-Slides

Kristinophone

Initially, I wanted to create a fairly traditional violin, where only the strings were essentially electronics. During the project discussion, however, it was pointed out to me that this had already been done — several times over. I was advised to make an instrument which was truly my own, and I have now done so:

Electric Violin Photo

Here are some electronic violins I considered using as a starting point.

Unfortunately, CMU students are overacheivers and someone got here first:   942745_513514998723665_1692590458_n They didn’t have LED lights in their acrylic violin, but it was too close to emulate.

 

Here was my first mockup. (You know how most people do drafts in their sketchbook? I couldn’t close mine after this one.)1474426_717771071574164_1198692958_n

 

Ta-dah! IMG_8966IMG_8983

 

This is my project to date. Thanks!

 

Face Seismograph

Screen Shot 2013-12-05 at 12.21.44 PM
Soliciting participants on Facebook – my original scheme for the final project
Screen Shot 2013-12-05 at 12.43.57 PM
I planned to print screenshots out and frame them like so

As is often the case in art, my project to capture the things that make us smile turned out to have been implemented a year before by Brooklyn artist Kyle McDonald. The embarrassing part of this is that I – unknowingly – used Kyle’s library to make my project.

In any case, this initial attempt/failure emboldened me to try something more nuanced with faces. I wanted to consider a continuum of expressions as opposed to a binary smile-on smile-off.

Face Seismograph 

Screen Shot 2013-12-05 at 8.50.50 AM

Screen Shot 2013-12-05 at 8.51.20 AM

Face Seismograph is a tool for recording and graphing states of excitement over time. It was written in OpenFrameworks using Kyle McDonald’s ofxFaceTracker addon.

excitement1
Excited?
So excited
Excited!

The seismograph measures excitement by tracking the degree to which one smiles or moves their eyebrows from a resting state.

One limitation of this approach is that in practice, internal states of excitement or arousal may not have corresponding facial expressions.

So excited
Genuinely excited
Doesn't get it
Depressed

I staged a casual conversation between myself and a friend. While we chatted about life, two instances of Face Seismograph approximated and recorded the intensity of our excitement. Viewing the history of our facial expressions, I began to notice surprising rhythms of expression.

Screen Shot 2013-12-05 at 12.32.42 PM Screen Shot 2013-12-05 at 12.32.53 PM Screen Shot 2013-12-05 at 12.33.00 PM Screen Shot 2013-12-05 at 12.33.45 PM Screen Shot 2013-12-05 at 12.34.23 PM

To present this conversation, I play each recording on a separate iMac. The two recordings are synchronized via OSC. A viewer can scrub through the video on both computers simultaneously.

In a future iteration of this project, I’d like to highlight the comparison of excitement signatures with greater clarity. Also, I need to label my axes.

 

Rachel-Final Project

The Interactive Development Environment: bringing the creative process to the art of coding.

TIDE is an attempt to integrate the celebrated traditions of the artistic process and the often sterile environment of programming. The dialogue of creative processes exists in the process of coding as frustration: debugging, fixing, and fidgeting over details until the programmer and program are unified. TIDE attempts to turn this frustration into the exhilaration of dialogue between artist and art.
The environment uses a Kinect to find and track gestures that correspond to values. Processing code is written with these values and saved in a .txt file. The result code creates a simple shape on screen. I want to expand this project to be able to recognize more gestures and patterns, allowing for much more complicated systems to be implemented. Ironically, I found the process of implementing and testing this project generating the very frustration and sterility I was trying to eradicate with the intuitive, free flowing motions I could get with the Kinect.
 photo Sketches9a_zps66e2853c.jpg

 photo FinalTxtFileScreen_zpsc25421bb.jpg
 photo FinalProcessingFileScreen_zps52cd8bed.jpg

Little Wonders

IMG_5081

IMG_5082 IMG_5083

Ever since I was a kid, I’ve always been fascinated by the idea of our stuffed animals and toys coming to life, quite similar to the various toys from Toy Story. Having that vision in mind and after discussing my idea to a few classmates, I decided to bring some of Toy Story to life. My inspirations came from revisiting old children movies where all the objects and creatures were personified.

“Little Wonders” explores the idea of objects moving and interacting when we aren’t there to see the interactions exchanged. I loved the idea that we existed in a world with a more fantastical side that we may never be able to fully unveil.

Some of the technical challenges included trying to create a realistic interpretation of the “creatures'” movements. I wanted the movements to appear subtle so people would second guess themselves, but at the same time smooth enough so that they don’t appear as robotic as the servos. I added an easing effect to help ease the changes in movements. Another challenge was connecting the power chord to the teensy while keeping it hidden. In the end, I placed the shelf slightly between the two doors so that the chord can slip behind the shelf and between the doors inconspicuously.

fritzing_bb

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include 
int duration = 3500;
 
// metros 
Metro mouse1 = Metro (duration);
Metro mouse2 = Metro (duration);
Metro jaguar = Metro (duration);
 
//servos 
Servo sMouse1; 
Servo sMouse2; 
Servo sJaguar; 
 
// destinations 
int dm1_0; 
int dm2_0; 
int dj0; 
// destinations to be smoothed
int dm1_0_sh; 
int dm2_0_sh; 
int dj0_sh; 
 
float easing[] = {
  0.09,0.08,0.03};
 
const int motionPin = 0; 
int noMotion; 
int mouse1Motion = 0; 
int motionLevel; 
 
void setup(){
  Serial.begin(9600);
 
  // pin 5 missing 
  sMouse1.attach(0); 
  sMouse2.attach(1);
  sJaguar.attach(2); 
 
  // intial destinations 
  dm1_0 = 0; 
  dm2_0 = 90; 
  dj0 = 135; 
  // intial destinations to be smoothed
  dm1_0_sh = 0; 
  dm2_0_sh = 90; 
  dj0_sh = 135; 
 
  noMotion = 0;
}
 
void loop(){
  motionLevel = analogRead(motionPin); 
  motionLevel = map(motionLevel,0,656, 0,100); 
  motionLevel = constrain(motionLevel, 0,100); 
 
  //motionLevel = 0;
 
  if (motionLevel < 20 ){     noMotion ++;      if (noMotion >= 100){
 
      if (mouse1.check() == 1){
        dm1_0 = random(0,180);
 
        mouse1.interval(random(200,800)); 
        mouse1Motion ++; 
      }
      dm1_0_sh = dm1_0_sh *(1.0 - easing[0]) + dm1_0 * easing[0];
      sMouse1.write(dm1_0_sh);
 
      if (noMotion >= 120){
        if(mouse1Motion >= 10){
          if (mouse2.check() == 1){
            dm2_0 = random(0,180); 
 
            mouse2.interval(random(300,800)); 
          }
          dm2_0_sh = dm2_0_sh * (1.0 - easing[1]) + dm2_0 * easing[1];
          sMouse2.write(dm2_0_sh);
        }
      }
 
      if (noMotion >= 150){
        if (mouse1Motion >= 14 ){
          if (jaguar.check() == 1){
            dj0 = random(90,180); 
 
            jaguar.interval(random(500,2000));
          }
          dj0_sh = dj0_sh * (1.0 - easing[2]) + dj0 * easing[2];
          sJaguar.write(dj0_sh);
        }
      }
    }
  }
  else{
    noMotion = 0; 
  }
  //Serial.print("motion: ");
  Serial.println(motionLevel);
  //Serial.println(dj0_sh);
 
  delay(25);
}

 

 

 

Prezi-tation

Some images from the presentation:

Revolving Games_bb

door

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
//Revolving Games by Michelle Ma
//Revolving Games by Michelle Ma
 
#include <wire .h>
#include <sd .h>
#include "RTClib.h"
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#include <adafruit_sensor .h>
#include <adafruit_adxl345 .h>
 
Adafruit_7segment matrix1 = Adafruit_7segment();
Adafruit_7segment matrix2 = Adafruit_7segment();
Adafruit_ADXL345 accel = Adafruit_ADXL345(12345);
 
RTC_DS1307 RTC; // Real Time Clock
 
const int chipSelect = 10; //for data logging
const int distancePin = 0; //A0 for IR sensor
 
const int threshold = 100; //collect data when someone near
const float radius = 0.65; //radius of door in meters
const float pi = 3.1415926;
 
File logfile;
 
int highScore;
 
void setup() {
  Serial.begin(9600);
  SD.begin(chipSelect);
  createFile();
  accel.begin();
  matrix1.begin(0x70);
  matrix2.begin(0x71);
 
  if (!RTC.isrunning()) {
    RTC.adjust(DateTime(__DATE__, __TIME__));
  }
 
  accel.setRange(ADXL345_RANGE_16_G);
 
  highScore = 0;
}
 
void createFile() {
  char filename[] = "LOGGER00.CSV";
  for (uint8_t i=0; i&lt;100; i++) {
    filename[6] = i/10 + '0';
    filename[7] = i%10 + '0';
    if (!SD.exists(filename)) {
      logfile = SD.open(filename, FILE_WRITE);
      break;
    }
  }
 
  if (!logfile) {
    Serial.print("Couldn't create file");
    Serial.println();
    while(true);
  }
  Serial.print("Logging to: ");
  Serial.println(filename);
 
  Wire.begin();
 
  if (!RTC.begin()) {
    Serial.println("RTC error");
  }
  logfile.println("TimeStamp,IR Distance,Accel (m/s^2),RPM");
}
 
void loop() {
 
  DateTime now = RTC.now();
  sensors_event_t event; 
  accel.getEvent(&event);
 
  float distance = analogRead(distancePin);
  float acceleration = event.acceleration.z;
  float rpm;
 
  if (distance > threshold) {
    rpm = computeRpm();
  } else {
    rpm = 0;
  }
 
  if (rpm > highScore) {
    highScore = rpm;
  }
 
  logData(now, distance, acceleration, rpm);
  serialData(now, distance, acceleration, rpm);
  writeMatrices(int(rpm), int(highScore));
 
  Serial.println("Saved...");
  logfile.flush();
}
 
float computeRpm() {
  float velocity = computeVelocity();
  float result = abs(60.0*velocity)/(2.0*pi*radius);
  return result;
}
 
float computeVelocity() {
  float acceleration;
  float sum = 0;
  int samples = 100;
  int dt = 10; //millis
  for (int i=0; i<samples ; i++) {
    sensors_event_t event; 
    accel.getEvent(&event);
    acceleration = event.acceleration.z;
    if ((i==0)||(i==(samples-1))) {
      sum += acceleration;
    } else {
      sum += 2.0*acceleration;
    }
    delay(dt);
  }
  float result = ((dt/1000.0)/2.0)*sum;
  Serial.print("Velocity: "); Serial.println(result);
  return result;
 
}
 
void logData(DateTime x, float dist, float acc, float rpm) {
  logfile.print('"'); //TimeStamp
  logfile.print(x.year(), DEC);
  logfile.print("/");
  logfile.print(x.month(), DEC);
  logfile.print("/");
  logfile.print(x.day(), DEC);
  logfile.print(" ");
  logfile.print(x.hour(), DEC);
  logfile.print(":");
  logfile.print(x.minute(), DEC);
  logfile.print(":");
  logfile.print(x.second(), DEC);
  logfile.print('"');
  logfile.print(", ");
 
  logfile.print(dist);
  logfile.print(", ");
  logfile.print(acc);
  logfile.print(", ");
  logfile.print(rpm);
  logfile.println();
}
 
void serialData(DateTime x, float dist, float acc, float rpm) {
  Serial.print('"'); //TimeStamp
  Serial.print(x.year(), DEC);
  Serial.print("/");
  Serial.print(x.month(), DEC);
  Serial.print("/");
  Serial.print(x.day(), DEC);
  Serial.print(" ");
  Serial.print(x.hour(), DEC);
  Serial.print(":");
  Serial.print(x.minute(), DEC);
  Serial.print(":");
  Serial.print(x.second(), DEC);
  Serial.print('"');
  Serial.print(", ");
 
  Serial.print(dist);
  Serial.print(", ");
  Serial.print(acc);
  Serial.print(", ");
  Serial.print(rpm);
  Serial.println();
}
 
void writeMatrices(int m1, int m2) {
  if (m1==0) {
    matrix1.writeDigitNum(4, 0);
  } else {
    matrix1.println(m1); //Participant's rpm
  }
  if (m2==0) {
    matrix2.writeDigitNum(4, 0);
  } else {
    matrix2.println(m2); //High score
  }
  matrix1.writeDisplay();
  matrix2.writeDisplay();
}