Aurdino uno r3 to 5v relay

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...
(cause it still make no sense)


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.


  • Spirit