You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is for a particular instance of a switch/button of the original poster. If someone else wants to test the same switch model, they should create a new issue.
The original poster can add additional test sessions to this issue (if they wish) by adding a comment.
Experiment
Ran this experiment right after #16. Connected cap and oscilloscope to grab captures. I think too much use with the cap in parallel was causing damage to the switch. Very long bounces.
I also made a note that tests 119-122 should be ignored. The button kept glitching when held down. Never had this problem before. Sign of damage?
Continuing on from what we saw at the end of testing #16, we see release max bounces are 3x that of press max bounces.
Before adding the cap, presses would bounce more.
NOTE! Adding a cap, delays the release bounce times by about 10ms (see below image) before MCU notices.
The time constant for the 332nF capacitor to charge up through 35.7k ohm resistor is around 11.85ms.
Discharge time constant calculation: 332nF (DMM measured) x 0.3 ohms (I can't measure very low on my DMM) = 99.6ns.
Below capture shows charging up time constant. Estimate at 11.98 ms for 1 tau.
Some Oscilloscope Captures
Zoomed in far:
These were a pretty common response:
Every few times, we would get a response like this though:
20 us/div
This one was really cool. It really shows that there was a super brief contact, and then didn't contact again until around 97us.
Super interesting to note (and maybe problematic) that Arduino sketch didn't record what we expected. If we go 69us back from large falling edge, we see a small noise spike. Could that have been the initial trigger recorded by the Arduino?
The initial noise at the moment of press just barely went below the approximate voltage required to read a low signal (2.145 vs approx 2.2v):
The transition noise and ringing was detect on this one:
Those all line up well except for the 19us. There's no trace of anything on the scope that explains that. Note that it was picked up by the rising edge hardware counter. The picoscope was sampling every 40ns (25 MS/s). It is only a 10 MHz scope so it is possible that it missed it.
Please note:
Experiment
Ran this experiment right after #16. Connected cap and oscilloscope to grab captures. I think too much use with the cap in parallel was causing damage to the switch. Very long bounces.
I also made a note that tests 119-122 should be ignored. The button kept glitching when held down. Never had this problem before. Sign of damage?
Switch Info
See #6
Test Session 1
Setup
Test Setup Photos:
Same as #16
The scope was connected just above Arduino headers. You can see some of the jumper wires have extra insulation stripped off for this.
Results
📄 Raw Data
332nf.txt
You can graph/analyze the data here.
🖼️ Summary Image
🕵️ Your Observations (optional)
Continuing on from what we saw at the end of testing #16, we see release max bounces are 3x that of press max bounces.
Before adding the cap, presses would bounce more.
NOTE! Adding a cap, delays the release bounce times by about 10ms (see below image) before MCU notices.
The time constant for the 332nF capacitor to charge up through 35.7k ohm resistor is around 11.85ms.
Discharge time constant calculation: 332nF (DMM measured) x 0.3 ohms (I can't measure very low on my DMM) = 99.6ns.
Below capture shows charging up time constant. Estimate at 11.98 ms for 1 tau.
Some Oscilloscope Captures
Zoomed in far:
These were a pretty common response:
Every few times, we would get a response like this though:
20 us/div
This one was really cool. It really shows that there was a super brief contact, and then didn't contact again until around 97us.
Here's the Arduino recorded data:
Super interesting to note (and maybe problematic) that Arduino sketch didn't record what we expected. If we go 69us back from large falling edge, we see a small noise spike. Could that have been the initial trigger recorded by the Arduino?
The initial noise at the moment of press just barely went below the approximate voltage required to read a low signal (2.145 vs approx 2.2v):
The transition noise and ringing was detect on this one:
Another interesting one:
Arduino missed the first low transition. It triggers on the middle pulse.
Those all line up well except for the 19us. There's no trace of anything on the scope that explains that. Note that it was picked up by the rising edge hardware counter. The picoscope was sampling every 40ns (25 MS/s). It is only a 10 MHz scope so it is possible that it missed it.
This one the Arduino captured perfectly:
The text was updated successfully, but these errors were encountered: