Tag Archives: SD Card


Data recovery from a dead SD card using Arduino

A Secure Digital (SD) memory card is the most standard memory card for use in mobile electronic devices, such as cell phones, digital cameras, GPS devices, and tablet computers. Communication with an SD card can be done in one of two modes: the SDIO mode and the SPI mode. By default, the SD card operates in the SD mode, which is much faster than the SPI mode and is thus more preferable in the portable devices for achieving high-speed data transfer. If you have a damaged SD card that contains valuable information, this example shows you might have a chance to retrieve most of your data through an SPI interface using an Arduino board.

SD data recovery using Arduino

Netduino Day 6 – Read SD card and send info to a Serial Port

In our earlier tutorial, Writing to an SD Card, we learned to write to an SD card. As you might have experienced, in order to see what’s been written, we need to pop out the SD then connect it to a computer, which obviously is not very convenient all the time. So, in this tutorial we will read a text file (same file/information that we wrote in previous tutorial) and send that text to a computer. Our communication between Netduino SD card and Computer is established via Serial Communication using USB to UART-TTL device. So, the information will be transferred to a computer in a Component Object Model (COM) port.

Text file content form SD card

There are two major parts of this tutorial; first reading the data from SD Card and sending it to a computer, second an application listening to a COM port to retrieve the data. Besides these, in this tutorial we will touch on following major objects:

  • Serial Communication
  • InterruptPort
  • EventHandler (Native and SerialDataReceived)
  • StreamReader

Read more

Netduino Day 5 – Writing to an SD Card

Expandable memory is always a plus no matter whether it’s a Phone, Camera or a Microcontroller. Even advantageous if we know how to use it. In this fifth day Netduino tutorial, we will learn a few writing operations about an SD card. We will learn how to write to a text file, shown as an example of writing a log. The Logger class is also capable of creating a text file at any given location then writing some text information to it.

SD Card in Netduino Plus

Read more