In article <jv6dnfcRZImTVNHInZ2dnUU7-WWdnZ2d@giganews.com>, 105552 @EmbeddedRelated says...> > Update: > > I worked on a code which should be lighting the LED at a specific noise, I > decided to not get picky on this one and use a simple ADC application on > the mic, due to my time constraints. Unfortunately, the littly blinky that > is supposed to happen is not happening at all... the light stays lit all > the time... can someone check this please and tell me what could be > wrong? > > > #include <msp430g2553.h> > > unsigned int adcvalue = 0; > > void configureADC(void);.... Oh your coursework peoject is not complete and late -- Paul Carpenter | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.pcserviceselectronics.co.uk/pi/> Raspberry Pi Add-ons <http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font <http://www.badweb.org.uk/> For those web sites you hate

C code for microphone in msp430?
Started by ●May 3, 2015
Reply by ●May 8, 20152015-05-08
Reply by ●May 8, 20152015-05-08
On 5/8/2015 7:32 AM, speedofsound1 wrote:> Update: > > I worked on a code which should be lighting the LED at a specific noise, I > decided to not get picky on this one and use a simple ADC application on > the mic, due to my time constraints. Unfortunately, the littly blinky that > is supposed to happen is not happening at all... the light stays lit all > the time... can someone check this please and tell me what could be > wrong?What's *wrong* is your failure to understand the nature of "audio" signals -- and how a microphone responds to them (which, in turn, relates to how you *monitor* the microphone's output to identify that in which you are interested. Would you look at the *color* of a balloon if trying to determine it's inflated pressure? Would you *count* soil particles if you were interested in quantifying its moisture content? Don't start writing code until you know what -- and HOW -- you are trying to do! (would you purchase thousands of dollars of lumber to build a house before you knew how to do so? What lumber would be required? Whether lumber was a suitable building material for the location of interest?)
