Code Monkey home page Code Monkey logo

cfcard-arduino's Introduction

CFCard-Arduino

Library for Arduino Mega that supports CF Cards and PATA drives. With this library you can save and read data (raw data or files) on a Compact Flash card or PATA hard disk.

Installation

Copy the files to your project or Arduino library folder. Wire the Arduino and hard disk as shown below. For CF Cards, PATA adapters are available. Connection

Read and write raw data

Directly read or write sectors of a hard disk or CF Card. See example under Examples/raw_io

Read and write files

If the SDFat library V2 from Bill Greiman is installed, data carriers formatted with FAT16 / 32 can also be read or written.

  • Set #define SPI_DRIVER_SELECT 3 in SDFat/src/SdFatConfig.h
  • Then uncomment "#define USE_FAT" in CFCard.h Most of the functions provided by the SDFat library should work with CF Cards and PATA drives as well. See Examples/file-io
  • A downside of the SDFat library is however, that that it can only deal with volumes that have a master boot record (MBR). Compact Flash cards formatted with Windows don´t have an MBR, but Windows users need not despair. There is a free tool, called Rufus available that can format the drive so that it is accepted by the SdFat lib.

cfcard-arduino's People

Contributors

michalin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.