Presentation is loading. Please wait.

Presentation is loading. Please wait.

Graphing Using Processing

Similar presentations


Presentation on theme: "Graphing Using Processing"— Presentation transcript:

1 Graphing Using Processing

2 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

3 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)

4 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

5 Modifications In Processing modify the sketch as follows:
Change the Baud rate from 9600 to 57600 Only plot every 250th 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: Expose the sensor to different temperatures and see the change on the graph

6 Example Graph Output


Download ppt "Graphing Using Processing"

Similar presentations


Ads by Google