• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!
jBrizzle

Audio Sampling - How to

3 posts in this topic

I'm creating a kind of Yak Bak for a project I'm working on for my small son.  The basic idea is that I'll start recording audio when one button is pressed, and start playing it back when another has been pressed.  My initial plan was to just use something like an msp430g2553's onboard ADC to sample a microphone, and play it back using a PWM output.

From what I can tell, I should sample my audio at 8 kHz to satisfy the Nyquist theorem.  It looks like an msp430g2553 (and all comparable processors I've looked at) have a maximum sampling rate of at most, 500 samples/second -- taken from the minimum conversion time listed in the msp430g2553 datasheet.  Those two numbers are obviously not the same, which leads me to believe I'm going to run into issues.

How would you guys recommend handling this? I could beef up my processor, but that might require a bit more soldering ability than I currently have. Or I could go with a standalone ADC chip, but I'll have to read the data in sometime, and I'm not convinced my processor would be able to keep up.

Thanks!

Share this post


Link to post
Share on other sites

Hi @jBrizzle and welcome to 43oh...

Maybe use a little module?  Depending on your needs in terms of recording length and number of recordings that might work.

I have used these although not from this vendor:  https://www.amazon.com/Sound-Voice-Recording-Playback-module/dp/B018Q6TAEQ/ref=sr_1_2?ie=UTF8&qid=1489447073&sr=8-2&keywords=isd1820

They are cheap and work for a single recording but the amplification and quality isn't great.  They can be controlled with a microcontroller.

Maybe this:  http://processors.wiki.ti.com/index.php/Audio_Capacitive_Touch_BoosterPack_Hardware

I don't have experience with it but it looks interesting.  I usually have a look at what Sparkfun and Adafruit are doing as well, even if I decide to make it myself.

bluehash likes this

Share this post


Link to post
Share on other sites

You might also explore the software for one of TI's older experimenter boards which had the ability to record and play back audio for both specs and firmware.  Not energia-friendly, but still instructive.

bluehash likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now