RE: Order #293391
I believe i have a defective VS1053 as part of this order. I can see no indication that the breakout board powers up, nor can I get access to the SD Card to work via either an UNO or Micro Controller Chip. What is the best way to RMA the product to get another one?
Order #293391 Defective VS1053
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Order #293391 Defective VS1053
Let's start with a photo or two so we can double-check your setup & connections.
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Thanks, Bill,
I can get you some photos of it hooked up to the UNO this evening when I return from work.
One question, does the VS1053 have an indicator (light) that it is receiving power? To the best of my ability I can't even tell if it is being powered up.
-- Joshua
I can get you some photos of it hooked up to the UNO this evening when I return from work.
One question, does the VS1053 have an indicator (light) that it is receiving power? To the best of my ability I can't even tell if it is being powered up.
-- Joshua
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Order #293391 Defective VS1053
There is no power indicator on the board.does the VS1053 have an indicator (light) that it is receiving power?
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Hey Bill,
Here are the pictures on the breadboard and hooked up to the UNO
I can get the sine test to work, but it keeps telling me that it can't open the file. I have a 16gb FAT 32 SDCard with the files in the root of the directory. I can't get the card to read, or the SD example sketch to list out the files.
The next test I can run is to find a utility to format the 16GB card as Fat16 at a smaller disk size.
Here are the pictures on the breadboard and hooked up to the UNO
I can get the sine test to work, but it keeps telling me that it can't open the file. I have a 16gb FAT 32 SDCard with the files in the root of the directory. I can't get the card to read, or the SD example sketch to list out the files.
The next test I can run is to find a utility to format the 16GB card as Fat16 at a smaller disk size.
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Hey Bill,
Here are the pictures on the breadboard and hooked up to the UNO
I can get the sine test to work, but it keeps telling me that it can't open the file. I have a 16gb FAT 32 SDCard with the files in the root of the directory. I can't get the card to read, or the SD example sketch to list out the files.
The next test I can run is to find a utility to format the 16GB card as Fat16 at a smaller disk size.
Here are the pictures on the breadboard and hooked up to the UNO
I can get the sine test to work, but it keeps telling me that it can't open the file. I have a 16gb FAT 32 SDCard with the files in the root of the directory. I can't get the card to read, or the SD example sketch to list out the files.
The next test I can run is to find a utility to format the 16GB card as Fat16 at a smaller disk size.
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Here is something else I noticed.
I ran the SD Example sketch "Listfiles" This failed to initialize the SD Card.
I saw this line in the code
My CS Pin is set to 10, but I was curious so I set the following line in the code to pin 4
This listed all of the files on the SD Card Properly.
I went back to the Player_Simple Example and changed the following line from pin 10 to reflect pin 4
[/code]
The audio now plays but is very garbled.
I did not change the wiring and CS is still attached to Pin 10 and Pin 4 is attached to SDCS on th VS1053.
Does this help determine what is going on? Here is the complete list if pinouts for the UNO.
Again when CS is set to 10 the audio does not run, but if I change that line to #define CS 4. I will get garbled Audio and can list out the files on the SD Card with the LISTFILES sketch from the SD Card Exampoles
I ran the SD Example sketch "Listfiles" This failed to initialize the SD Card.
I saw this line in the code
Code: Select all
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
pinMode(10, OUTPUT);
if (!SD.begin(10)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");
root = SD.open("/");
printDirectory(root, 0);
Serial.println("done!");
}
Code: Select all
pinMode(4, OUTPUT);
I went back to the Player_Simple Example and changed the following line from pin 10 to reflect pin 4
Code: Select all
[code]#define CS 4 // VS1053 chip select pin (output)
The audio now plays but is very garbled.
I did not change the wiring and CS is still attached to Pin 10 and Pin 4 is attached to SDCS on th VS1053.
Does this help determine what is going on? Here is the complete list if pinouts for the UNO.
Code: Select all
// define the pins used
#define CLK 13 // SPI Clock, shared with SD card
#define MISO 12 // Input data, from VS1053/SD card
#define MOSI 11 // Output data, to VS1053/SD card
// Connect CLK, MISO and MOSI to hardware SPI pins.
// See http://arduino.cc/en/Reference/SPI "Connections"
// These can be any pins:
#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 CARDCS 4 // Card chip select pin
// DREQ should be an Int pin, see http://arduino.cc/en/Reference/attachInterrupt
#define DREQ 3 // VS1053 Data request, ideally an Interrupt pin
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Final item of note, it seems to only be playing the sound clip that is inturrupt driven, or this line in the code.
Code: Select all
// Play another file in the background, REQUIRES interrupts!
musicPlayer.startPlayingFile("THRILLER.mp3");
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Order #293391 Defective VS1053
This board has several devices sharing the SPI bus. Each of these devices shares the MODI, MISO and SCLK signals, but has a separate CS (chip select) pin. To play files from the SD card, you actually need to use 2 CS pins. One for the Codec and one for the SD card itself.My CS Pin is set to 10, but I was curious so I set the following line in the code to pin 4
On the breakout board, the CS for the codec is labeled "CS" and the CS for the SD card is labeled "SDCS" (There is also a command data select pin labeled "XDCS").
For the example code in the library, Pin 10 is used for the Codec CS and pin 4 is used for the SD CS.
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Hey BIll,
That is exactly how I have things wired right now
CS == Pin10
SDCS == Pin4
XDCS == Pin3
with this config the SDCard cannot be read. Is it a simple wiring mistake on my part? I copied what was on the VS1053 tutorial, but if a modification needs to be made let me know.
That is exactly how I have things wired right now
CS == Pin10
SDCS == Pin4
XDCS == Pin3
with this config the SDCard cannot be read. Is it a simple wiring mistake on my part? I copied what was on the VS1053 tutorial, but if a modification needs to be made let me know.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Order #293391 Defective VS1053
Do you have a different SD card to test with? It sounds like you are talking to the CODEC fine, and if you were able to list the files, the SD interface is at least partly working.
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Hey Bill!
That did the trick, I replaced the Lexar 16 GB High-Performance microSDHC Card, with an 8gb SanDisk MicroSDHC Card, and everything came together! Thanks for the help on this one!
That did the trick, I replaced the Lexar 16 GB High-Performance microSDHC Card, with an 8gb SanDisk MicroSDHC Card, and everything came together! Thanks for the help on this one!
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
One more question, now that I am trying to get it to work on the Arduino Micro I believe that the CLK, MOSI and MISO pins are as follows
#define CLK 13 // SPI Clock, shared with SD card
#define MISO 14 // Input data, from VS1053/SD card
#define MOSI 16 // Output data, to VS1053/SD card
WHen I do this I am back to not being able to read the SD Card. Do I possibly have these incorrect?
-- Joshua
#define CLK 13 // SPI Clock, shared with SD card
#define MISO 14 // Input data, from VS1053/SD card
#define MOSI 16 // Output data, to VS1053/SD card
WHen I do this I am back to not being able to read the SD Card. Do I possibly have these incorrect?
-- Joshua
- joshuakane
- Posts: 282
- Joined: Sat Apr 13, 2013 4:40 pm
Re: Order #293391 Defective VS1053
Changing CLK to 15 fixed the issue
Please be positive and constructive with your questions and comments.