Source code for Physical Computing interactive from Make Things Do Stuff. http://makethingsdostuff.co.uk/make/physical-computing