Blog Home

microSD module from Libelium

dcuartiellesFebruary 17th, 2009

I am starting my review series talking about the microSD module from Libelium. It is a tiny board (45x23mm) that can be used with any microcontroller platform able of communicating over SPI. I got it with a 1GB microSD card and a set of male headers that allow connecting the board to the digital pins 8 to 13. It is also possible to connect the board directly to Arduino’s programming header, since the SPI port is the one used to burn the Arduino bootloader.

(c) 2009 D. Cuartielles, Arduino color with microSD module

(c) 2009 D. Cuartielles, Arduino color with microSD module

The nice thing about the microSD module is that when connected to the digital pins, you won’t need any other wires to get it to work. Pulling pin 8 to HIGH is enough to power up the SD card. Libelium, on their wireless sensor networks website, have made great documentation of their board.

I am writing some code examples for them for some months now. We work together in some other open source project. I ask if it was OK to pre-release some of the code I am making for them regarding SD cards. After getting a green light, I invested my Sunday night in making a nice library for this article to be found at my open source repository.

I have now a good tool to push data into the card (with some limitations), read existing files, append strings to files, log sensor data or play pre-recorded sounds (more to come on this topic). The module’s form factor make it great to be included in many of the projects I face in my everyday work. I hope I hadn’t given Dave Mellis the second microSD module we got.

Remember you can win one of this modules if you participate in Libelium’s design contest. If you cannot wait that long, it is not expensive to get one and start with your experiments.

If you want more references about this design on, visit:

For getting the board’s code:

For getting the board:


6 Responses to “microSD module from Libelium”

  1. rigerm Says:


    Is there anyone who knows the scheme of microSD module??

    Thank you

  2. dcuartielles Says:

    You should ask Libelium for it, it is their design.

    However, more or less all the designs dealing with SD cards have a similar starting point which is to have resistor bridges to interface the pins of the card, since they work at 3V3 and the microcontroller runs at 5V.

    Hope that helps.

  3. anni Says:


    I would like to ask if the file you provide is ok, because even though I run the code and everything seems fine, it seems there is a problem with the file and I get an error when it comes to read the file or write. Forgive me if i am new in these thing, but I am really interested in your work cause of my diploma project.

    Thank you

  4. dcuartielles Says:


    if you hare having problems with my code, please go to:, register as user and post your issues at:

    I am pretty sure this library works, so I might have to give you a hand configuring it for your set-up. Your feedback will help me making it easier for others as well, please get back with your questions.


  5. Norberto Says:

    I can only save the values 12 – 16 times in the SD card after that the code that is in don’t work

  6. Says:

    Why don’t you send an email to them?

    thanks for commenting


Leave a Reply

You must be logged in with your Arduino account to post a comment.