The light/dark sensor on that page is pretty much what you want.
Basically the op amp will be a comparator. When the voltage difference between pins 2 and 3 is greater than 1.2 (if I remember) then pin 6 outputs. Single power supply is all that is needed with this setup.
Bookmarks