Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arduino Code for getting data from 5 piezo sensors
// 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
You can’t perform that action at this time.