log the data, date/time of when it reaches a certain dB range
global
Posts: 6
question
First of all, let me tell you what I"m trying to do. I'm taking audio samples through a microphone into an A/d converter· (ltc1298) and I'm trying to log the data, date/time of when it reaches a·certain dB range.· I've done the math and·need to know when it goes over say·335 mV or 274· a/d value.· ··I guess what I need is to take many samples and store in eeprom the voltage level and the date and time after its been over a certain voltage for say 15 seconds.· Since the signal is sinusoidal, i think i need to do some sort of loop to only take peak voltages because I dont need all of the samples to be stored.··Ex. if the a/d reads a max peak that goes over·300 for more than 10 sec, average them out and store the value and date/ time.· I'm· not really sure how to go about doing this.· I have the a/d code working but its taking so many samples that I dont know how to go about storing only some of them.· can anyone help. i know it sounds confusing!!
Post Edited By Moderator (Chris Savage (Parallax)) : 11/15/2006 2:47:15 AM GMT
First of all, let me tell you what I"m trying to do. I'm taking audio samples through a microphone into an A/d converter· (ltc1298) and I'm trying to log the data, date/time of when it reaches a·certain dB range.· I've done the math and·need to know when it goes over say·335 mV or 274· a/d value.· ··I guess what I need is to take many samples and store in eeprom the voltage level and the date and time after its been over a certain voltage for say 15 seconds.· Since the signal is sinusoidal, i think i need to do some sort of loop to only take peak voltages because I dont need all of the samples to be stored.··Ex. if the a/d reads a max peak that goes over·300 for more than 10 sec, average them out and store the value and date/ time.· I'm· not really sure how to go about doing this.· I have the a/d code working but its taking so many samples that I dont know how to go about storing only some of them.· can anyone help. i know it sounds confusing!!
Post Edited By Moderator (Chris Savage (Parallax)) : 11/15/2006 2:47:15 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen