Pages: [1]   Go Down
Author Topic: Debounce.  (Read 465 times)
0 Members and 1 Guest are viewing this topic.
Cebu City
Offline Offline
Newbie
*
Karma: 0
Posts: 34
Hi im new to arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can we debounce a microphone? smiley
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why would you bounce it in the first place?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Cebu City
Offline Offline
Newbie
*
Karma: 0
Posts: 34
Hi im new to arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why would you bounce it in the first place?

the output values given are spiking up and down in the serial monitor if it detects blow,.
generally the mic i have been doing is a blow sensor.
i want to make the reading high if it detects blow, and low if otherwise.
does software debounce gives me the result i want to?
Logged

Cebu City
Offline Offline
Newbie
*
Karma: 0
Posts: 34
Hi im new to arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...and does software debounce applicable in the mic?
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you think debounce is?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Cebu City
Offline Offline
Newbie
*
Karma: 0
Posts: 34
Hi im new to arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

as what i have learned sir, when i use debounce on switch/buttons, debounce eliminates the bouncing of the switches and making sure that one digital signal can be registered within the duration of a given time. am i right thinking this? is the debounce useful in my mic module?
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Switch debouncing works because switches physically bounce.

Microphones don't bounce.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11159
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why would you bounce it in the first place?

the output values given are spiking up and down in the serial monitor if it detects blow,.
generally the mic i have been doing is a blow sensor.
i want to make the reading high if it detects blow, and low if otherwise.
does software debounce gives me the result i want to?

Debounce is a reasonable term for what you are trying to do, but this is not typical debouncing. Debouncing usually consists of waiting for an input to settle into a steady state so that transient changes are suppressed. In your case you would need a different algorithm, because in effect what you're really trying to do is smooth an intermittent signal. You will need to decide what constitutes 'blow'. Do you trigger on a single spike, or on a number of spikes close together, or what?
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: