Arch1391-2011-Assignment2 is a project mainly written in Java, it's free.
Arduino and Processing Code