Pulse detection

Hello

I'm working on project and i need to detect a pulse of the previous user.
So if the previous user send a pulse I need to detect it so that my project can start working and if it doesn't send a pulse it does nothing but the pulse is not a contonious pulse it is a pulse that has been send once and once the pulse has been detected than mine project can start.

How is the pulse sent and received?

If it is a digital pulse then is it active LOW or active HIGH? Which pin is it wired to? Once you figure that out then it is easy.

It is a digital pulse but the thing that I am thinking about is: if it is a pulse that is send once and how to detect it and then you don't have to worrie aboutit anymore. because if you use a if statement it just detect it but once the pulse isn't HIGH anymore then the program stops. can you prevent it from stopping or not or do you have to get a constant signal.

the pulse is not a contonious pulse it is a pulse that has been send once and once the pulse has been detected than mine project can start.

Your first job is to detect the pulse. What code do you have to do that? The state change example of the 02 Digital ide examples may be useful to you.

if it is a pulse that is send once and how to detect it and then you don't have to worrie aboutit anymore

Once you detect the pulse you can manage the program flow with a boolean control variable. You can call it pulseDetected.

Initialize its value to false. Then when the pulse is detected you change its value to true and let the state of that variable to allow the rest of the program to run.

if(pulseDetected  == true)
{
// run what you want to do after the pulse is detected
}

Thnx for the info I think it will work with information that you gave me thanks a lott

you could use an interrupt to detect an edge and set a boolean

You say, "previous user". Does the Arduino get reset or powered down between the time of the pulse, and the time you need to sample it?

If the question seems weird, realize that the things that some people try to do and post about here, are sometimes a lot weirder.