https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing
And also the "Arduino cookbook" from Michael Margolis