I ran a test to see how fast Teensy 3.0 could take 1,000 analog readings and transfer the data to the Arduino Serial monitor. Teensy 3.0 was over 20 times faster than an Arduino Uno or a Chipkit Uno 32. Now I need suggestions on to capture the data in a file and thereby put Teensy 3.0 speed to good use.
For reference here is the test code.
const int Pin = 0;
void setup()
{
Serial.begin(115200);
}
void loop()
{
unsigned long t1 = millis();
for (long i=0; i< 1000; i++)
{
int val = analogRead(Pin);
Serial.println(val);
}
unsigned long t2 = millis();
Serial.print("millisec "),
Serial.println(t2 - t1);
delay(10000);
}
hrh1818
For reference here is the test code.
const int Pin = 0;
void setup()
{
Serial.begin(115200);
}
void loop()
{
unsigned long t1 = millis();
for (long i=0; i< 1000; i++)
{
int val = analogRead(Pin);
Serial.println(val);
}
unsigned long t2 = millis();
Serial.print("millisec "),
Serial.println(t2 - t1);
delay(10000);
}
hrh1818