Samuel Snodgrass- Proposal

https://docs.google.com/presentation/d/1GKMJO_LBlTCVyDhi6WM3QJrAHCV6RY3Xf96pNq4q4l8/edit?usp=sharing

 

 

Advertisements

Double capacitive sensor code

#include <Adafruit_NeoPixel.h>
#include <CapacitiveSensor.h>

#define PIN 6

Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800);//pin doesnt need number because was already defined up top.
CapacitiveSensor cs_9_10 = CapacitiveSensor(9,10);
CapacitiveSensor cs_9_2 = CapacitiveSensor (9,2); //pin 9 which is sensor pin is shared.

void setup() {
cs_9_10.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1 – just as an example
Serial.begin(9600);
strip.begin();
strip.show(); // Initialize all pixels to ‘off’

cs_9_10.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1 – just as an example
Serial.begin(9600);
strip.begin();
strip.show(); // Initialize all pixels to ‘off’

}

void loop() {
long total1 = cs_9_10.capacitiveSensor(30);
long total2 = cs_9_2.capacitiveSensor (30);
Serial.println(total1);
Serial.println(total2);

if(total1 <= 50){
// before LED is on:
colorWipe(strip.Color(0, 0, 0), 0);
}
else {
// LED on:
// colorWipe(strip.Color(0,255,255), 0);
rainbowCycle (10);
}

if(total2 <= 50){
// turn LED on:
colorWipe(strip.Color(0, 0, 0), 0);
}
else {
//turn LED off:
colorWipe (strip.Color(255, 0, 100),0);
}
if(total2 <=300){
colorWipe(strip.Color(0,0,0),0);
} else {
colorWipe (strip.Color (20,100,200),0);
}

}

 

void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(10);
}
}

void rainbowCycle(uint8_t wait) {
uint16_t i, j;
//add timing interrupt here
for(j=0; j<256*1; j++) { // by changing number, changes how many cycles of all colors on wheel
for(i=0; i< strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
}
strip.show();
delay(1 );
}
}

uint32_t Wheel(byte WheelPos) {
WheelPos = 255 – WheelPos;
if(WheelPos < 50) {
return strip.Color(255 – WheelPos * 3, 0, WheelPos * 3);
}
if(WheelPos < 170) {
WheelPos -= 85;
return strip.Color(0, WheelPos * 3, 255 – WheelPos * 3);
}
WheelPos -= 170;
return strip.Color(WheelPos * 3, 255 – WheelPos * 3, 0);
}

 

1. I often lie on my carpet or mat for exercise and meditation and sometimes I feel its helpful to not have my phone/laptop around for those moments. I usually use those devices to keep track of time or play music and I think it would be interesting to embed a way of activating those functions through the surface of the carpet or mat.

2. I think seating, or places of rest are really important in public space and I think that a way to add more space and privacy to those moments of rest would be to create an blanket layer that gently encloses you when senses your presence.

3. Sometimes when I pet and cuddle my cat, the fur that she’s shedding starts flying around or sticking onto me. It would be really great to have some sort hand extension that can sense when fur starts building up and collect it.

– Sabrina

Jane Thompson

  1. Some people talk too much, some not enough.  How about an alert system that monitors the length of time you or someone else is talking.  It could cause a distracting display of lights or sounds on your clothing to change the subject if you or the person next to you rambles on for a certain length of time.
  2. A time stamp built into clothing for monitoring how long you spend on particular tasks.  I’d like this in my work because I have to record how much time I spend on patient care, documentation and other activities.
  3. I despise alarm clocks and they can be annoying for partners who have different schedules and sleep needs.  How about sleep wear that wakes you up with a gentle massage.