Monday, April 4, 2016

Serial Plotter in Arduino IDE



Start from ARDUINO 1.6.6 (2015.11.03), Serial Plotter is added under Tools > Serial Plotter.

This video show how to use it.


Example running on Arduino Uno in the video, read Analog Input from A0, and println to serial port.
const int AnalogIn  = A0;

int readingIn = 0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  readingIn = analogRead(AnalogIn);
  Serial.println(readingIn);
}

remark: This code can run on NodeMCU also.


No comments:

Post a Comment