VS1000 Audio Module - GPIO - is playback interruptible?

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
obiquiet
User
Posts: 3
Joined: Mon 2017-02-20 1:32

VS1000 Audio Module - GPIO - is playback interruptible?

Post by obiquiet »

Before I try to setup the module for GPIO, I would like to know if the pin-control allows the currently playing file to be interrupted by starting to play another file. This is critical in my application.

Thank you!
-ObiQuiet
User avatar
pasi
VLSI Staff
Posts: 2174
Joined: Thu 2010-07-15 16:04

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by pasi »

Yes, in the default GPIO mode, if the value indicated by the GPIO pins change to anything else than 0, and it's different than the currently playing track, the playback is canceled to play the new track.

(In the prioritized mode (one GPIO for each track) lower GPIO's have priority.)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
obiquiet
User
Posts: 3
Joined: Mon 2017-02-20 1:32

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by obiquiet »

Thank you!
kiodisplays
User
Posts: 1
Joined: Mon 2017-03-27 23:39

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by kiodisplays »

Is it possible to interrupt the currently playing track? I need it to play the next track on the same input pin.
User avatar
pasi
VLSI Staff
Posts: 2174
Joined: Thu 2010-07-15 16:04

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by pasi »

kiodisplays wrote:Is it possible to interrupt the currently playing track? I need it to play the next track on the same input pin.
Yes. In the GPIO-controlled version, if the value in the GPIO pins changes and is non-zero, the current track is canceled and the new track is played.

(With the priorities option each GPIO selects one song, and lower-numbered GPIO's have priority over higher-numbered. A higher number GPIO pin does not interrupt the playing of a current file, even if the lower number GPIO pin is no longer set.)
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Damiano1973
User
Posts: 1
Joined: Tue 2021-03-30 8:16

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by Damiano1973 »

To your kind attention

I recently purchased an Adafruit Audio FX module, which mounts your VS1000D chip.
The Adafruit site claims that your code is not open source
After reading this post

it seems to be possible to reactivate an audio file before it is finished or activate a new one before the previous one is finished.
I tried various ways but until the sound stopped I couldn't turn it back on.
Being new I wonder if you can tell me which software you are referring to to activate a reactivable mode from the GPIO inputs.

waiting for your answer I wish you a good day

Damiano
User avatar
pasi
VLSI Staff
Posts: 2174
Joined: Thu 2010-07-15 16:04

Re: VS1000 Audio Module - GPIO - is playback interruptible?

Post by pasi »

As far as we know, the module's firmware closely follows the VS1000 Audio Module firmware, which can be found from http://www.vlsi.fi/en/products/vsmd001.html

With UART-controlled version you have full control over the playback, and it would be easy to restart a song or skip to the next one.

With GPIO-controlled version you have pretty limited control. Playback only changes to a new file if there is a non-zero number that is different than the currently playing file. If you have each song stored twice, you can restart by starting playback of the other copy of the same song.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Post Reply