Just working on a little something for home where I want to be able to control two relays to switch on some lights in a mode dependent on the number of key presses from one single button.
Relay 1 controls some front lights, Relay 2 controls some side lights.
So what I want to do is something like this -
A) - If the lights are off, one key press turns Relay 1 on.
B) - If the lights are off, two key presses turns Relay 1 & 2 on.
C) - If either light is on, one key press turns both Relays off.
Couple of questions, would using the Keyboard Module be necessary? Is the only way to do this by using timers and checking for 'x' time between key presses?
Obviously there would also need to be a time out function from A to skiping B and waiting for C.
Any advice on which path to head down would be appreciated.