For a project of mine I want to playback an audio stream as well as recording an audio stream.
So I figured the VS1053B would be a perfect solution.
A friend of mine had a (non-Adafruit) VS1053B breakout available (he hasn't used it himself yet), so I figured I'd give that one a try before ordering a few from Adafruit.
After a bit of online searching, I found this product information page of the exact module I got from my friend.
It also includes a schematic of the breakout board.
So I figured, since it contains the exact same IC as the Adafruit breakout, that it would be possible to use the Adafruit_VS1053B Arduino library.
I used the tutorial on the Adafruit Learning System as a reference and hooked up the breakout to an Arduino Leonardo like this:
Code: Select all
Leo Breakout
==============
5V 5V
GND GND
GND GND
D13 SCLK
D12 SO
D11 SI
D10 XCS
D09 XRES
D08 XDCS
D03 DREQ
Code: Select all
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>
// define the pins used
#define RESET 9 // VS1053 reset pin (output)
#define CS 10 // VS1053 chip select pin (output)
#define DCS 8 // VS1053 Data/command select pin (output)
#define DREQ 3 // VS1053 Data request pin (into Arduino)
Adafruit_VS1053 audio = Adafruit_VS1053(RESET, CS, DCS, DREQ);
void setup() {
Serial.begin(57600);
while(!Serial){ delay(1); /* needed for Leonardo */ }
Serial.println("VS1053 test");
while(!audio.begin()) {
Serial.println("VS1053 not found");
audio.dumpRegs();
delay(5000);
}
audio.dumpRegs();
audio.sineTest(0x44, 500);
}
void loop() {
}
Any idea what could be the problem, or any suggestions on what I should check?
PS: The Adafruit_VS1053B library requires that I include the SD library, even if I'm not using the musicplayer, which seems a bit odd to me.
Kind regards,
Arno