Skip to content
Discussion options

You must be logged in to vote

There are quite a few things that can go wrong:

  • What is the output if you set the log level to info ? You should see repeated copy lines while recording.
  • The SD library is quite slow and might not keep up with the amout of data produced : did you try to reduce the sample rate ? I would recommend to use SDMMC instead of the SD
  • For testing: Try to add an audioFile.flush(); after each copy step to force a write to the SD card
  • I would recommend to print the file size at the end to get a visual confirmation of the stored data
  • Maybe something is wrong with your SD card: here is a similar tested sketch that records and plays.

ps.

  • As a general note: On Microcontrollers it is not recommended to…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@dandeliondandy
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
3 replies
@dandeliondandy
Comment options

@pschatzmann
Comment options

@dandeliondandy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants