Created
November 7, 2017 18:41
-
-
Save ulrichzwingli/c578c9e4af0a2e5f07167ba7840921c4 to your computer and use it in GitHub Desktop.
Arduino Code for getting data from 5 piezo sensors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arduino code for getting data from 5 piezo sensors | |
void setup() | |
{ | |
Serial.begin(9600); | |
//pinMode(ledPin, OUTPUT); | |
} | |
void loop() | |
{ | |
int val0= analogRead(A0); | |
int val1= analogRead(A1); | |
int val2= analogRead(A2); | |
int val3= analogRead(A3); | |
int val4= analogRead(A4); | |
delay(200); | |
Serial.print(val0); | |
Serial.print(","); | |
Serial.print(val1); | |
Serial.print(","); | |
Serial.print(val2); | |
Serial.print(","); | |
Serial.print(val3); | |
Serial.print(","); | |
Serial.println(val4); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment