The NESSO N1 Arduino Docs web page has two graphs which plot data, but do not constrain the graphs within minimum and maximum data values allowing the line plotter to auto-adjust to a moving min/max. Not visually pleasing.
https://docs.arduino.cc/tutorials/nesso-n1/user-manual/#visualizing-the-output
Consider using a sketch similar to this for a pleasing visualization:
// line plotter using constant minimum and maximum values to keep graph from resizing
const int plotMIN = 0;
const int plotMAX = 1023;
void setup() {
Serial.begin(1115200);
}
void loop() {
Serial.print(plotMIN); // minimum value data point to plot
Serial.print(","); // separator between data points
Serial.print(analogRead(A0)); // floating value data point
Serial.print(",");
Serial.print(analogRead(A1));
Serial.print(",");
Serial.print(analogRead(A2));
Serial.print(",");
Serial.print(plotMAX); // maximum value data point to plot
Serial.println(); // CR/LF sends this set of data points to line plotter
}
Same fun on the digital side...
// line plotter using constant minimum and maximum values to keep graph from resizing
const float plotMIN = -0.1;
const float plotMAX = 1.1;
unsigned long timer, timeout = 500;
void setup() {
Serial.begin(1115200);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
if (millis() - timer > timeout) { // compare "now" to timeout variable
timer = millis(); // reset timer
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); // invert digital reading
}
Serial.print(plotMIN); // minimum value data point
Serial.print(","); // separator between data points
Serial.print(digitalRead(LED_BUILTIN)); // plot LED_BUILTIN value
Serial.print(",");
Serial.print(plotMAX); // maximum value data point
Serial.println(); // CR/LF sends data points to plotter
}