attiny13v light sensor?

i need some help. i need to get a schematic & program for a attiny13v that will turn on a light when something passes over a light sensor, and then turn off if something passes over it again. has anyone done this before, or can it be done? just to let you know, i have done almost nothing with microcontrollers before.

thanks for your help!

try googleing it theres plenty of schematics on there
frollard7 years ago
I'd suggest the keep-it-simple approach:

use a light sensor, and have it drive a latching relay.