项目作者: devinaconley

项目描述 :
An Arduino library for easy graphing on host computer via serial communication
高级语言: C++
项目地址: git://github.com/devinaconley/arduino-plotter.git
创建时间: 2015-12-30T06:44:02Z
项目社区:https://github.com/devinaconley/arduino-plotter

开源协议:MIT License

下载


arduino-plotter

arduino-library-badge

Plotter is an Arduino library for easy graphing on host computer via serial communication


Features:

  • Continuous multi-variable plots against time
  • 2-variable “x” vs “y” plots
  • Display multiple graphs within single resizable window
  • Support for any data type that can be cast to a double
  • Simply pass a reference to your variables when the graph is added, no need to update each value explicitly
  • Control number of data points displayed on each graph
  • Auto-scaling to fit all data on graph
  • Configurable line color per variable
  • Stand-alone listener application, written with Processing, is provided

Plotter Preview


Extremely easy usage:

  1. #include "Plotter.h"
  2. double x; // global variables
  3. Plotter p; // create plotter
  4. void setup()
  5. {
  6. p.Begin(); // start plotter
  7. p.AddTimeGraph( "Some title of a graph", 1500, "label for x", x ); // add any graphs you want
  8. }
  9. void loop()
  10. {
  11. x = 10*sin( 2.0*PI*( millis() / 5000.0 ) ); // update your variables like usual
  12. p.Plot(); // plot all current data -- usually called within loop()
  13. }

See the Wiki for more information:

Home
Quickstart
Documentation