[Eric] sent in this very informative writup on how to use Photo interrupters. These things can be used for many things, he lists pellet dispensing and limit switches. He found one in his junk box and realized he knew very little about it. After some exploring and research, he’s here to educate the rest of us. There’s a good breakdown of the circuit itself which is pretty simple as well as a test circuit and some sample code.