Slashdot Mirror


DIY Microprocessor Sound Level Meter Demoed At MIT

An anonymous reader writes "A Piezoelectric Sound Level Meter was demoed at MIT's Battle of the Bands last month, borrowing its display from the do-it-yourself USB LED marquee that was the subject of a previous Slashdot story. This video tutorial describes in detail both the analog electronics plus the C code that runs the system. If this is your first experience at the intersection of digital and analog systems, don't be scared!"

81 comments

  1. from MIT? by Anonymous Coward · · Score: 5, Insightful

    ok so pretty cool, but can someone explain how hooking a mic up to an ADC is worthy of a mention for MIT? It sounds more like a high school project at face value, what am I missing?

    1. Re:from MIT? by scoot80 · · Score: 3, Insightful

      Its MIT - even the most mundane things sound exciting to the rest of the world. Just throw in a few more catch phrases - SPI interface, sigma delta ADC, and its already really really exciting!

    2. Re:from MIT? by mustafap · · Score: 2, Funny

      I completely agree. This is a trivial piece of hardware, of which there are millions of examples on the Internet, the majority of which are more interesting than this.

      Is this of interest just because someone at MIT was involved? What's next? MIT engineers demonstrate how to drink beer?

      --
      Open Source Drum Kit, LPLC deve board - mjhdesigns.com
    3. Re:from MIT? by Anonymous Coward · · Score: 2, Funny

      This one measures to 11.

    4. Re:from MIT? by bigkahunah · · Score: 1

      agreed. what makes this worthy of slashdot? I recently helped high school kids implement some A/D conversion for a senior project. And they even transmitted the data wirelessly. Perhaps this demonstration at the local vo-tech deserves national acclaim?

    5. Re:from MIT? by Xeth · · Score: 4, Insightful

      An MIT student is using Slashdot's affinity for the Institute to get free advertising (as he did in the previous story). That's all that's going on here.

      --
      If your theory is different from practice, then your theory is wrong.
    6. Re:from MIT? by iluvcapra · · Score: 1

      Add "Direct Stream Digital" and "protected amplifier content path" and they can start demanding patent royalties...

      --
      Don't blame me, I voted for Baltar.
    7. Re:from MIT? by electrosoccertux · · Score: 1

      I completely agree. This is a trivial piece of hardware, of which there are millions of examples on the Internet, the majority of which are more interesting than this.

      Is this of interest just because someone at MIT was involved? What's next? MIT engineers demonstrate how to drink beer?

      Dancing up next

    8. Re:from MIT? by Anonymous Coward · · Score: 0

      Did you submit an informative article to Slashdot?

    9. Re:from MIT? by SlashWombat · · Score: 1

      Of course, any laptop already has everything needed for this, except a trivial piece of software.

  2. Oh wait... Advertisements. by Anonymous Coward · · Score: 5, Insightful

    It IS a high school project at face value. The kit can be yours for only $80!

    Shouldn't ads like this be paid for?

    1. Re:Oh wait... Advertisements. by Anonymous Coward · · Score: 0

      Yeah, I agree. It's an ad. But it worked--I just bought one. What a sucker, eh?

  3. Advertisement? by drolli · · Score: 4, Insightful

    Sound level meter? Did i miss something particularly difficult or innovative about this thing?

    Whats the point? Selling MC Kits?

    1. Re:Advertisement? by wpiman · · Score: 1

      I haven't seen one of these since I threw out my dual audio cassette player from 1987. I think they are going for a nostalgia thing.

    2. Re:Advertisement? by drolli · · Score: 1

      Oh my God! the 80s are coming back.... Duck and cover!

  4. WOW by Anonymous Coward · · Score: 0

    Been there, done that, have the T-Shirt.

    We also build a simplistic computer on a bread board with our own MMU, serial port, clock, ROM, and RAM. We programed in assembly and had to burn our programs onto the ROM.

    This stuff is undergrad work at any reasonable college.

  5. iPhone App by Anne+Thwacks · · Score: 1
    Can't we just have an iPhone App to do this?

    Or indeed, a java app for most Symbian phones?

    With a full-featured 1/3 octave spectrum analyser as well. Please

    --
    Sent from my ASR33 using ASCII
    1. Re:iPhone App by glarbl_blarbl · · Score: 1

      That would be cool, but I wonder about the response curve of the built-in microphone. Surely that would color the spectrum analyzer? I don't own an iPhone, so I'm genuinely curious... I imagine it would be more useful as an RTA if you could plug a nice flat reference mic in. A dB meter, however, would probably work just fine!

      --
      I use friend/foe to signal strong [dis]agreement instead of mod points. What else are f/f good for?
    2. Re:iPhone App by iluvcapra · · Score: 1

      With a full-featured 1/3 octave spectrum analyser as well. Please

      You aren't actually going to tune a room with that thing are you? Have you any idea how bandy those cellphone microphones are? The only thing a cellphone FFT "frequency analyzer" would be analyzing is it's owners attraction to Teh Blinkie.

      --
      Don't blame me, I voted for Baltar.
    3. Re:iPhone App by Anne+Thwacks · · Score: 2, Interesting
      response curve of the built-in microphone. Surely that would color the spectrum analyzer?

      That would have to be the easiest thing in the world to compensate for!

      There might be firm limits to the top and bottom of frequency response set intentionally to limit the bandwidth intentionally (wide bandwidth is not good for telephony), but I expect these to be done in software to guarantee sharp cutoff.

      I had in mind a recording RTA application. Sound techician could compare acoustics of different locations/PA rig setups/EQ settings,

      Being able to e-mail a recorded sound spectrum to the lab for interpretation might be useful to all manner of people. (Cant reveal more - they might shoot me!)

      --
      Sent from my ASR33 using ASCII
    4. Re:iPhone App by gstoddart · · Score: 1

      Can't we just have an iPhone App to do this?

      Or indeed, a java app for most Symbian phones?

      There's a lot to be said for being able to roll up your sleeves and actually do the fiddly bits. It shows you understand the underlying problem instead of just downloading a magic cure that does it for you. (Well, in this case, buy a kit and then assemble it.)

      Granted, a lot of people are kvetching that this really isn't that difficult (which I'm not qualified to comment on ;-) -- as much as this might fall into the category of "someone at MIT did it so it's both cool and revolutionary", it still warms my heart to know people are still kicking it old school.

      Not all problems are best solved with trying to turn an iPhone into a Swiss-army chain-saw. That's what perl is supposed to be for. :-P

      Cheers

      --
      Lost at C:>. Found at C.
  6. Ho-hum by redelm · · Score: 1
    This one is silly -- why not just read the mic directly and apply the relevant digital filtering/transofrmation? RMS at least.

    I'm more interested in turning an iPhone / iTouch into a dynomometer for engine performace tuning. Use the accelerometers. You'd need to find some way to enter RPM, probably a passenger hitting the Ks.

    1. Re:Ho-hum by dissy · · Score: 1

      This one is silly -- why not just read the mic directly and apply the relevant digital filtering/transofrmation? RMS at least.

      I'm more interested in turning an iPhone / iTouch into a dynomometer for engine performace tuning. Use the accelerometers. You'd need to find some way to enter RPM, probably a passenger hitting the Ks.

      I'm not sure if you meant you were interested in a DIY approach or not, but just in case not, such software does already exist.

      http://www.dynolicious.com/

    2. Re:Ho-hum by Cassini2 · · Score: 4, Informative

      This one is silly -- why not just read the mic directly and apply the relevant digital filtering/transofrmation? RMS at least.

      Many of the cheap micro-controllers have ADC's that won't do the job well, at least not well enough to get any kind of dynamic range out of the circuit.

      A bigger problem with the MIT design, is that it uses a Piezo-Buzzer for a microphone. This will give a wickedly non-linear frequency response curve. Piezo-Buzzers are designed to have a narrow range of frequencies in which they operate effectively.

      The MIT design also uses a single transistor amplifier circuit. It wouldn't surprise me if the harmonics on the output are poor. Specifically, with this circuit, the average sound level can be determined by simply averaging the output of the transistor amplifier. Essentially, the average voltage on both the collector and emitter of the transistor should change if an AC signal is applied to the base. If this average is read with a DC voltmeter, then it should give an approximation of the sound-level, subject to the microphones frequency response curve.

      I am not clear why anyone would build a sound level meter without using either a proper microphone or an effective amplifier circuit. A quad op-amp IC, and a few circuits from the web, should give you the average sound level over an extended frequency and amplitude range. It is even possible to do RMS to DC, peak-level to DC, and log-linear conversions in analog. For a retro-look, an old-fashioned voltmeter or amp-meter can be used for a display. For a more modern look, it is possible to use a cheap micro-controller with a slow ADC (or an LM3914) for the analog to digital conversion. Historically, this was the way it was done in many stereos, and the same circuit is probably still in use in many professional recording labs.

      The advantage of implementing a proper micro-phone is the much flatter frequency response curve. The advantage of the log-linear conversion, is that most sound meters read in dB, which is a logarithmic scale. It takes a very good linear ADC to implement the same conversion digitally. A 5-bit (32 count) ADC reading a log input has more dynamic range than a 24-bit ADC reading a linear input (2^32 >> 2^24). Although in practice, I wouldn't recommend using less than an 8-bit ADC on an analog circuit.

    3. Re:Ho-hum by gwait · · Score: 1

      Because the piezo won't generate enough voltage for the micro's ADC to measure on its own. The trivial transistor gain circuit fixes that.
      A digital transformation of an input that constantly reads zero is not that helpful..

      --
      Bavarian Purity Law of Rice Krispie Squares: Rice Krispies, Marshmallows, Butter, Vanilla.
    4. Re:Ho-hum by not-admin · · Score: 1

      It was probably designed this way because it wasn't actually MIT designed... It's an "educational" kit sold by some random, non-affiliated vendor that wants high-schoolers to buy it and "learn about electronics."

    5. Re:Ho-hum by Gordonjcp · · Score: 1

      You'd need to find some way to enter RPM, probably a passenger hitting the Ks

      Use the mike, determine it from the engine note?

    6. Re:Ho-hum by muridae · · Score: 1

      You can use a toroidal transformer, with a split core, and treat one of the spark wires as the primary winding. Then detect the voltage off the secondary. Just be careful about how much voltage the secondary is getting, since the spark wires run between 10k and 100k volts on some vehicles. Save your controller, and have that trigger a flip-flop. Or filter the signal enough to have it trip an interrupt on the uC.

      Or you could just check if the OBD-II port has a signal for RPM.

    7. Re:Ho-hum by hey! · · Score: 2, Interesting

      Well, you should go one step further and ask, why build something like this at all when you can buy a finished product for less, if you count your time worth anything?

      The reason to use the piezo buzzer is simple: you've got one in your parts box and you're curious what you could do with it besides make a buzzing sound. It's like what somebody said about dogs who've been trained to walk: it's not that they do it well, it's that they do it at all.

      With respect to the use of a single transistor, that's educational. Yeah, you can get a better IC amp, but then you can buy a better finished device. You learn something different by using discrete components. Of course, you could do a more elaborate discrete amplifier, but then you put off the satisfaction of seeing the blinken' lights that much longer.

      Years and years ago when I was at MIT, there was a kid who commuted to campus in a homemade electric car. It wasn't a very good car. For the money and effort he put into it, he could have bought a cheap gasoline car and tinkered with that. For that matter, I don't think his car was much better than a bike. The same kind of arguments you are making could apply to that.

      When, other than when you are learning, can you do something differently than by the book, just for the fun of seeing it work?

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    8. Re:Ho-hum by Gordonjcp · · Score: 1

      Yeah, but you've got to get that into the iPhone somehow. It's *easy* if you're just driving a bare microcontroller.

  7. A CPU for this? by dannycim · · Score: 5, Informative

    Just goes to show ya that MIT guys will crack a nut using a bulldozer. There's plenty of dedicated level-meter chips around which cost next to nothing and provide a better, logarithmic response, which is what you want for sound.

    The LM3915 is an oldie but a goodie, you can even daisy-chain them.

    See http://www.national.com/mpf/LM/LM3915.html

    1. Re:A CPU for this? by hack++slash · · Score: 2, Insightful

      Using off the shelf components that do the job with a setup that's practically plug'n'play doesn't always help you learn how something works.

      "Re-inventing the wheel" can be a good way to learn & understand how something works and why it's built/programmed etc. in a certain way.

      --
      To do something right, you often have to roll up your sleeves and get busy.
    2. Re:A CPU for this? by Hurricane78 · · Score: 1

      No offense, but I rather invent something just as ingenious but new, on top of those building block, so that future yous can re-invent my wheel. ^^

      Based on your theory, one could also argue, that it makes sense, to make your own resistors and transistors, and perhaps also the machines to make them, and the machines to make the components for those machines, and so on... literally re-inventing the wheel in the process. :)

      I usually am happy with reading how such stuff works (I actually literally feel the need for it). But I do not see the point in re-implementing it.
      The only stuff I want to know how to make myself, is stuff that could save my life if I happen to get into an end time / war scenario:
      - Know how to find or prepare drinkable water.
      - Know which plants one can eat, and how to cultivate, prepare and conserve them them. (including making fire.)
      - Hunt, catch, disembowel, partition, and conserve animals (meat).
      - Know a bit about health, and how to prepare pharmaceuticals.
      - Make my own clothes. (Secondary, if the weather allows it.)
      - Build a shelter or hut/house.
      - Secure my shelter and myself. (defensive and offensive methods.)
      - Oh, and I recommend knowing how to make children, and raise them. But I hope that one is obvious, even to the spoiled city-dwelling subset of Slashdotters. ^^

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    3. Re:A CPU for this? by LoRdTAW · · Score: 1

      Whats so bulldozer about this? A piezo buzzer is used to drive the input of a common emitter BJT amplifier which then feeds a PMC with an ADC. That's hardly worthy of being compared with a bulldozer. This is an advertisement presented as news. It must have slipped by (yea right), a palm was greased or an MIT person with a /. buddy.

      BUT, it is a great little tutotrial for beginners who want to take a crack at analog and digital design. The Amplifier math is taught in your into to electronics class during freshman year. The amplifier stuff can be a bit intimidating but its all rather simple once you get to know it. The fun part is the C code which will give others experimenting with mixed signal stuff a start in DSP software which presents a hurdle to developers who are very new to the whole idea. Just how do you make sense of stream of data from an ADC?

      This isn't /. worthy news but is it electronics which I love. I believe more people should take interest and build their own experiments or equipment.

    4. Re:A CPU for this? by Alef · · Score: 2, Insightful

      "Re-inventing the wheel" can be a good way to learn & understand how something works and why it's built/programmed etc. in a certain way.

      It certainly can. But it can also be a way of teaching students the wrong way to solve a problem. In the "real world" that involves money, you must never ever re-invent anything until you have made completely sure that there is no better alternative. It is far too common that graduates don't realize this when they enter into professional life.

      Besides, maybe the alternative would be to invent something completely new and more advanced using the "plug'n'play" components. That could teach you equally much, if not even more, about how the technology works. And what's more, it could actually be applicable knowledge that is useful for something.

    5. Re:A CPU for this? by htdrifter · · Score: 1

      It's good to see DIY projects that teach people how things work. The tutorial is very well done and applies to a real world project that a beginner can build.

      Understanding how to bias a transistor to get the results needed is valuable.

    6. Re:A CPU for this? by drinkypoo · · Score: 1

      The datasheet for the purpose-built circuit tells you how to do it the easy way. These guys have learned how to do it the hard way, without the right circuit. If you have the chip, and you have the piezo element, and it will do the job, why not put them together instead of adding another chip to the design?

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    7. Re:A CPU for this? by porl · · Score: 4, Interesting

      you may not find the lower level components interesting, but some people do. being interested in vintage amplifiers means that i am somewhat interested in what makes various older components sound the way they do. this led me to learn about the different characteristics of varying types of capacitors, which led me to trying to make my own capacitor out of foil and cling wrap. it certainly wasn't anywhere near the quality of a commercial capacitor, and even fell apart after being moved around too much, but it worked and i really enjoyed it and learnt from it. that doesn't mean i would want to try to rebuild a computer mainboard with diy capacitors (although i would certainly tip my hat to someone who pulls that off) but i don't see it as a waste of time in the slightest.

      to each their own i guess.

    8. Re:A CPU for this? by gstoddart · · Score: 2, Insightful

      Just goes to show ya that MIT guys will crack a nut using a bulldozer. There's plenty of dedicated level-meter chips around which cost next to nothing and provide a better, logarithmic response, which is what you want for sound.

      While there's some truth to what you say, if we all just decided to use off-the-shelf components to do all of this stuff, people would forget how it's done, and then it would be arcanum.

      The MIT approach of using a bulldozer to crack a nut usually demonstrates a pretty fine control over the bulldozer, and a reasonable understanding of how much force to apply to the nut and not end up with powder. It usually somehow comes across with a bit of controlled elegance amid the mayhem. :-P

      Isn't the whole point to be doing the science and technology for the sake of doing the basic science and technology? I applaud anyone who can and does go back to first principles -- because, quite frankly, I can't do it myself. It's just good to know someone is keeping it alive.

      Cheers

      --
      Lost at C:>. Found at C.
  8. Get rid of the micro - LM3914 by marcop · · Score: 4, Interesting

    LM3914 can handle 10 LED's per chip and can be cascaded for more. Add an amp for signal conditioning on the front end, and then hookup lots of LED's per line if you use a transistor to drive a bank of LED's.

    They need a micro because their display is too complex for the job. But, make the display simple and you can make the whole design simple. Yet, since this is MIT's it has to be complex for some reason.

    1. Re:Get rid of the micro - LM3914 by Anonymous Coward · · Score: 1, Insightful

      Take a look at the video. The point of the exercise is to show/learn how to measure tiny voltages with a microcontroller. There are ready-made chips for some applications, like a VU meter, but a microcontroller is programmable and therefore much more flexible. It can process, store, and transmit the data it gets from its sensors. (Your single chip VU meter doesn't have a peak indicator? You want your data to be averaged over a second? You want to keep a record of the evening's sound levels on an SD-card? A microcontroller can be reprogrammed to include these features. A dedicated chip needs to be replaced - that is, if you can find one which has the features you want.)

    2. Re:Get rid of the micro - LM3914 by marcop · · Score: 2, Interesting

      You're right, if you want advanced features then you have to include a microcontroller. Although I have used the LM3914 with a CD4538 per line to do peak level indication. If you want to only do peak level indication for the upper few lines then this would be easy enough. However, doing more than a few lines and doing other stuff you mentioned then of course a microcontroller would be easier.

      Point is there are many ways to do this simple project, and it is beyond what should be showcased by MIT and here on slashdot. How about doing something a little more interesting like audio spectrum by having the micro also do FFT? If you cram all these features into the project then perhaps I would make it slashdot worthy. But as is it is far from it.

    3. Re:Get rid of the micro - LM3914 by Anonymous Coward · · Score: 0

      Note that the implementation already features peak level indication and LCD output with numeric min/max output. Even just the peak level indication would be more complex with "dedicated" circuitry than with a microcontroller. Only applications with a significant analog component and true mass market applications can avoid microcontrollers, and only if the digital functionality can be implemented with just one (typically application specific) IC. It's all going to be software, get used to it.

  9. This is an "article" by timothy...expecting more?? by TrisexualPuppy · · Score: 0, Informative

    Of course it isn't news.
    Here is some of dem linkies!

    Link 1
    Link 2
    Link 3!

    Yea, building a VU or SPL meter is soooo easy that even an MIT student can build one. Timothy, did your mother know that you posted this story? GO TO YOUR ROOM.

  10. Slashdot Quote by Anonymous Coward · · Score: 0

    Lets pretend I'm from MIT. This was the slashdot page quote:

    All things are possible, except for skiing through a revolving door.

    If the revolving door is ten times larger than normal, you could ski through it. Or shorten the skis and the door only needs to be slightly larger than normal. It also depends on the speed you ski. If you were skiing slowly through a viscous oil at a 35 degree decline (more like sliding than skiing), the doors would need a (roughly) 10ft radius or with skis half as long a 6-8ft radius.

    You might be asking why anybody would want to ski through a revolving door. That's a question for a psychologist, not a scientist.

  11. A little knowledge is a dangerous thing by Ancient_Hacker · · Score: 5, Informative

    This project is an excellent example of how having a little theoretical knowledge is a bad thing.

    They have just enough knowledge to get into complicated and pointless gain calculations, but they miss most of the really important things. Here's a few:

    (1) A piezo buzzer is not designed for any kind of flat frequency response. Which is a basic requirement for a sound-level meter. Major fail from the get-go.

    (2) We're going on 60 years of having a spec for sound meter weighing curves and envelope filtering characteristics. Yet no mention of that in the article. A randomly designed meter is useless.

    (3) They go on and on about calculating the gain of the amplifier stage, and they do it incorrectly. We care not one whit about the DC gain. The AC gain is dependent on the AC impedance of the source and load. Even the DC gain they calculate is useless as those transistors have a huge range of gains. And no analysis of the DC stability, which is harder to get right. Gain just happens, stability has to be designed in.

    (4) Biasing the base from a pot in that fashion is never done in practice. A better design would use two resistors and avoid the cost and impedance variations of the one pot "design".

    (5) A real design would have the +5 volt line decoupled and filtered to keep microprocessor switching noise out.

    ----

    In summary these designers should wait until they get past the first chapter of their transistor class before going out and trying to design anything. Good design requires more than slavish focusing on one small area. An engineer has to have a broad view.

    1. Re:A little knowledge is a dangerous thing by Eil · · Score: 1

      This project is an excellent example of how having a little theoretical knowledge is a bad thing.

      They have just enough knowledge to get into complicated and pointless gain calculations, but they miss most of the really important things.

      [snip]

      In summary these designers should wait until they get past the first chapter of their transistor class before going out and trying to design anything. Good design requires more than slavish focusing on one small area. An engineer has to have a broad view.

      Holy shit. Really? This is your actual response to a group of kids who are trying to learn the basics of analog/digital design theory and set out to do something fun and interesting with it?

      Constructive criticism is one thing, but telling someone that they shouldn't even attempt a project when they don't already grasp 100% of the details involved just reeks of condescending elitism. That is far more dangerous to science and the exploration of technology than some novice jumping into a trivial audio-visual project without having mastered all of the details first. They're just trying to learn something and pass their experiences along to others. No, the project may not be professional-level electronics engineering, but it wasn't meant to be. It was meant to be fun, cheap, and educational, and it succeeded on all of those.

      If this is how you really feel about people trying to learn something for themselves, please remove the word "hacker" from your nickname and just leave the "ancient" part.

    2. Re:A little knowledge is a dangerous thing by Ancient_Hacker · · Score: 1

      It's neither "fun" nor "interesting" when your design is 8 times as complicated and expensive as one that works, and yours is neither stable, accurate, hi-fi, or immune to temperature changes, power supply noise or electrical interference.

      Yes it's fun to mess around with parts and get them to do something, anything. But this is not an example of any kind of sane engineering. I assume most people going into $95,000 debt to attend MIT intend to try to be useful engineers. This item on your resume is a quick ticket to Palookaville.

    3. Re:A little knowledge is a dangerous thing by Jonner · · Score: 1

      Yeah, I'm sure all the students MIT accepts sprung from their mothers' wombs as fully formed engineers. None of them should ever need to learn the basics. If you think the point of the NerdKits is for use by current students of MIT, read the description on the home page:

      A NerdKit is appropriate for software hackers looking to branch out into electronics, and has educational material to allow even middle-schoolers and high-schoolers (ages 12+) looking for a fun challenge to learn by doing, especially with the help of a techie parent!

      You'd probably bash kids for playing with Legos too, since real world machines and buildings aren't made that way.

    4. Re:A little knowledge is a dangerous thing by not-admin · · Score: 1

      It's neither "fun" nor "interesting" when your design is 8 times as complicated and expensive as one that works, and yours is neither stable, accurate, hi-fi, or immune to temperature changes, power supply noise or electrical interference.

      Yes it's fun to mess around with parts and get them to do something, anything. But this is not an example of any kind of sane engineering. I assume most people going into $95,000 debt to attend MIT intend to try to be useful engineers. This item on your resume is a quick ticket to Palookaville.

      Because, obviously, a company that pays MIT money to have their product advertised to a bunch of high-schoolers visiting MIT must be representative of the actual education MIT students get. MIT wasn't even INVOLVED with the creation of this thing, and they definitely aren't bragging about it -- this is just a great example of a slashvertisement

    5. Re:A little knowledge is a dangerous thing by push+psw · · Score: 1

      Everyone does dumb designs while starting to learn things... Isn't it a sign of professional growth to look back and realize that your designs for some circuits were dumb?

    6. Re:A little knowledge is a dangerous thing by Cassini2 · · Score: 2, Informative

      The criticism may be blunt, but if students do a cookbook project, they should at least be smart enough to know the errors in their ways.

      This project has quite a few major problems in the analog front end. Especially, given the fact that with a micro-controller, you could at least try to fix some of them. The report makes no mention of the fact the students even noticed them. Also, the calculations that they did do, are considerably more complex than necessary. Specifically, the students missed the fact the piezo transducer is a charge coupled device, so they are essentially dropping current straight into the base of the amplifying transistor. No voltage gain calculation required.

    7. Re:A little knowledge is a dangerous thing by honkycat · · Score: 1

      Did you hear that sound? That was the fun being sucked out of learning electrical engineering!

      Yeah, this is a complicated way to build a sound meter. Yes, it has obvious stability and noise problems and there's certainly a lot left to do. Yes, this is a blatant Slashvertisement. Still, while not news, I think it's both "fun" and "interesting." If the purpose was to build a better, more robust sound meter, yeah, they failed. But it is a cute project you can do to learn something about the CPU and the transistor, which was the point.

      Despite your objections, the device worked. The lights light up when the sound gets louder. If you build a couple of these, you might notice that they have different response, or that they light up brighter when they get warmer, or that they get spikes. You might investigate these and learn about some of the problems with the design. But it's a lot more educationally interesting to build the neat gadget that mostly works first, rather than get hung up on the details and never get around to the punch.

    8. Re:A little knowledge is a dangerous thing by Ancient_Hacker · · Score: 1

      Thanks for the backup. A few more things I noticed:

      (1) At some bias settings that transistor and its stray lead inductances is likely to act like a VHF oscillator. Don't use this thing to measure noise on a plane! ( Aircraft nav aids and voice comms are in the VHF range.)

      (2) Those buzzers seem to be spec'd to operate at particular frequencies, which strongly suggests they're resonant. That will make the frequency response particularly peaked and non-optimal.

      (3) Using a device in a way it's not designed is not only likely to give poor performance, it's also risky. The manufacturer may make changes which improve its efficiency for its intended application, but may wreck its alternate use.
      For example they might change the buzzer to have a higher resonant Q, which would give it a purer tone, but make its frequency response useless as microphone. They might even make these changes from batch to batch, frustrating those users that get the "wrong" batch.

      ---

      Then again it's an ill wind that blows no good. This would be an excellent learning experience IF you presented it as:

      "Here's a working design. Find at least TEN major things wrong with it that would doom it as an actual usable product. Suggest remedies."

    9. Re:A little knowledge is a dangerous thing by Cassini2 · · Score: 1

      For me, if you are going to teach students how to do something, you might as well teach them how to do it properly. Otherwise, someone may try to copy the circuit and reuse it in a practical application.

      I sometimes work with university students. It is a little too obvious how dangerous following simple textbook advice can be. Emergency Stop circuits implemented in Visual Basic are a personal crusade ...

  12. DIY Club by Anonymous Coward · · Score: 0

    If this is your first time at DIY club, you have to DIY.

  13. Pointless ad for Nerdkits by Shaiku · · Score: 1

    This is nice for some educational value, but it's not news. I've designed far more sophisticated systems that didn't have cookbook solutions and then brought them to fruition. Haven't we all? You won't see my personal projects on slashdot, no matter how cool they are, because they simply aren't news.

  14. Stupid MIT folk. by Anonymous Coward · · Score: 0

    Everyone knows that microprocessors are silent. It's the heatsink fans that make all of the noise.

  15. A cooler audio project is this: by Anonymous Coward · · Score: 0

    Take three nails.

    Put two on a piece of wood, parallel to each other, and attach wires to them.
    Rest the third nail across the other two.
    Connect a 1.5v battery and a small resistor across the two wires.
    Connect a small value capacitor to one nail, and a new wire to the other.
    Connect the other side of the capacitor and the new wire to your soundcard input.

    You now have a microphone capable of picking up a fly's footsteps walking on the wood!

  16. Yet another advertisement from Nerdkits by Anonymous Coward · · Score: 0

    This is the third time I've seen a "news story" on slashdot that ended up being yet another advertisement for "nerdkits".

    Slashdot, stop putting up these nerdkits stories or at least move them to an advertising section, please.

  17. Nerdkits Ads Strike Slashdot Again! by Anonymous Coward · · Score: 1, Informative

    Why does slashdot allow garbage like this to be posted time and time again?

    Clearly these MIT kids are smart because all they do is get free advertising from slashdot by submitting their stories multiple times...

    This is not news. Furthermore, the story isn't even worth of being slashdotted. Just stop already.

  18. Why are you hating on us? by push+psw · · Score: 1

    The article never says the thing was designed my an MIT student, does it? I am a half-baked electrical engineering undergrad here and even I can see the flaws in this design. And supposedly, all the code is in C. Any self respecting MIT student would use assembly for this. I highly doubt it was designed by an MIT graduate. Also, I agree there is nothing substantial in this - this is like thirty minutes worth of work. Any fool can hookup an ADC to a micro. No one here at MIT thinks this is smart or anything. However, we let these things happen here because if we want sponsors for any of the real things we do, we have to give them something in return and most of the times what they want is advertisement of this form. Stop looking at this as something representing MIT. It was just displayed by a kit manufacturing company at a tech school at an event designed for prospective freshmen ( = high school students), clearly a great marketing opportunity for this kind of a thing.

    1. Re:Why are you hating on us? by Anonymous Coward · · Score: 1, Insightful

      As an EE undergrad who is about to graduate, I wonder what planet you're from suggesting that any self-respecting nerd would use assembly for microcontroller programming.

      As an engineer, you need to understand tradeoffs. Assembly allows you a greater measure of control and sometimes speed (it's really difficult to outdo a compiler in optimizations these days). In return, you have longer development times and you're more prone to bugs. In the projects I've worked on, coding in C is sufficient 95% of the time. In the other 5%, I can break out the assembler. By choosing the right tool for the right job at the right time, I can create better things.

    2. Re:Why are you hating on us? by Anonymous Coward · · Score: 0

      If you don't want to get criticized when you publicly sell out, my humble suggestion would be to not sell out.

  19. Yeah right... by Anonymous Coward · · Score: 0

    ... why do it with 8$ worth of analogue components when you can also do it with 80$ digital components with a fraction of the resolution...

  20. I expect better from MIT students. by Animats · · Score: 2, Interesting

    Yes. These are MIT students, remember. Now, if they designed something simple that got the same results as a properly calibrated A-law sound level meter, that would be useful. Or, for example, they could use the microprocessor to do an integrating dosimeter calculation, so you know when you've overdosed on live music. That would be useful to do cheaply, because noise dosimeters are still expensive, over $1000.

  21. Is this the level of knowledge at MIT? by Hank+the+Lion · · Score: 2, Informative

    I really like the simplicity of the circuit, and the way they try to explain the basics of transistor design. Nowadays, there is an integrated circuit for about anything, but just using that doesn't make you learn anything, and - in my opinion - takes away the fun of creating something from scratch.

    But am I the only one to see the huge error in the equations they are using?
    They state
    Ic = Ib * beta
    Ib = Is exp(Vbe/Vth)
    where it should be
    Ic = Is exp(Vbe/Vth)
    Ib = Ic / beta
    or, their equations are off by a factor of beta!
    That does not seem too important, it appears you could compensate for this in Is, but in practice, that is not so straightforward.
    The exponential relation between Ic and Vbe holds over many decades, whereas beta is not nearly as constant as we sould like.
    So, if these are really MIT students, I'd like a word with their professors... ;-)

    1. Re:Is this the level of knowledge at MIT? by Hank+the+Lion · · Score: 1

      To pick one more nit:
      I wasn't correct myself when writing the equations.
      It should be
      Ic = Is ( exp(Vbe/Vth) - 1 )
      In practice, Is is so small that you will not see the difference except for very small collector currents, but it's just bad style to correct errors of others when you are not correct yourself ;-)

  22. How about a DIY Breath-Analyzer? by Nom+du+Keyboard · · Score: 1

    How about a DIY Breath-Analyzer? It could at least do a better job than the lousy coded version(s) out there that so far do everything from chop off most of the precision, disable error detection, and can't perform a running average, to giving fake high readings when an NYC cop knowingly keys his radio to harass you with. If I had my own unit I could always compare it to theirs when it came to a court battle -- not that I ever advocate driving while impaired. That kills other people!

    --
    "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
  23. Does this thing even work? by Animats · · Score: 2, Informative

    I built up the circuit as a SPICE model, and while it amplifies, it doesn't filter much. That weird filtering circuit in the emitter leg doesn't seem to accomplish anything. Treating the piezo microphone as a voltage source with a 1K resistance, generating a 1KHz input signal at 0.005V (based on a Murata piezo buzzer data sheet), what comes out is a voltage swing of about 0.6V at 1KHz, with a DC offset of 2.8V. The filtering seems to be insensitive to RM; changing RM from 10 ohms to 10 megohms doesn't do much to the output waveform. The 100K pot was adjusted until the voltage across RE was 3.3V, as specified. (This happens with the top end of the pot at 4.4K).

    Why didn't they just put a nice simple low-pass filter on the output, instead of trying to get cute and put it in the emitter lead? And shouldn't there be a diode in there somewhere, to extract the waveform's envelope?

    I actually built something like this in my teenage years, and had it hooked up to a surplus chart recorder (mirror galvanometer, phototube, relays, and motors, a mechanized Wheatstone bridge). (This dates me.) Mine worked.

    1. Re:Does this thing even work? by Jackmn · · Score: 1

      The 100K pot was adjusted until the voltage across RE was 3.3V, as specified. (This happens with the top end of the pot at 4.4K).

      I believe 0.33V is the voltage specified in the instructions.

    2. Re:Does this thing even work? by Jackmn · · Score: 1

      Why didn't they just put a nice simple low-pass filter on the output, instead of trying to get cute and put it in the emitter lead? And shouldn't there be a diode in there somewhere, to extract the waveform's envelope?

      Assuming I've read the documentation correctly, the capacitor and RM don't form a low-pass filter. They serve to increase the gain of the amplifier at higher frequencies. The capacitive reactance of the capacitor decreases as frequency increases. This reduces the impedance from the emitter of the transistor to ground, increasing gain.

    3. Re:Does this thing even work? by Cassini2 · · Score: 1

      Try making the peizo a current source, with almost no parallel resistance. The piezo sensors I use are modeled as charge sources, with no parallel resistance. They generate signal because the mechanical deflection (X) corresponds to a charge (Q). A time changing mechanical deflection (dX/dt) thus generates a current (i=dQ/dt).

      This change might better explain what is happening in the circuit. I think you will find that the transistor acts as almost a Class C amplifier, and has large amounts of distortion.

  24. This is Sad...Here is something better! by mr-Shutter · · Score: 1

    I would expect something better from MIT. With a marquee like that, They should be doing Spectrum analysis. Here is something more interesting. http://elm-chan.org/works/akilcd/report_e.html They wrote the FFT in assembly. Microcontrollers are very impressive. They use to have to spend millions on FFT chips in the air force for their radar, now you can do it on a $4 chip.

    1. Re:This is Sad...Here is something better! by mr-Shutter · · Score: 1

      Sorry, I forgot about craft. This is a demo done on a atmega88. http://www.linusakesson.net/scene/craft/

  25. listening to your CPU by kwikrick · · Score: 1

    I interpreted the caption that the MIT guys are listening to sounds made by a CPU. They are not, but it reminded me of an interesting phenomenon.

    I had a transistor radio pick up signals from the CPU (or some other unidentified hardware component, not sure). I Just tuned the radio to receive static (somewhere in the 80-90Mhz FM range I believe) and depending on how busy the processor was, different squeaky noises could be heard. That was way back in the 386 era, don't know if this trick still works with modern PCs.

    --
    assignment != equality != identity
  26. Just Learning by mathman47 · · Score: 1

    Hey, not so hard. While it may not be news to you nerds and geeks, it is to me. I'm 62 and am teaching myself electronics. I've had a full business career and am looking for something new. If this helps me, so much the better. Yes, I do read the comments.

    --
    "There are good ships, and there are wood ships, the ships that sail the sea. But the best ships are friendships, and ma