Arduino graph software

Arduino graph using Processing

Update: Here is a link to my source code. Some very simple examples, without the buttons, saving data etc. When I get time I’ll start a new post explaining it all properly.

This code is for those that want to draw fancy graphs with processing, and use the fasted method to communicate with the Arduino.

Arduino side:

  • Serially sending arrays for different graphs from the chip
       void PlottArray(int Cmd,int Array1[],int Array2[])
           Cmd  -> which graph is this data for?
       Array1[] -> The real time array. Measured micro-seconds
       Array2[] -> Array of measured voltages
  • Serially sending updates for different graphs from the chip

Processing side:

  • A graph class that makes graphing simple with Processing. Drawing bar graphs, smooth  line graphs etc can be quite a mission..

You just have to declare a graph object:  Graph VoltageAndCurrent;

        VoltageAndCurrent.xMax=int(max(timeArray1));
        VoltageAndCurrent.yMax=int(max(voltageArray));

        VoltageAndCurrent.DrawAxis();
        VoltageAndCurrent.smoothLine(timeArray1,voltageArray,currentArray);
  • Saving and loading data to a text file
  • Efficient serial link to the Arduino (Error checking etc)
Advertisement

3 thoughts on “Arduino graph software

  1. Hi,
    I am new to Arduino and I am looking for a software to display data from a 0 – 5 V signal attached to the ADC of the Arduino (actually the output of a photodiode transimpendance amplifier). I was looking for a software which displays the data much in a way your screenshot looks like. Therefore I can hardly wait to see your progress and also the final result.

    Cheers

    Karl-Heinz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s