Laser beam trigger program help

Hi all,

I have a laser trigger using a photo resistor set to run a program once the beam is broken.
If the beam is again broken during the program, is there any way to start the program from the start each time the beam is broken?
I looked into interrupts but not sure if this is right!!

Many thanks

Yeah, use interrupts.

Then it can sense the beam while the program is running, then you can get it to return to the start of your sketch.


Ahh ok :slight_smile:
Can i use an analog pin for the interrupt or does it have to be either digital 2 or 3?