Perhaps this would be a good reference if you haven't seen it yet:
http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard