Collecting data from a microphone
I have a regular mic, and have never used one before. How should I collect data from it? I would like it to detect sound levels, something loud to something soft. I assume the mic bring up resistance when the noise is louder. Should I use an RCTIME circuit? Would a .1 faram capacitor work?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Somebody said...
-Never Underestimate the power of human stupidity.
Comments
Does it have any writing on it ?
Could be: Piezo, condensor, moving coil, high-impedence, low-impedence, etc...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"Remember, you are unique, just like everyone else." Unknown.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
http://www.radioshack.com/product/index.jsp?productId=2103751&cp=2032058.2032230&cp=2032058&f=Taxonomy%2FRSK%2F2032230&categoryId=2032230&kwCatId=2032058&kw=microphone&parentPage=search
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
If you're not familiar with it, you may want to look into using "TinyURL" for long links as you offered above. That service can be found here:
http://tinyurl.com/
Your long URL can be substituted with the following by using it:
http://tinyurl.com/q7jls
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
That type of microphone will need a series resistor to a positive voltage.
Something like:
Now the audio will be riding on a certain DC bias voltage, so you may want to run it thru a capacitor to remove the bias voltage.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"Remember, you are unique, just like everyone else." Unknown.
Post Edited (Bean (Hitt Consulting)) : 7/20/2006 5:25:07 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"Remember, you are unique, just like everyone else." Unknown.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
GND is just an abbreviation for GROUND ("earth" in some quarters). AKA the negative terminal.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
I can't get any response from tapping or yelling into the mic. I'm using the schematic you suggested with a .01 faram capacitor on the RCtime program.· I would like exact·RCtime·numbers·showing, like 3445.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
which stands for analog to digital converter...
RCtime is a kind of ADC but quite limited in use...
You may need a serial one for easy use with BS2XX...
MAXIM semi offers a full variety of ADC... Go check for yourself...
Provas, Greece
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
ADC can inderface with almost any microcontrollers... Serially is only a way...
It can be serial asycronous, serial sycronous and parallel...
what convinience you the most is a serial asycronous interface cause you mess up with only one wire (or maybe two(flow control pin) and connecting all devices to the ground... Serial sycronous uses three wires and has·minimal crashdown factor contrasting to asycronous... Parallel is the less convinience as you may waste too many pins but is much faster than any other connection...
Better look for serial ADC... most of them are asycronous and you can get a very good 16bit resolution from some with less expense...
what ever else you need just post...
Provas, Greece
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--
Typically, an ADC is an electronic device that converts an input analog voltage to a digital number. The digital output may be using different coding schemes, such as binary and two's complement binary. However, some non-electronic or only partially electronic devices, such as shaft encoders, can also be considered as ADCs.
From Wikipedia. So doesn't a ADC take the analog voltage data I would like, and convert it to binary data, like 1's and 0's?
Do different modules come predefined, and say might convert all analog even numbers to 0, and odd numbers to 1? Or can you program it, or have the stamp send it a signal, which tells it what numbers are binary 1's, and which are 0's?
Please remember that I'm hopeless at terminology.
asycronous??
sycronous???
So I should hook up one of the serial ADC's to the BOE's SCB?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
You say that if yell at it you get some reading... Now look...
You went to too deep water very very early... Yes ADC converts alanog signals to logic binary... This row of binary represents a number... In order to be able to get this row you must have a input on the ADC input pin... But you can't just connect the mic to the ADC cause you might get a very small number that won't exited some very very low limits.... You also need a circuit that amplifies your mic ANALOG readings... What's why preamplifiers are for... The get an analog signal and amplify it... The output of preamplifiers is also an analog signal but "stronger" that the first one... What I mean by this... Well imagine a·everyday·man... He can lift 5kilos... But after some exercise he can lift 100kilos... Now the exercise is the preamplifier... Without it the mic can give you some reading through the ADC but these numbers won't be great even if you yell at it... But with the amplifier by yelling you get a great number at the ADC reading as well as wispers(very·"low" noices)·can give reading... So you can make your BS2 hear more things, in other words you extend it's hearing range. But also preamplifiers enables you to adjust this ability... The output of the preablifier may be too high for the ADC to recognise so a range of noise isn't audiable by the stamp, it just gets peak signals... So with a variable resistor you can control it's sensitivity... So that yelling gives the greatest numbers and wispers give only some small ones...
With simple words you need to connect the mic first to a preamplifier then the preamplifier to the ADC and finally the ADC to the stamp...
If you connect the mic to the ADC without the amplifier you might neven get readings...
If you connect the mic to the stamp you get nothing...
And if you connect the mic with amplifier to the stamp you only get 1 or 0 but you can also burn the pin if the signal is too high...
What you want is able to be done but you need·much help (that's why I'm answearing)... You can do this... and I'll try to make a good circuit for you... Until then try to understand the basics and tell me what you did understand...
Provas, Greece
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rule your Destiny-
--Be Good. Be Bad. Be Provas--
If I understand your question, then no, the Stamp does not have an ADC on each of its pins. Its pins will only respond to a "0" or a "1" as you put it. I agree with Provas that it sounds like you are trying to create a complex project without learning the underlying "simple" principles first. Have you gone thropugh the "What's a Microcontroller?" text (free download), yet? It provides good guidance and explanations of some of the functionality of the Stamp (including what it "sees" as a "0" or a "1"), as well as some good basic electronics theory and education.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
ADC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
And uh-oh...
I said that I don't get any show of 1's when I yell.
-I can't get the mic to pick up sounds and noise, only taps.
-I can get one's and zeros from this by tapping it, but not by yelling at it
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·