Do you want the latch to change state (toggle) each time you double-click the pushbutton or do you only want it to react the first time you double-click and then stay where it is until it's reset by something else?
Do you have to use a SPST switch or can you use a DPDT?
--
OK. I just posted a basic circuit for you on
alt.binaries.schematics.electronic under the same subject as this
post.
If you need a circuit description or you need help with the timing
components and you know how much time you want between knocks and sets
of knocks post back (either here or to abse) and I'll help you figure
it out.
The sensor on its own gives lots of outputs as per your first example. When in the latch schematic I mentioned in my original post it is debounced slightly so it acts more like your second example.
The ultimate idea is to have a circuit which toggles on or off when the sensor picks up a double knock in quick succession on a surface (exactly like a double knock on a door).
--
I made a mistake on the schematic :-(
I've got the trigger input of the 7555 connected to Q of the second
half of the 4538 when it should be connected to Q\. Also, in order to
get you the 2s between successful sets of pairs of knocks I'll have to
add another one-shot. I'll fix it and post the values for the timing
components some time tomorrow.
Maybe I've missed a crucial post, but the requirement still seems ill-defined to me?
There seem several facts not yet specified, such as:
What frequency is vibration?
What is voltage supply
Will vibration sensor signal have full amplitude of voltage supply?
If we call the period of vibration a 'knock', how long can each knock be?
Should that matter?
Should a *very* brief knock (possibly due to an accidental or premature, or just external noise) count?
What happens with say 3 successive knocks within 1 s? etc, etc.
I've tried to illustrate these in
formatting link
Turning to the circuit, assuming we can tighten up the spec along the lines above, intuition says a much simpler approach than John's ought to be possible. (Although I haven't got one to offer .)
Thanks, that's clarified it nicely for me. Look forward to seeing the circuit.
Your summary also helped crystallise this question to the OP: why not simplify and toggle with *one* (significant) knock? By definition, you're going to get a toggle with 2, 3, 4 or maybe even more rapid knocks, so why single out 1 for exclusion?
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.