I have this project to complete.
You are required to design a system which will control the operation of a saw in a mill. The saw will be replicated by a motor. Once a button is pressed (button should act as a switch) to turn on the saw, it should give the user a countdown from 5 to 0 when the saw is activated. The system however will not start after the counter reaches zero until the operator has demonstrated that his hands are away from the saw by pressing down on two buttons, proving his hands are clear of the cutting edge. If he has not done this during the 5 second window, the saw should not start and the system should reset. During operation, if it any stage either safety button is released, the motor should immediately stop and the system should reset.
I think I may have to use something called millis to do the countdown timer. Especially how to write the code in the globals and get it to make the switches do what they are supposed to do. I have also been advised to use else statements. I have a code done out and a system wired up but it does not work. I have zero experience in this so any advice is welcome.
Thanks in advance.