Hi everyone, I am pretty new at this, I hope someone can help me learn a bit more.
If I have two sensors, say one for metal and one for non-metal and the output of these two sensors are inputs to drive a stepper motor one way or the other, for a sorting application. When the motor drives I don't want the sensors to effect anything until the arm attached to the motor goes to its position and then back again. I don't want the arm to be switching the sensor as it moves.
I was thinking about the delay function but I think that would delay the entire program for the set time. Is there any way of 'latching' on the output to the stepper motor for a set time so it could complete its action and return back to its starting point to identify the next object? Or is there a way to take the sensors out of the equation for a set time without effecting the output to the stepper motor. Sorry if this is a stupid question or has been covered before.
Any help at all would be much appreciated.