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.

  • 4
    \$\begingroup\$ Use a PIC10F200 in the MC package for the state machine you need. The load current wasn't specified, so that's another matter. \$\endgroup\$
    – jonk
    Apr 12, 2018 at 20:39
  • \$\begingroup\$ As @jonk says, use a cheap microcontroller with an internal oscillator. There are plenty on the market. An 8-pin device will do this nicely for under a quid, compiling the software with manufacturer's free development tools. \$\endgroup\$
    – TonyM
    Apr 12, 2018 at 21:31

1 Answer 1


Credit to @jonk for this (see above comment). This is just a sketch that illustrates my interpretation of his comment.

While not meant to be ready to wire, it's provides a place to start should you decide to take this approach.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.