Graphing Using Processing Processing 101 Processing is an

  • Slides: 6
Download presentation
Graphing Using Processing

Graphing Using Processing

Processing 101 �Processing is an extremely powerful open source software for creating graphics �It

Processing 101 �Processing is an extremely powerful open source software for creating graphics �It is very useful for visualizing large amounts of data �Android apps can even be written in Processing! �The processing language is a mix of C and Java allowing for a large number of external libraries to be included

Installing Processing �At the time this course was created the current version of Processing

Installing Processing �At the time this course was created the current version of Processing was 1. 5. 1 �It can be downloaded from course site or directly from processing. org �To install Processing simply un-zip the directory to a convenient location (just like the Arduino IDE)

Experiment �We are now going to use Processing to create a graph of the

Experiment �We are now going to use Processing to create a graph of the data from the temperature sensor over time �In the Arduino IDE there is a graphing example which will serve as the basis (File->Examples>Communication->Graphing) �We can use our existing Arduino code from the prior step �Copy and paste the commented out Processing code from the Arduino example into a blank Processing sketch

Modifications �In Processing modify the sketch as follows: �Change the Baud rate from 9600

Modifications �In Processing modify the sketch as follows: �Change the Baud rate from 9600 to 57600 �Only plot every 250 th data point �Under the map command change to max value from 1023 to 100 �Read more about the processing commands used in this sketch here: http: //processing. org/reference/ �Expose the sensor to different temperatures and see the change on the graph

Example Graph Output

Example Graph Output