element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum SD Card interface board made by LC Studio/lcsoft.net
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 43 replies
  • Answers 2 answers
  • Subscribers 414 subscribers
  • Views 6737 views
  • Users 0 members are here
  • aduino
  • sd_card
  • uno
Related

SD Card interface board made by LC Studio/lcsoft.net

neilk
neilk over 14 years ago

I am trying to get the above SD Card interface board working with my Arduino UNO. The interface board includes a 5v to 3.3v regulator and appears to have appropriate resistors to cope with 5v signals from the UNO.


The pinout on the board is not directly compatible with the header on the UNO, so I have made up some connectors and I am fairly sure I have made the connections to the SPI correctly:

 

I/F Board     Arduino Pin

CS               10

MOSI           11

SCK            13

MISO           12

 

I have tried supplying +5v, to derive 3.3v via the I/F card regulator and also supplied +3.3v directly.

 

My test program fails to find the card and returns "Card Failure", irrespective of whether there is a card present or not.

The card I am using is 2GB, formatted as FAT16 and contains a single file - "test.txt", the contents of which are simply:

test1,test2

I keep checking the card in a reader on my PC and, so far, I don't seem to have damaged it.

 

I would be grateful for any advice, please.

 

A fragment of the program is shown below:

 

//Program by Jeremy Blum

//www.jeremyblum.com

//SD Card Demonstration

//Based on Example by Tom Igoe

//Further adapted simplified by NGK to try and prove my SD Card interface board actually works!!!

 

#include <SD.h> // This is the standard SD library in version 0023

 

//These values are used by default in the standard SD Card Library

//MOSI = 11

//MISO = 12

//SCLK = 13

 

//We need to set the CS Pin - it's 10 for the UNO

int CS_pin = 10;

 

void setup()

{

  Serial.begin(9600);

  Serial.println("Initializing Card");

  //CS Pin is an output

  pinMode(CS_pin, OUTPUT);

 

  if (!SD.begin(CS_pin))

  {  

   Serial.println("Card Failure");

   return;

   }

 

  Serial.println("Card Ready");

 

  //Now read the File test.txt)

  File commandFile = SD.open("test.txt");

  if (commandFile)

  {

    Serial.println("Reading Command File");

    while(commandFile.available())

    {

      char temp = (commandFile.read());

      Serial.println(temp);

     }

  }

  else

  {

    Serial.println("Could not open command file.");

    return;

  }

}

  • Sign in to reply
  • Cancel

Top Replies

  • fustini
    fustini over 14 years ago +1 suggested
    Hi - I tried looking up the module put couldn't find much detail on the board (that translated to English with Google at least). One idea I had from working with other 3.3V modules is that logic level…
  • fustini
    fustini over 14 years ago in reply to neilk +1 suggested
    Yeah, I think the issue is 3.3V & 5V interfacing. I'm not sure if the resistor method is very good per this advice from Adafruit: http://www.ladyada.net/products/microsd/ One is that they are strictly…
  • nermash
    nermash over 14 years ago in reply to neilk +1
    According to specs at http://www.arduino.cc/en/Main/arduinoBoardUno digital IOs operate at 5 volts, so you need apropriate level shifter/buffer for SI line on the uno board. I had a simillar problem interfacing…
  • neilk
    0 neilk over 13 years ago in reply to Former Member

    I can't be sure you haven't damaged the board; however, make sure you try a number of SD Cards, which I believe should be less than 2GB capacity.

    Good Luck

    Neil kenyon

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to neilk

    I'm using a 2GB microSD in a microSD2SD adapter... I'll try to reduce the capacity, but this may be my last hope image haha thanks, by the way!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 13 years ago in reply to Former Member

    OK - I couldn't get a microSD card to work at all in my setup. I have read somewhere that newer cards sometimes require sharper pulses than the arduino can deliver. Older cards are said to be better; the ones I got working were all about 3 years old!

     

    Also,are you testing with the super simple sketch "Cardinfo" which comes with the SD card library?

     

    Keep trying........even though I destroyed my LC soft card & am now using a different make, other people have managed to get it working!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube