Advertisement

Reading and Writing to an SD Card

  • Michael McRoberts
Chapter

Abstract

Now you are going to learn the basics of writing to and reading from an SD Card. SD Cards are a small and cheap method of storing data, and an Arduino can communicate relatively easily with one using its SPI interface. You will learn enough to be able to create a new file, append to an existing file, timestamp a file, and write data to that file. This will allow you to use an SD Card and an Arduino as a data-logging device to store whatever data you wish. Once you know the basics, you will put that knowledge to use to create a time-stamped temperature data logger.

Keywords

Temperature Sensor Serial Port File Object Initialization Fail Slave Device 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Michael McRoberts 2013

Authors and Affiliations

  • Michael McRoberts
    • 1
  1. 1.KentUK

Personalised recommendations