"Hi,
Would need help with a code for Arduino Uno. It will be placed on a machine, so it needs to be reliable (I just can't get it right. I think it's easy for someone who knows.
My Arduino should control 4 relays with buttons.
When I press button 1, the following should happen:
Relay 1 (close grip) for 1.5 seconds, then relay 2 (extend) for 3 seconds, then relay 3 (open grip) for 1 second, then relay 4 (retract) for 3 seconds, then start over again.
IMPORTANT: When I release the button, everything should pause immediately and continue there i stoped then i press it again.
When I press button 2, the following should happen:
Relay 3 (open grip) for 1 second, then relay 4 (retract) for 3 seconds."
For those who are viewing this. This is just a simple correction to the parent post, It'll take the main post and rewrite it so others can understand...
Hello,
I would like help coding my Arduino Uno. It will be used on a machine, so it needs to be reliable.
The Arduino should control 4 relays with buttons, when I press button 1:
relay 1 will be powered for 1.5 seconds,
relay 2 will be powered for 3 seconds,
relay 3 will be powered for 1 second,
relay 4 will be powered for 3 seconds,
then it'll start over again.
IMPORTANT: When I release the button, everything should stop immediately and if I press it again it'll start back up where I stopped it at.
When I press button 2:
relay 3 will be powered for 1 second, then
relay 4 will be powered for 3 seconds.