Go to Post Holy Underwriters Laboratories Industrial Safety Awards Batman! - AndyB [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2008, 23:12
Tim Arnold's Avatar
Tim Arnold Tim Arnold is offline
1902 UCF Mentor; 1523 MARS Alumni
FRC #1902 (Exploding Bacon)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 460
Tim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond reputeTim Arnold has a reputation beyond repute
Send a message via AIM to Tim Arnold Send a message via MSN to Tim Arnold
Microphone?

This is an odd request, but I'm curious if its possible / feasible to hook up a microphone to an analog input. Not for recording or anything, purely to measure volume.

Anybody heard (no pun intended) of something like this being done before, or have ideas on how to do it?
  #2   Spotlight this post!  
Unread 13-02-2008, 23:21
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Re: Microphone?

it sounds feasible, but i haven't tried anything like that
__________________
, Sean

TEAM 867
-electrical
-pneumatics
-programming



2008 Autodesk Visualization Grand Prize Winner
  #3   Spotlight this post!  
Unread 14-02-2008, 00:37
Ian G Ian G is offline
BUILD SUCCEEDED
FRC #2415 (WiredCats)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2004
Location: Atlanta
Posts: 23
Ian G is an unknown quantity at this point
Send a message via AIM to Ian G
Re: Microphone?

I think you would need some sort of amplifier circuit, so the RC gets a range between 0 and 5 volts. But it would definitely be feasible, though I could see it getting a lot of noise (ha ha).

Just curious, what do you want to measure with your microphone.
  #4   Spotlight this post!  
Unread 14-02-2008, 01:03
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Microphone?

I believe your best bet would be to find a pre existing sensor which suits your needs.
If you simply want to measure sound level and don't see it going much over 90decibels then you might want to pillage a Lego NXT sensor which I believe works on a 5v system.
Unless you absolutely need specific sound recognition I would recommend going with a decibel meter rather than a microphone as microphones don't simply measure "loud" but instead send a somewhat complex audio signal.
  #5   Spotlight this post!  
Unread 14-02-2008, 01:13
Mr. Freeman Mr. Freeman is offline
Put better title here.
AKA: Kellan
no team (CSM Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Colorado
Posts: 198
Mr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to behold
Re: Microphone?

Wouldn't you end up getting a sine wave (or similar)? Seems to me that you would have to sample the analog input fast enough to get a reliable set of data.

I remember talking to someone about oscilloscopes and they mentioned that your sample rate (samples per second) has to be roughly double your frequency (Hz) in order to get an accurate idea of the period of the sine wave. If you draw it out (draw a sine wave and then plot two points per period, connect those) you see that depending on where those points fall, you may not get a reliable measure of the amplitude of the sine wave.
Wikipedia says that the lowest audible frequency (for humans) is 20 Hz, meaning you would need a sample rate of at least 40 samples/second. Of course, most sounds you would want to measure are much above this.

I'm not sure how fast the robot controller can actually sample the analog inputs, so this may or may not work.
__________________
"Time is an illusion, lunchtime doubly so."
-Douglas Adams
“Why is it that I can walk into Wal-Mart and buy boxes of bullets and black powder, but I can’t buy potassium perchlorate to do science because it can also be used to make explosives?”
-Theodore Gray
  #6   Spotlight this post!  
Unread 14-02-2008, 01:19
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Microphone?

Mr. Freeman
What you say is correct if you want to analyze the actually sound wave and what is happening--if you just want to measure the intensity much less work/sampling is required. Intensity measurements can be either frequency dependent (over the human hearing range dba) or non frequency dependent (over all frequencies dbc). What they need really depends on their application.
  #7   Spotlight this post!  
Unread 14-02-2008, 02:35
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Microphone?

Quote:
Originally Posted by Tim Arnold View Post
This is an odd request, but I'm curious if its possible / feasible to hook up a microphone to an analog input. Not for recording or anything, purely to measure volume.

Anybody heard (no pun intended) of something like this being done before, or have ideas on how to do it?
Yes, this is possible. The ADC software on my website can sample at 6400Hz, which is good enough to sample frequencies as high as 3200Hz (See here for why). You would need a filter to remove frequencies above 3200Hz to prevent aliasing and an amplifier to use as much of the five volt dynamic range as possible.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 14-02-2008, 07:49
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Microphone?

You will ned an amplifier to bring up the mic level (~-50dBm ref 1 mW) up to a usable level. A simple precision rectifier would then give you an average DC level which you could then sample to get an idea of the sound level over the long term. A little fudging in software and you could get a good approximation of SPL based on your sample. Remember that most SPL measurements are weighted anyway (frequency limited). I would guess that a logrithmic approximation times 2 would be about right. Of course some serious high pass filtering in the mic preamp will be needed to keep robot crashes, um, contacts out of your measurement.
BTW, to my ears, on the field sound is at least 10-15 db quieter than in the stands. Remember the PA is aimed at the crowd, not the field.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 14-02-2008 at 07:58.
  #9   Spotlight this post!  
Unread 14-02-2008, 07:53
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Microphone?

Ok, I'll give you that you CAN do it, but i'm wondering WHY you want to do it. FIRST events are insanely loud at times (and have a high volume general murmur about them) so I'm guessing you're not using this for any kind of control...

So... are you making lights that go to the music? I have no other ideas?

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi