// Reads analog input and sends over serial. // Reports the time the input was sampled. // DOES NOT use interrupts. // Uses high baud serial for maximum bandwidth. // This version just returns a raw stream of data with no time stamps. // This gives a slightly less than 2 ms inter-sample interval at 115200 baud. void setup() { // initialize serial communication Serial.begin(57600); } void loop() { // sample as fast as possible Serial.println(analogRead(A0)); delay(9); //Serial.println(millis()); }