Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Galvanic Skin Response meter
- Chris Kairalla
- */
- #define smooth 20 //2 smooths the last two nums, 3 smooths the last 3...
- int oldReading = 0; // variable to hold the old analog value
- int analogValueSmooth = 0;
- int thresh = 10;
- int smoothArray[smooth];
- //set baud rate
- int baud = 19200;
- boolean bluetooth = false;
- void setup()
- {
- Serial.begin(baud); // opens serial port, sets data rate to 19200 bps
- if (bluetooth){
- Serial.print("+++");
- Serial.print(13, BYTE);//print cr
- Serial.print("ATSN,cdkBluetooth");
- Serial.print(13, BYTE);//print cr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement