Welcome! Log In Create A New Profile

Advanced

howto: gravitech micro SD adapter to Sanguinololu pins

Posted by TheCase 
howto: gravitech micro SD adapter to Sanguinololu pins
August 10, 2011 11:25PM
I searched all over for this and found nothing. So I figured it out.

I got this (rather inexpensive @ $15US!!) micro SD adapter:

http://www.gravitech.us/micaad.html

here are the pin translations to the sanguniololu board, you can use a 5x2 female pin header - it will span from the ISP programming header to reach the A0 on the extension pins header:

sanguinololu (1.3a)     SD adapter
-----------------       -------------------                     
   MISO                    DO
   SCK                     SCK
   MOSI7                   DI
   A0                      CS
   GND                     GND
   5v                      VIN


Hope this helps someone here. I've never posted to a Wiki, so that's why this info is here for now...
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 11, 2011 02:10AM
UPDATE: the pinouts described are working - was a software problem after all. Ignore the previous contents of this particular post.

- - - - - - - - - - - - - - -
perhaps I spoke too soon. I can certainly read the filelist from the card, as well as upload new files to it...

But I'm not sure if it's pronterface or my card connection when I try to perform the SD Print function. It just sits there. Pause button is enabled, but clicking it does nothing.

Edited 1 time(s). Last edit at 08/24/2011 04:57PM by TheCase.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 14, 2011 05:50PM
You need to step down the logic level voltage from 5v to 3.3v which the SD card needs.


Charles Gantt.
Build blog [themakersworkbench.com] <---- my personal site
Build worklong [www.thebestcasescenario.com]
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 14, 2011 05:52PM
There is already a regulator on board.

The page clearly states:

VIN: Input power to the SD card (3.3V to 6.0V)


I'd assume if I can read and write, then the voltage is not an issue.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 14, 2011 05:58PM
Yes it may be stepping down the Vss down to 3.3 but not the logic level voltages. That must be done with an IC like You need to using something like a 74HC4050D for that.


Charles Gantt.
Build blog [themakersworkbench.com] <---- my personal site
Build worklong [www.thebestcasescenario.com]
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 14, 2011 09:18PM
Did you even check the link? It's in there.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 24, 2011 04:49PM
I have this installed on RAMPS 1.2 and it works well. The level shifters are built in to the microSD card. Here's my post in the RAMPS forum: [forums.reprap.org]
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 24, 2011 04:55PM
Yes - that topic is where I started on figuring out the pinouts. Thanks for posting that information, extremely helpful!

I tried a different variant of pronterface - and the "SD Print" function worked. So, it was a software problem after all.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 24, 2011 06:06PM
It works really well for SD printing. But I wished that the IO speed is a bit faster when uploading the g-code file to the microSD card. It's a bit inconvenient to pull the microSD card out from the RAMPS, plug it into the PC/Mac, copy the files after renaming to 8.3 filename, return it to RAMPS and then do a reset before you can print.

Edited 1 time(s). Last edit at 08/24/2011 06:44PM by brnrd.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 24, 2011 06:16PM
For sure... you'd figure it could just upload the pre-generated G-Code as a file (as it has already been saved to your hard disk anyhow).

Maybe a possibility for a future printrun improvement - looks like the SD printing thing is still in its infancy...
Re: howto: gravitech micro SD adapter to Sanguinololu pins
August 24, 2011 06:46PM
Unfortunately, the limit is the IO speed of the Arduino. Perhaps the transfer speed can be increased by using binary format or by compressing the g-code text file before uploading to the microSD card.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
October 03, 2011 05:39AM
Thanks for putting this up.
I'm trying the same thing with the adafruit MicroSD breakout board to Sanguinololu v1.2
I have SD support enabled in firmware.

Pins from Sanguiololu to adapter are:

Sanguinololu v1.2 SD adapter
Miso DO
Sck CLK
Mosi DI
A0 CS
Gnd GND
5v 5V

With no card in the reader I get 'SD.init fail' which seems about right.
With the card inserted I get 'volume.init fail'.
Tried different cards, re-formatting the cards, slower baud rates - still can't get it to work.
Using Sprinter and Printrun Proterface.

Any ideas?
Re: howto: gravitech micro SD adapter to Sanguinololu pins
October 09, 2011 12:42AM
it should be formatted as FAT. Not sure, but I have always had the card inserted and ready on board power up

That's all I can offer at the moment. Make sure you have the latest version of printrun.

Edited 1 time(s). Last edit at 10/09/2011 12:43AM by TheCase.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
October 09, 2011 04:00AM
Format as FAT-16.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Re: howto: gravitech micro SD adapter to Sanguinololu pins
October 19, 2011 01:44AM
Tried all the above suggestions but got the same result.
Tried it on a v13a board (I'm building another printer) but still nothing.
Have ordered the Gravitech reader and I'll see how that goes when it gets here.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
November 01, 2011 07:56PM
Replaced the Adafruit reader with a Gravitech one and it works fine.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
November 01, 2011 08:25PM
Hmm. I hope you can still return the Adafruit reader.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
November 01, 2011 09:12PM
Could return it but with shipping costs and time, it's probably not worth the effort compared to what the reader is worth.
Besides, I'm not sure if the board is faulty or if there is some sort of comptibility issue with the Adafruit board, Sanguinololu 1.2 and Sprinter.
Re: howto: gravitech micro SD adapter to Sanguinololu pins
December 14, 2011 05:18PM
Wish I had read this before regarding the adafruit board, I spent a frustrating evening trying to get this simple adaptor working.
Sorry, only registered users may post in this forum.

Click here to login