我想使用电偶皮肤传感器测量皮肤电导。我使用Arduino软件。使用电流皮肤反应(皮肤电导)的放松状态/正常状态/压力状态的范围
所以我想知道一个轻松的人,一个强调人的实际价值范围。 另外我想知道这个测量的实际单位是多少。
这是我的ardiuno源代码。
const int LED=13;
const int GSR=A2;
int threshold=0;
int sensorValue;
void setup(){
long sum=0;
Serial.begin(9600);
pinMode(LED,OUTPUT);
digitalWrite(LED,LOW);
delay(1000);
for(int i=0;i<500;i++)
{
sensorValue=analogRead(GSR);
sum += sensorValue;
delay(5);
}
threshold = sum/500;
Serial.print("threshold =");
Serial.println(threshold);
}
void loop(){
int temp;
sensorValue=analogRead(GSR);
Serial.print("sensorValue=");
Serial.println(sensorValue);
temp = threshold - sensorValue;
}
}
阅读数据表? –