Assignment 14


Interface and Application Programming


Write an application that interfaces with an input and/or output device that you made

Learning outcomes:

Have you:


Plot serial data with Processing ...

One of the most common resources to build nice interfaces nowdays is the Processing platform, so I'll first try it. This is the tutorial I'm following (which also links to this interesting serial communication tutorial).



First things first ... I need some data to read from the serial port; as I don't want nothing fancy I'll just write numbers oscillating from 0 to 100 with a simple arduino sketch. So the interface will receive them and plot them somehow.


And, with this processing sketch , I got to read the number stream and print it on the Console. Now to plot this data nicely.



So my first attemp was to plot the incoming byte declaring it as a 'int' variable, and I'm getting this no so cool graph; so I tried reading the data as strings, which gave this softer plot.




So above is a video showing how both platforms communicate between them through a serial port.