Please help with SD Card reader connections...

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have various motion controlled devices, from a Bridgeport CNC machine, to a laser cutter, 3d printer, and pick-n-place project. Many use Ardiunos for a simple CNC control. I recently purchased a Re-ARM board which intended to be a replacement for an Arduino Mega with a RAMPS board for 3D printer control.

 

 

The Re-ARM uses a 32-bit LPC1768 ARM processor, and runs Smoothieware. At boot-up, Smoothieware reads a config file on a micro SD card and can also run a g-code program from the SD card.

 

I wanted to have easier access to the SD Card so I got an extension like this:

 

When I installed the end into the micro SD card reader slot, it is a little thicker than a real SD card and subsequently destroyed the reader. Without a working SD card reader, the board is useless.

I have removed the ruined SD card slot from the Re-ARM board and installed a header in the through holes shown here:

 

(this isn't my actual board)

 

I have an SD breakout board from Sparkfun, that I want to connect.

 

 

 

This is a schematic of the Re-ARM SD card connections.

 

 

Since the nomenclature on the SparkFun board is different from that of the schematic, I don't know what connects to what.

 

My question:

 

Can somebody please help me with the appropriate connections?

 

Thanks in advance!

 

Cris

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Below are some of my notes on an SD interface from a couple of years ago.

Disclaimer:  Although I have the hardware, I haven't written the SD interface yet, (back burner project...), so I've not actually fully tested this layout.

 

Others might look at it and say: "Yes, looks reasonable", or "No way, not going to work, need to change ..."

That said, I fully expect this HW to work.

 

And that said, I see my notes on this page that say I made a mistake on the PCB layout for the LC filter feeding the card's Vcc.

That part, at least, should already be on your PCB!

 

JC

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks DocJC!

 

Your documentation uses the nomenclature shown on the schematic I have. My confusion is the nomenclature on the SparkFun board doesn't match:

 

D1

D2

CMD

CD

CLK

VCC

GND

D0

D1

WP

 

CLK, VCC, and GND are the only terms that make sense to me....

 

Anyone know what the others are?

 

I don't know where to connect CS, DI, and DO.

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

Last Edited: Sat. Jul 29, 2017 - 09:32 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One is showing SPI mode the other 4-bit SD bus mode.

The diagrams here should help.

 

Edit: Typo

Edit: Added diagrams for future reference in case the link goes dead:

David (aka frog_jr)

Last Edited: Sun. Jul 30, 2017 - 01:01 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

PERFECT!!!

 

Thanks frog!

 

Just what I need!

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Additionally, my diagram shows a top down view of the card and its pins.

You can compare it to the breakout board's schematic and PCB layout and correlate the two.

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After digesting all the above information, I have a diagram for the pigtail to link the SD card board to the Re-ARM board:

 

I'll test it soon and report back.

 

Thanks again to frog and DocJC.

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SUCCESS ! ! !

 

Smoothieware boots up normally so everything works.

 

Here is my pigtail....

THANKS !

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

Last Edited: Sun. Jul 30, 2017 - 06:53 PM