I'm new here and also to arduino so maybe my question is stupid or something, sorry for that.
I have bought an Arduino Uno + a 4 channnel Relay Module
Now here is the problem...
In my car I have a remote central locking system, on the remote I have an extra button for accessories (trunk release) so if I press that button there is 1 wire that will give the option to ground a power circuit for 2/3 seconds. It is kind of a momentary negative pulse to ground something on, like the 5v port of the arduino. If I look at the "Button" example from this site and then invert that and leave the button out, I could make a closed circuit.
So connecting 5V with 10K resistor in between to port 2 and from port 2 a wire to my remote central locking.
In this 2/3 seconds the arduino has to start a sequence:
Start relay 1 Delay 500 Start relay 2 Delay 100 Start relay 3 Delay 1000 Start relay 4 Delay 1200 Stop relay 4
And the relays have to stay in this position until the button is pressed again and there is another pulse of 2/3 seconds, the relays have to turn of all together.
I have absolutely no idea how to write this code, could someone help me with this?
Big thanks in advance!