I'm trying to log sensor data as fast as possible through the Arduino. As of now, I open the serial connection at the highest rate available, then write data in the standard fashion:
// in setup
Serial.begin(115200);
//in a print function that is called from loop()
Serial.print(millis());
Serial.print(',');
Serial.print(shoulderAngle);
Serial.print(',');
Serial.print(shoulderCurrentAmps);
Serial.print(',');
Serial.print(pwmShoulder);
Serial.print(',');
Serial.println(shoulderVoltageVolts);
I'm using CoolTerm to view the data and save to a txt file for later processing in Excel/MATLAB. But with the above code I can only get a reading about every 2-3 ms. I'm wondering if I can take advantage of the EEPROM to somehow write several values there at once, then Serial.print the entire stored EEPROM every time it gets full? I've looked all through the example documentation I can find online, but can't figure out how to read (then Serial.print) more than one value at a time from the EEPROM. And if I have to loop through the EEPROM to Serial.print teach line, clearly there is no advantage to it here.
For various reasons I am not using a data logging shield, SD card, or anything else peripheral - and need to keep it that way.
Thanks!