Code from the Fun with Arduino Class, and various experiments