Votsh Waves is using the vs8053 Audio codec to produce cool sound and light animation shows. Details at http://www.votsh.com. We prototyped Waves using Adafruit's VS1053 breakout board. It was a great experience and we thank Adafruit for excellent products.
The Adafruit vs8053 software library has a bug when setting the volume of playback:
https://github.com/adafruit/Adafruit_VS ... 1053.h#L44 should be:
#define VS1053_REG_VOLUME 0xC045
The data sheets for vs8053 and vs1053 confirm 0xC045 is the correct address. I confirmed this on the Waves board today.
Michael Grant of Kazatchu Design Systems solved this issue. Michael is a wonderfully talented Arduino board designer. Detail on his work are at http://krazatchu.ca
-Frank
VS1053 library volume settings incorrect
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: VS1053 library volume settings incorrect
Thanks for the feedback. I'll forward this to the team.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: VS1053 library volume settings incorrect
Thanks for the note - when we look in the VS1053 library we see SCI_VOL which is 0x0B. We also tested this library with adjusting volume this way and it works....0xC045 is for the recording volume...?
-
- Posts: 3
- Joined: Tue Nov 05, 2013 6:54 pm
Re: VS1053 library volume settings incorrect
It appears that 0x0B is the volume control for MIDI, which the the VS8053 lacks.
Has 0x0B been tested with WAV/MP3 playback as well?
In the datasheet for both parts, the DAC volume register is 0xC045.
There doesn't appear to be a recording level register.
For 0xC045:
Max volume is: sciWrite(0xC045, 0x0000);
Min volume is : sciWrite(0xC045, 0xFEFE);
Analog shutdown is: sciWrite(0xC045, 0xFFFF);
Thanks,
Michael
Has 0x0B been tested with WAV/MP3 playback as well?
In the datasheet for both parts, the DAC volume register is 0xC045.
There doesn't appear to be a recording level register.
For 0xC045:
Max volume is: sciWrite(0xC045, 0x0000);
Min volume is : sciWrite(0xC045, 0xFEFE);
Analog shutdown is: sciWrite(0xC045, 0xFFFF);
Thanks,
Michael
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: VS1053 library volume settings incorrect
yep! it has def been tested with WAV/OGG/MP3 - it sounds like the VS8053 is just different?
http://www.vlsi.fi/fileadmin/datasheets/vlsi/vs1053.pdf - see page 34, 47
http://www.vlsi.fi/fileadmin/datasheets/vlsi/vs1053.pdf - see page 34, 47
-
- Posts: 3
- Joined: Tue Nov 05, 2013 6:54 pm
Re: VS1053 library volume settings incorrect
Interesting!
The VS8053 is the lower cost version of the VS1053.
It decodes only license free formats and lacks MIDI, otherwise it appears to be the same where the features/registers overlap.
The VS8053 is the lower cost version of the VS1053.
It decodes only license free formats and lacks MIDI, otherwise it appears to be the same where the features/registers overlap.
- GB_GH
- Posts: 9
- Joined: Wed Aug 12, 2015 3:54 am
Re: VS1053 library volume settings incorrect
Hi
I'm also having a problem connected to this topic. (see viewtopic.php?f=31&t=78406 )
The release library defines VS1053_REG_VOLUME as 0x0B and this correctly controls the output level when playing .WAV files but it does not control the output level when playing MIDI files. I tried 0xc045 and strangely it semed to work the same as 0x0b - ie. no effect on MIDI playback.
Did anyone ever get any further with this issue please ?
Geoff.
I'm also having a problem connected to this topic. (see viewtopic.php?f=31&t=78406 )
The release library defines VS1053_REG_VOLUME as 0x0B and this correctly controls the output level when playing .WAV files but it does not control the output level when playing MIDI files. I tried 0xc045 and strangely it semed to work the same as 0x0b - ie. no effect on MIDI playback.
Did anyone ever get any further with this issue please ?
Geoff.
Please be positive and constructive with your questions and comments.