For the servo section of Tom Igoe's Intro To Physical Computing at ITP, I built a motorized locker door out of Legos. My Arduino microprocessor is taped to the locker wall, just out of site, and a potentiometer is wired through to where the lock would normally be. From here it'd be pretty easy to program an actual combination lock using either the potentiometer or an analog or digital sensor. Try it.