Mega 2560 Serieller output als Diagramm

Hi,

mal ganz vorsichtig gefragt:
dir ist schon klar, daß der Sketch den du da hast ab dem Kommentar

// Processing code for this example

für Processing ist und auf dem PC laufen soll um die Daten, die dein Arduino sendet, entgegenzunehmen und auszuwerten.

Auf den Arduino gehören nur die ersten paar Zeilen:

void setup() {
  // initialize the serial communication:
  Serial.begin(9600);
}

void loop() {
  // send the value of analog input 0:
  Serial.println(analogRead(A0));
  // wait a bit for the analog-to-digital converter 
  // to stabilize after the last reading:
  delay(2);
}

Grüßle Bernd