This article continues a series about building a DIY digital audio recorder. Inspired by this microcontroller audio project [via], I set out to build a simple digital recording device. I chose Texas Instrument's MSP430 microcontroller for this project because it's fast (16 MHz), it's cheap ($1), and it's very low power. Read the first part, and the second part.
This week we'll progress towards a digital audio recorder by playing audio files from a SD memory card. First, we'll convert an audio file to a raw format and image it directly to a SD card. Then, we'll interface the SD card with the MSP430 and play an audio file. See it in the video:
Next time we'll extend this basic circuit to include a microphone and audio recording capabilities.
Read on to learn more about generating audio with a microcontroller.
Ian, I love your work here. I was wondering if I can see a listing of your code.
I have worked on a simular project. I read a SD card. Actually I use the MSP430 to read a SD card and us it for boot flash for a DSP... I do think a very simple FAT system could be used for such an application, but I just format the card then put the file on it. This puts the file at the same place every time. That is the first data sector of the FAT... I do think I could get the FAT working, but for my case it has not been needed. I am using F2012...
Reader comments (Page 1 of 1)
Ian,
ReplyI love your work here. I was wondering if I can see a listing of your code.
I have worked on a simular project. I read a SD card. Actually I use the MSP430 to read a SD card and us it for boot flash for a DSP... I do think a very simple FAT system could be used for such an application, but I just format the card then put the file on it. This puts the file at the same place every time. That is the first data sector of the FAT... I do think I could get the FAT working, but for my case it has not been needed. I am using F2012...
Anyway I would love to see your listing of code.
Matthew
Thanks Matthew,
ReplyYou can find all the code and design files in the project archive. It's linked at the top of page five:
http://www.diylife.com/2008/04/25/make-a-talking-msp430-microcontroller-part-5/
Cheers,
Ian