Hello, I'm hoping this is a quick answer/confirmation of what I'm suspecting.
I purchased a headerless Leonardo and the micro SD card breakout board (to replace the faulty one I got from LLC). The breakout board and card work great with an Arduino Uno, but after attaching to my Leonardo and uploading the same sketch, the card fails to initialize.
Digging around here: http://arduino.cc/en/Main/ArduinoBoardLeonardo, looks like the Leonardo only provides 50 ma on the 3.3 pin and unless you're using 7v or more for your input power, the 5v on the board is unstable. Given that, when my Leo boots, I see the activity LED on the card breakout and Leo flicker (dimmer than with the Uno) before the init fail message.
I'm guessing I need to either increase the voltage being supplied to the Leo (using a 5v USB battery pack as power) or connect the micro SD breakout board to the positive 5V of the power supply and not the Leo's 5V pin but I defer to people smarter/more knowledgeable than me
Arduino Leonardo + micro SD breakout (id 254)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- the_mage18
- Posts: 5
- Joined: Wed Sep 18, 2013 8:28 pm
- the_mage18
- Posts: 5
- Joined: Wed Sep 18, 2013 8:28 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
Correction: I'm using a 5v USB battery to power the Leonardo
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
Could you post clear pictures of your board and the connections to it?
- the_mage18
- Posts: 5
- Joined: Wed Sep 18, 2013 8:28 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
Sorry for the delay, here is how I have the SD breakout board connected:
- Attachments
-
- Pins 10-13 and Ground
- IMG_0901.JPG (26.42 KiB) Viewed 667 times
-
- 5v Connection
- IMG_0899.JPG (83.14 KiB) Viewed 667 times
-
- Overall Shot
- IMG_0898.JPG (79.79 KiB) Viewed 667 times
- the_mage18
- Posts: 5
- Joined: Wed Sep 18, 2013 8:28 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
And side view of the pins
- Attachments
-
- IMG_0900.JPG (44.92 KiB) Viewed 667 times
- the_mage18
- Posts: 5
- Joined: Wed Sep 18, 2013 8:28 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
Ok, an update. I removed the card, replaced the pins and tested the break put on my Uno. It works properly on the Uno but I cannot get it to work (using pin 10 as the CS pin) with the Leonardo.
I'm using the Adafruit SD card library and the Card Info sketch on both. Is there something different I need to do for a Leonardonvs. an Uno?
I'm using the Adafruit SD card library and the Card Info sketch on both. Is there something different I need to do for a Leonardonvs. an Uno?
- Takeru82
- Posts: 3
- Joined: Thu Apr 21, 2016 7:23 am
Re: Arduino Leonardo + micro SD breakout (id 254)
Hello there,
I have the same problem. I´m using an Arduino Leonardo but I have no Arduino Uno.
The wiring is OK and I´m sure that the solding is also OK.
But every time I tried the SD-examplecode which is discribed at
https://learn.adafruit.com/adafruit-mic ... al/library
I´ve got the failluremessage.
I have no idea what I can do to run the SD-Card Breakout.
I would be very happy if somebody could help me.
Sincerely Takeru82
I have the same problem. I´m using an Arduino Leonardo but I have no Arduino Uno.
The wiring is OK and I´m sure that the solding is also OK.
But every time I tried the SD-examplecode which is discribed at
https://learn.adafruit.com/adafruit-mic ... al/library
I´ve got the failluremessage.
I have no idea what I can do to run the SD-Card Breakout.
I would be very happy if somebody could help me.
Sincerely Takeru82
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
Could you post large (less than 1meg,~800x600), clear, detailed pictures of both sides of your board showing any soldering you have done and the connections to it? Also if you could post the exact error message that would help.
- Takeru82
- Posts: 3
- Joined: Thu Apr 21, 2016 7:23 am
Re: Arduino Leonardo + micro SD breakout (id 254)
Hello franklin,
thank you very much for your quick answer.
As you can see in the pictures I had tested PIN 9 at last, but the failluremessage is the same at PIN 10.
It reads as follows:
"Initializing SD card ... initialization failed. Things to check:
* is a card is inserted? (yes it is)
* is your wiring correct (wires are OK and correct connected)
* did you change the chipSelect pin to match your shield or module? (as I said: I tried PIN 10 and 9)"
In my opinion there is everything OK with the soldering, but maybe you could find the problem.
I´m very thankful for your help.
Sincerely Takeru82
thank you very much for your quick answer.
As you can see in the pictures I had tested PIN 9 at last, but the failluremessage is the same at PIN 10.
It reads as follows:
"Initializing SD card ... initialization failed. Things to check:
* is a card is inserted? (yes it is)
* is your wiring correct (wires are OK and correct connected)
* did you change the chipSelect pin to match your shield or module? (as I said: I tried PIN 10 and 9)"
In my opinion there is everything OK with the soldering, but maybe you could find the problem.
I´m very thankful for your help.
Sincerely Takeru82
- Attachments
-
- 20160422_133016_2.jpg (239.31 KiB) Viewed 449 times
-
- 20160422_134410_2.jpg (63.56 KiB) Viewed 449 times
-
- 20160422_132944_2.jpg (268.24 KiB) Viewed 449 times
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Arduino Leonardo + micro SD breakout (id 254)
The SPI pins on the Leonardo are not in the same place as on the Uno. From the Arduino Leonardo boards page:
SPI: on the ICSP header. These pins support SPI communication using the SPI library. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Leonardo's 6-pin ICSP header, the shield will not work.
- Takeru82
- Posts: 3
- Joined: Thu Apr 21, 2016 7:23 am
Re: Arduino Leonardo + micro SD breakout (id 254)
Dear franklin,
thank you very much for your quick support. Yesterday I had a little bit of time to tinker again. Unfortunately it still doesn´t work. I did as the following page shows:
http://www.instructables.com/id/Connect ... -Leonardo/
But I used PIN 10 instead PIN 4.
And I´m not sure if it´s correct to connect CD and CS together.
Could you help me again please?
Thank you!
thank you very much for your quick support. Yesterday I had a little bit of time to tinker again. Unfortunately it still doesn´t work. I did as the following page shows:
http://www.instructables.com/id/Connect ... -Leonardo/
But I used PIN 10 instead PIN 4.
And I´m not sure if it´s correct to connect CD and CS together.
Could you help me again please?
Thank you!
Please be positive and constructive with your questions and comments.