I am new to Arduino and would like to make this work but do not know enough about code to make this work. Any help would be appreciated.
I have attached a scematic of what I think it should be, but I am not an engineer.
Inputs:
Relay 1
Relay 2
Push Button 1
Outputs:
Relay 3
LED1
Function
When RELAY 1 is closed for two seconds LED1 turns on
When RELAY2 is closed for two seconds LED1 turns off
When PUSHBUTTON1 is pressed is will turn off LED1 and RELAY3 will be energized opening the N.C. connection and stays.
When PUSHBUTTON is pressed again LED1 will turn on and RELAY3 will be de-energized closing the N.C. connection.