this sounds like something that might be more easily achieved with some kind of mechanical solution, rather than electronic. try to think of some way to keep two wires or contacts separated by something that will move and stay out of the way easily when the object moves the first time, maybe just simply using gravity to help out, that's probably the easiest way to solve it
I'm sure you could come up with an electronic solution using a mercury switch and a 555 timer and some circuitry if you wanted to get fancy, too
|