Help! How to record on an SD card with vs1005?!

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
321go
User
Posts: 10
Joined: Sun 2018-09-02 7:16

Help! How to record on an SD card with vs1005?!

Post by 321go » Sun 2018-12-09 15:55

Hello!

We want to add a recording-function to our player-code and need some help. Here´s what we want to do:
- Recording via the microphone input of the VS1005g
- Using the AGC (Automatic Gain Control), so the shots appear the same loud
- Use of a high-pass filter to filter out any hum
- Save the individual tracks on an SD card
- Allow deletion of taken recordings
- Recording is started / stopped by querying a variable, which is influenced by a switch on a GPIO pin
- In addition, the variable should be influenced if:
1. No more memory space is available on the SD card -> Save this error condition in a variable
2. The SD card is ready with save and is ready for the next shot

Is there any code available already or is there anybody out there wo can help?
If someone would like to help as a freelancer please tell me! I put it (with some other points) on https://www.freelancer.com/projects/mic ... h-existing

Best regards,

Martin

Hannu
Senior User
Posts: 58
Joined: Mon 2016-05-30 11:54

Re: Help! How to record on an SD card with vs1005?!

Post by Hannu » Mon 2018-12-10 10:36

Hello!

You might want to check out the SimpleMp3Encoder solution from root_and_sources package. Which does quite many requirements.

For the low pass filter VSIDE_DSP_lib provides tools for designing filters.

The individual building blocks are documented in audio and shell documentation. You can find them from the doc directory of the root and solutions package or links below.

Audio system documentation: http://www.vlsi.fi/fileadmin/software/V ... _Audio.pdf
VSOS shell documentation: http://www.vlsi.fi/fileadmin/software/V ... _Shell.pdf
VSIDE_DSP_lib: viewtopic.php?f=7&t=1593
Latest root and solutions zip file: download/file.php?id=1647
The thread has announcements and new kernels and root and source code packages: viewtopic.php?f=13&t=680

I hope those resources help you on the development.

321go
User
Posts: 10
Joined: Sun 2018-09-02 7:16

Re: Help! How to record on an SD card with vs1005?!

Post by 321go » Mon 2018-12-10 15:31

Hello Hannu,
thank you very much for the detailled help, that´s very kind. We will have a look at these links.
Best regards,
Martin

Post Reply