Jasmine LiHannah WuHannah RubinsteinOlivia Palmer
Published

GalvaSense

Our project, GalvaSense, detects a subject's panic response to simplify communication between doctors and patients.

BeginnerProtip486
GalvaSense

Things used in this project

Hardware components

SparkFun Inventor's Kit for Arduino 101
SparkFun Inventor's Kit for Arduino 101
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

EDA Sensor/Display

C/C++
This code collects and displays data from the EDA sensor along with a message.
#include <LiquidCrystal.h>

// Initialize the library with the pins we're using.
// (Note that you can use different pins if needed.)
// See http://arduino.cc/en/Reference/LiquidCrystal
// for more information:

LiquidCrystal lcd(12,11,5,4,3,2);

void setup()
{
  Serial.begin(9600);
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  digitalWrite(2, HIGH);
  delay(300);
  digitalWrite(3, HIGH);
  delay(300);
  digitalWrite(4, HIGH);
  delay(300);

 
  lcd.begin(16, 2);

  
  lcd.clear();

}

void printStatus(String message){
  lcd.print(message);
  lcd.setCursor(0,1);
  lcd.print(String(analogRead(A0)*4.9) + "mV");
  delay(300);
  lcd.clear();
  
}


void loop()
{
  
  


 
  if (analogRead(A0) > 45.0)
  {
    digitalWrite(0, HIGH);
    printStatus("PANIC");
    
    
  }
  else if (analogRead(A0) > 35.0)
  {
    digitalWrite(0, HIGH);
    printStatus("Check vitals");
    
  }
  else if (analogRead(A0) > 25.0)
  {
    digitalWrite(0, HIGH);
    printStatus("Uncertain");
    
    
  }
  else if (analogRead(A0) > 2.0)
  {
    digitalWrite(0, HIGH);
    printStatus("Vitals good");
    
    
  }
  else
  {
    digitalWrite(0, LOW);
    printStatus("TOUCH CIRCLES");
    
  }
  

//NOTE: FIGURE OUT WHAT THE CONDITIONS MEAN + INTERPRET

  Serial.println(analogRead(A0));
  delay(20);
}

Credits

Jasmine Li
1 project • 0 followers
Hannah Wu
1 project • 0 followers
Hannah Rubinstein
1 project • 0 followers
Olivia Palmer
1 project • 0 followers
Thanks to Dante Roumega.

Comments