Author Topic: I can't produce a bounced switch signal. What am I doing wrong?  (Read 1472 times)

0 Members and 1 Guest are viewing this topic.

Offline billbyrd1945Topic starter

  • Regular Contributor
  • *
  • Posts: 203
  • Country: us
Bought oscope to see difference between bouncing and debounced switch. Began with cheap breadboard buttons to get my "before" tracing. Problem is-- I can't seem to find just the right combination of settings to see any bounce. No need to wire in a debounce circuit until I have a nasty button to compare it to. Every one I try looks clean on my scope. I'm assuming that I'm doing something wrong. Any suggestions would be appreciated. Scope is Siglent SDS 1052DL+, 50MHz, 500MSa/s, with settings of 1.0V, M25.0us. Thank you
« Last Edit: May 06, 2018, 07:37:49 pm by billbyrd1945 »
 

Offline taydin

  • Frequent Contributor
  • **
  • Posts: 520
  • Country: tr
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #1 on: May 06, 2018, 08:06:02 pm »
To see the signal fluctuations you are expecting, you need to use a switch that is REALLY bouncing. Switches with spring loaded contacts are particularly bouncy and will give you what you want.
Real programmers use machine code!

My hobby projects http://mekatronik.org/forum
 

Offline mcinque

  • Supporter
  • ****
  • Posts: 1129
  • Country: it
  • I know that I know nothing
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #2 on: May 06, 2018, 08:26:18 pm »
To see the signal fluctuations you are expecting, you need to use a switch that is REALLY bouncing.
AFAIK, any switch bounces due to its mechanical nature.
Even with 1MHz bandwidth "toy" oscilloscope, you MUST see the bounces.
Are you using one shot trigger? Is averaging disabled? How is set the "Acquire" menu?
And just to test the oscilloscope settings, try to emulate the bounces by lightly rub the probe tip over the positive terminal of an AA battery or a psu (with the ground clip connected to GND), you should definitely see them.
« Last Edit: May 06, 2018, 08:35:43 pm by mcinque »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22313
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #3 on: May 06, 2018, 08:39:58 pm »
Two things:

1. Tactile pushbuttons tend to be surprisingly well behaved, and I suppose probably slide switches too (if they aren't dirty?).  Maybe try a power switch, or a toggle kind?

2. One edge tends to be bouncier than the other, usually closing I think.

Also, the time constant arises from the, well, contacts bouncing -- whatever their mechanical resonances are.  Usually somewhere in the milliseconds, so look on a similar time scale. :)

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #4 on: May 06, 2018, 09:55:21 pm »
I am afraid that you are not using resistor in your test circuit and pull-down resistor is 1Meg of your scope input. Most likely that's why you do not see bounce.

Try circuit below, with 470 ohm resistor. Note that low pull-up value is for bounce testing only - to get fast signals. Usually you would use >= 10k pullups.


« Last Edit: May 06, 2018, 11:09:00 pm by ogden »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11705
  • Country: my
  • reassessing directives...
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #5 on: May 06, 2018, 11:23:58 pm »
Try increase timescale to the order of ms /div
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 
The following users thanked this post: billbyrd1945

Offline billbyrd1945Topic starter

  • Regular Contributor
  • *
  • Posts: 203
  • Country: us
Re: I can't produce a bounced switch signal. What am I doing wrong?
« Reply #6 on: May 06, 2018, 11:48:16 pm »
Ah ha! Thanks to everyone. I apologize for not including a pic of my circuit. For the record-- I was using 10k for pull down. The 470r made sense to me and the quick brush across the AA battery was a great solution as well. Did them both, got my bounce. Thanks much. EEVblog is the best!
« Last Edit: May 06, 2018, 11:52:48 pm by billbyrd1945 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf