There are dozens of off the shelf components you can use for this. Dakota Digital makes a few that are reasonably priced, and reliable, in exchange for how primitive they are to set up (switches, and some degree of trial and error). You can do this with an Arduino as well, and the code exists floating around the web. I may even have it in my vault. There is typically a small lag between input and output, as you need to buffer the input signal (do a rolling count over a period of time) before generating the output signal. You might find a more clever way to achieve this.
|