Page 1 of 1

Flowcode Demo Switch debounce

Posted: Sat Jan 29, 2011 1:53 am
by Bobw
I managed to write a small program to count up or down depending on the push button that is pressed. The delay for de-bouncing, is this more for when running the simulation than actual practice? I already have a small delay in the program so that the count does not go crazy when clicking the button with the mouse.

Bob

Re: Flowcode Demo Switch debounce

Posted: Sat Jan 29, 2011 10:57 am
by medelec35
When I use a delay for switch debounce, I place delay so that there is only a delay after switch press has been detected.
That way, rest of program is not slowed down if no switches are pressed.
Change the delay to suit.
I believe it would be best to keep a delay of some value in practice, since as switches get older, bounce gets worse.