trigger inputs not de-bounced?
-
Hi,
I connected a typical microswitch (normally closed) to an input on my just arrived 6HC to use as a trigger.
It is running firmware 3.4.6.
M950 J3 C"0.io5.in" M581 P3 T2 R0 S1
I created a simple trigger2.g file for testing that simply used M118 to output some text.
While it works the trigger is often responding to both the contacts opening (switch pressed) and the contacts closing (switch released).
Is that the expected behavior when using a dry contact on the input?
Thanks much.
Frederick
-
@fcwilt I had the same problem some years ago. The trigger inputs are not debounced.
You have to program a "software debounce" with a delay and then read the input again. -
Thanks for the feedback.
I can certainly do software de-bounce.
I worked on the issue a bit after posting and realized that I really would like the trigger to fire on every change of state of the micro-switch. That is going to take a bit of hardware.
Frederick
-
@fcwilt Ok. I think it should be possible with a "Schmitt-Trigger"...
-
@cosmowave said in trigger inputs not de-bounced?:
@fcwilt Ok. I think it should be possible with a "Schmitt-Trigger"...
That brings back memories of using Texas Instruments 74LS series ICs in DIP packages.
Frederick
-
@KenW said in trigger inputs not de-bounced?:
Somewhere I have a stack of plastic and stainless steel templates for logic and electronic circuits.
I had forgotten about those what with the "rise" of computer apps like KiCad.
As well as a few storage boxes of discete logic chips.
I have two draws full of current electronic devices that I use for making things using Arduino boards and the like.
I used the rolls of paper long ago when I painted trim along baseboards.
Rolls of paper? Drafting paper? For drawing schematics?
Frederick