Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /*
  2. Galvanic Skin Response meter
  3. Chris Kairalla
  4. */
  5. #define smooth 20 //2 smooths the last two nums, 3 smooths the last 3...
  6.  
  7. int oldReading = 0; // variable to hold the old analog value
  8. int analogValueSmooth = 0;
  9. int thresh = 10;
  10. int smoothArray[smooth];
  11. //set baud rate
  12. int baud = 19200;
  13. boolean bluetooth = false;
  14. void setup()
  15. {
  16. Serial.begin(baud); // opens serial port, sets data rate to 19200 bps
  17. if (bluetooth){
  18. Serial.print("+++");
  19. Serial.print(13, BYTE);//print cr
  20. Serial.print("ATSN,cdkBluetooth");
  21. Serial.print(13, BYTE);//print cr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement