To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.faqOpen lugnet.faq in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 FAQ / 536
Subject: 
[MindStorms FAQ 4.5 How do I make a sound sensor?]
Newsgroups: 
lugnet.faq
Date: 
Tue, 13 Jul 1999 21:31:21 GMT
Viewed: 
2248 times
  
Subject:          4.5 How do I make a sound sensor?
Content-Language: en
Topic-Level:      0
Revision:         Robert Munafo, 1999-07-13
Location:         /robotics/rcx/
Comment:          Topic-level is inaccurate pending a reference for topic
levels

<p>Passive microphones (the kind that don't use an internal battery) are
essentially sound-dependent resistors and most have a resistance range
that lends well to being used as an RCX input (actually this isn't
quite true -- a microphone is a resistive load in series with a small
current source, but when you put 9 volts across the microphone you can
ignore the small current source). The microphone would be attached and
wired to a LEGO&reg; conducting plate in a way similar to the light and
temperature sensors discussed elsewhere here. Since you probably want
it to be small you should use the "mini condensor" type mic. A
cardioid (directional) mic is probably more useful because it allows
you to determine direction just by rotating. </p>


Subject: 
Re: [MindStorms FAQ 4.5 How do I make a sound sensor?]
Newsgroups: 
lugnet.faq
Date: 
Tue, 13 Jul 1999 21:33:43 GMT
Reply-To: 
JSPROAT@antispamIO.COM
Viewed: 
1815 times
  
Robert Munafo wrote:
Subject:          4.5 How do I make a sound sensor?

Hot dang!  Wow!  Thanks for the new material!  :-,

Cheers,
- jsproat

--
Jeremy H. Sproat <jsproat@io.com>
http://www.io.com/~jsproat
Darth Maul Lives


Subject: 
Re: [MindStorms FAQ 4.5 How do I make a sound sensor?]
Newsgroups: 
lugnet.faq
Date: 
Tue, 13 Jul 1999 23:39:45 GMT
Viewed: 
1843 times
  
No problem Jeremy. It was fun!

If you want to see an organized summary of all the answers I submitted, look at
http://www.lugnet.com/robotics/rcx/?n=37 for a table of contents with pointers.

In lugnet.faq, Jeremy H. Sproat writes:
Robert Munafo wrote:
Subject:          4.5 How do I make a sound sensor?

Hot dang!  Wow!  Thanks for the new material!  :-,

- Robert Munafo


Subject: 
[MindStorms FAQ 4.5 How do I make a sound sensor?]
Newsgroups: 
lugnet.faq
Date: 
Wed, 14 Jul 1999 18:31:40 GMT
Viewed: 
1830 times
  
Subject:          4.5 How do I make a sound sensor?
Content-Language: en
Topic-Level:      0
Revision:         Robert Munafo, 1999-07-14
Location:         /robotics/rcx/
Comment:          Topic-level is inaccurate pending a reference for topic
levels

<p>A rather complex circuit is required to read sound volume level in
an intuitive manner, if you want to respond to high-frequency sound,
or if you want to use your sensor in the RCX Code environment. The
circuit amplifies the signal from the microphone to make it sensitive
at a distance, turns it from AC to DC and detects peaks so you don't
have to analyze the waveform yourself, and sends the result through a
bridge rectifier so the sensor can be connected in either polarity to
the RCX input. Here are two Web pages describing specific
implementations:</p>

    <blockquote>
    <a href="http://www.plazaearth.com/usr/gasperi/sound.htm">
http://www.plazaearth.com/usr/gasperi/sound.htm </a>

    <p>
    <a href="http://www.kabai.com/lego/lego.htm">
http://www.kabai.com/lego/lego.htm </a></blockquote>

<p>If you're reading the input at a sufficiently high rate, a much
simpler solution is to hook up a microphone directly to the RCX input.
The RCX can read its inputs at a rate of about once every 3
milliseconds (about 330 Hz) but you'll have to use NQC or LegOS to
achieve this rate. Also, your sensitivity will drop off drastically
above this frequency, and you'll have to take several samples and
compute the RMS power level yourself.</p>

<p> Passive microphones (the kind that don't use an internal battery)
are essentially sound-dependent resistors and most have a resistance
range that lends well to being used as an RCX input (actually this
isn't quite true -- a microphone is a resistive load in series with a
small current source, but when you put 9 volts across the microphone
you can ignore the small current source). The microphone would be
attached and wired to a LEGO&reg; conducting plate in a way similar to
the light and temperature sensors discussed elsewhere here.</p>

<p>Other things to note: "Mini condensor" mics will only be useful if
they are the kind that don't have extra connections for a DC power
supply. A cardioid (directional) mic is probably more useful than a
nondirectional mic because it allows you to determine direction just
by rotating. </p>


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR