Teensy 4.1 recording sound and saving it to SD card with the correct date

Status
Not open for further replies.

jono_ph

Member
Hi all, hope this message finds you well..

I am trying to record sounds and save it to my micro sd card. I get it right to record and save the sound(even tho there is a constant noise there in the background which I must still figure out) to my micro sd card, but the timestamp is wrong. I am pretty new to the teensy I will admit, but I am struggling to wrap my head around getting everything to synchronize well...

The basis of my code is using the WavFileWriter program from https://github.com/Foaly/WavFileWriter in order to record sound, and the I am using TimeTeensy3 to set the time...

So I would like to find out the following based on the numbering of the screenshots:
1) Why is the date being set as 2000/01/01, or more importantly, where should I look to access this and modify it
2) My code can only work for the name second.wav, when I change it, it no longer works

I still plan to implement data-logging, in order to record sounds for example 30 minutes every hour, and want to save it at the correct times.
 

Attachments

  • 1.JPG
    1.JPG
    21.4 KB · Views: 52
  • 2.PNG
    2.PNG
    17.5 KB · Views: 50
  • Thesis.ino
    3.5 KB · Views: 42
Status
Not open for further replies.
Back
Top