I need a low dc voltage circuit that will control a resistive load with a single push button. In order for the load to be powered the push button must be pressed 5 times within 1.5s and then the push button must be held down. Once the the push button is released, it can be pressed again and the load will be powered. Once the button is pressed 5 times within 1.5s again the device will be off and will require the button to be pressed 5 times within 1.5s to allow the load to be powered. Due to restriction of space, I need this as small as possible. What is the most space saving way to get this accomplished?
Thanks in advance.