Pulse Necklace 16Aug2009

From Noisebridge
Jump to navigation Jump to search

Hack Notes for Pulse Choker, Aug 16th, 2009[edit]

Fabric Electrode Test[edit]

We tried using the high impedance op-amp LMC662CN with a sample of conductive fabric (Stretch Conductive Fabric, medical grade silver plated 92% nylon, 8% dorlastan, sold by lessemf.com Catalog # 251.), but we couldn't seem to get anything that looked like a heart-beat signal. We did however get something other than 60 Hz square wave, so we think we're on the right track, we probably just arn't doing things quite correctly. We have know-working fabric electrodes on the way, and we could also order the known-to-work OPA129 op-amp.

Working Prototype[edit]

We assembled:

  • 2 red dot electrodes
  • ECG circuit
  • 3 LED silver conductive paint prototype choker
  • Arduino RBBB
  • 9V battery

into a fully functional "portable" pulse choker!! The electrodes work fine below your nipples (as shown in usal diagrams), but they also work fine "where the bra strap meets the cups", i.e. higher, above the nipples. We have photos and video of the prototype in action.

David PulseChoker.jpg


Code:

/* Chung-Hay & Eric
Aug 16th, 2009
 */


int LeftNeckLED = 6;
int RightNeckLED  = 8;
int val = 0;

void setup() {
  pinMode(LeftNeckLED, OUTPUT);  
  pinMode(RightNeckLED, OUTPUT);
   digitalWrite(LeftNeckLED, 1);
   digitalWrite(RightNeckLED, 1);
     Serial.begin(57600);          //  setup serial
  pinMode(2, OUTPUT);
  pinMode(13, OUTPUT);
}


void loop() {
   /*digitalWrite(LeftNeckLED, 1);
   digitalWrite(RightNeckLED, 1);
   delay(500);
   digitalWrite(LeftNeckLED, 0);
   delay(6000);
   digitalWrite(RightNeckLED, 0);
   delay(30000);*/

 val = analogRead(2);    // read the input pin
  if (val < 100)
  {
    Serial.println(val);             // debug value
    digitalWrite(2, 0);
    digitalWrite(13, 0);
  }
  else
  {
    digitalWrite(2, 1);
    digitalWrite(13, 1);
  }
  //Serial.println("test");
 
}