Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Audio Input Recording to SD Card

  1. #1

    Audio Input Recording to SD Card

    Has anyone figured out a way to record multiple songs from the audio input of the PJRC Audio Shield board and save them as wav files to the SD card for later playback? This would require auto assigning a new name to each file. I'm not sure this is possible without DOS software creating a file structure on the SD card and something the sgtl5000 chip can do on it's own. In any case, it would be nice if recording on the SD card could be done from an audio input line from a computer, CD/DVD player or cell phone. Any thoughts?

  2. #2
    Member
    Join Date
    Nov 2017
    Location
    Belgium
    Posts
    33
    Some thoughts,

    Start off with saving your recordings in raw format, when that works move to wav.
    Auto assigning a new name is just a matter of incrementing a counter at every recording.
    At boot you will have to set the value of that counter according to the last file saved.
    And last but not least, use SD lib: https://www.arduino.cc/en/Reference/SD

  3. #3

    Audio Input Recording to SD Card

    Quote Originally Posted by neurofun View Post
    Some thoughts,

    Start off with saving your recordings in raw format, when that works move to wav.
    Auto assigning a new name is just a matter of incrementing a counter at every recording.
    At boot you will have to set the value of that counter according to the last file saved.
    And last but not least, use SD lib: https://www.arduino.cc/en/Reference/SD
    Thanks much for the quick response and suggestions, it helped a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •