Hi, I have a device that outputs a voltage in the mV range (0-1V), and I want to connect this up to the Arduino, and have it plot a time vs voltage line graph using Processing. Problem is, I am not very good at coding in Processing, and haven't been able to find any line graph examples.
Basically, I just want a graph that receives the voltage in millivolts, from one of the Arduinos inputs, and plot it on a graph, with time being on the X axis, and voltage on Y.
So, I could have it poll the Arduino for a reading every second or so, it would plot that point on the graph, then connect it up with a line (Or just use a line instead of a point)
int val = 0;
void setup() {
 // initialize the serial communication:
 Serial.begin(9600);
}
void loop() {
Â
  val = analogRead(5);
  Serial.println(val);
 delay(1000);
}
Thats the current code, though I need to map the output from 0 -1023 to a voltage .
I'm not sure how common it is, but I've used OpenOffice.org suite to graph some incoming data before.
You can either save the data into eeprom, or send it to serial, or a SD card of course. Then copy the text, save it to a .CSV file, then it gives you some settings for how you want it spaced and such, then it creates a table.
From there, you can create a graph by clicking, the graph button! lol Can use pie graphs.. bar graphs.. some graphs I've never even heard of! I've only used it twice (for testing) so I'm not too familiar with it, but it worked fairly well.