Author Topic: Why can't I see bouncing of switch on oscilloscope screen?  (Read 3248 times)

0 Members and 1 Guest are viewing this topic.

Offline denizoguzTopic starter

  • Newbie
  • Posts: 3
  • Country: tr
Why can't I see bouncing of switch on oscilloscope screen?
« on: April 05, 2019, 08:10:52 pm »
I'm trying to view bouncing of a simple switch on the oscilloscope. I have prepared a simple breadboard circuit (power->switch->resistor->ground). The problem is, it is displayed as perfect square/rectangle on the scope. I have attached a photo of scope screen and circuit. Please help me to identify why I can't catch bouncing of the switch on the scope. I don't think it this is a non-bouncing switch. As you can see it is rising 0 to 9v within 150uSec and staying there. I have tried a few different switches. Resistor in the picture is 220ohm 0.5w resistor.
 

Offline denizoguzTopic starter

  • Newbie
  • Posts: 3
  • Country: tr
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #1 on: April 05, 2019, 08:12:29 pm »
Sorry, I forgot to include other attachments. Here they are.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 10173
  • Country: gb
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #2 on: April 05, 2019, 08:19:34 pm »
Are you sure you are triggering on the switch closing - they sometimes open cleanly but always bounce on close. Try triggering on the falling edge.


P.S. Welcome to the forum.  :)
Best Regards, Chris
 
The following users thanked this post: denizoguz

Offline Nerull

  • Frequent Contributor
  • **
  • Posts: 694
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #3 on: April 05, 2019, 08:20:24 pm »
Are you capturing on a slow timebase and then zooming in? That nice slow linear transition between 0 and 9V indicates a lack of sample points between them. It's drawing a smoothed approximation.
 
The following users thanked this post: newbrain, denizoguz

Offline denizoguzTopic starter

  • Newbie
  • Posts: 3
  • Country: tr
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #4 on: April 05, 2019, 08:25:59 pm »
I'm trying to view bouncing of a simple switch on the oscilloscope. I have prepared a simple breadboard circuit (power->switch->resistor->ground). The problem is, it is displayed as perfect square/rectangle on the scope. I have attached a photo of scope screen and circuit. Please help me to identify why I can't catch bouncing of the switch on the scope. I don't think it this is a non-bouncing switch. As you can see it is rising 0 to 9v within 150uSec and staying there. I have tried a few different switches. Resistor in the picture is 220ohm 0.5w resistor.


Yes. I have just learned zooming in and capturing is different than capturing first and zooming after. I'm having difficulty to capture when I zoom on time scale. I can set my scopes trigger to capture on rising edge and it is doing it but when I do it is stopping recording immediately. That is I can't see what happens after rising edge. It just stops.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8526
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #5 on: April 06, 2019, 01:36:58 am »
That is I can't see what happens after rising edge. It just stops.
Change the trigger position.
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 7012
  • Country: ro
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #6 on: April 06, 2019, 01:54:13 am »
Is that a 220 Mega Ohm resistor (red red violet)!?!

If so, then such a big resistor can be considered an open circuit, because the oscilloscope's probe impedance is usually much lower (usually 1 Mega Ohm for x1 probes, or 10 Mega Ohms for x10 probes).  1 or 10 Mohm together with the few pF parasitic capacitance will make a great hardware RC debouncing circuit, so all you'll see on the oscilloscope will be a ramp.

If you want to see the dirt transitions of a switch, you need a much lower resistor.  Try for example with a 2.2 Kohm (red red red), or lower.  You'll see a ragged edge over about 5-50 ms, depending on the switch quality.
 
The following users thanked this post: denizoguz

Online radiolistener

  • Super Contributor
  • ***
  • Posts: 4135
  • Country: 00
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #7 on: April 06, 2019, 05:10:41 am »
I was going to say that. The slow rise time tells me there's an RC circuit, parasitic or intentional.

probably his oscilloscope has too small memory but he record sample with very slow timebase and then zoomed it while in the hold mode.
So, there is just two sample points - low and high and line between them.
Bouncing happens somewhere in the middle of that line, it just didn't captured due to small memory and slow timebase.

Due to a small memory, there is insufficient horizontal resolution in order to see the bouncing.
There is need to capture it with more fast time base.

This is the same as trying to use zoom in the picture viewer in order to see microbe on the low resolution photo, where actual microbe size is much smaller than one pixel. With zoom you will see just a big pixel :)
« Last Edit: April 06, 2019, 05:22:36 am by radiolistener »
 
The following users thanked this post: denizoguz

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7855
  • Country: au
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #8 on: April 06, 2019, 01:00:12 pm »
Surely there must be a way to do this with a modern DSO.(I could understand the early ones having problems).
I've observed (obviously not recorded) switch bouncing with a very basic analog 'scope by winding up the intensity control & running the time/div at a very low speed.

Wouldn't "roll" do this on a DSO----it seems to have no other use!
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23099
  • Country: gb
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #9 on: April 06, 2019, 01:35:29 pm »
Best way to do this on a modern DSO is use single trigger mode. Set it to trigger on the first leading edge just above the normal trigger voltage. Make sure sample rate is as high and sweep is relatively slow. 1ms/div -> 200uS/div approx if you dont have lots of sample memory. 2.5kpts is enough!. Hit SINGLE, whack the switch. Then use the timebase control to zoom into the event.

To catch bounces you should probably use a pull up to 5V. I had the stuff on the bench already so here's what you should see:

Note the trigger position and the fact I've triggered on leading edge on a pull up. That will eliminate any events where the switch does not bounce (it does happen as well!)

Experimental setup. Resistor is 1k - was just there on the bench. Switch is a SPDT momentary on/on - first one out of the box.



Scope output:

« Last Edit: April 06, 2019, 01:40:56 pm by bd139 »
 
The following users thanked this post: denizoguz

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Why can't I see bouncing of switch on oscilloscope screen?
« Reply #10 on: April 06, 2019, 01:41:54 pm »
Surely there must be a way to do this with a modern DSO.

Yes it's dead easy.
Resistor about 1K to 10K.
X speed about 5ms/div.
With the trigger on AUTO set the trigger LEVEL mid-way between the high and low trace levels of the signal, then switch the trigger to NORMAL. Every switch change will show a capture, if it's bouncing.


Wouldn't "roll" do this on a DSO----it seems to have no other use!

I think it's very useful for slow changing signals, you get to choose when to press STOP by eye.
« Last Edit: April 06, 2019, 01:49:08 pm by StillTrying »
.  That took much longer than I thought it would.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf