

PinMode( 8, OUTPUT) // SD chip select at pin 4 PinMode ( SS, OUTPUT) // pin 10 on Uno, pin 53 on Mega Disable a SPI device means setting the chip select high. The 'SS' needs to be output, for the internal SPI hardware to work properly. But disable them all, even if SS is also pin 10. The 'SS' is pin 10 for Uno and pin 53 for Mega. The Ethernet Shield uses pin 4 and 10. Disable all slave selects on the SPI bus, and set 'SS' to output. Open serial communications and wait for port to open: Adafruit SD shields and modules: pin 10 change this to match your SD shield or module set up variables using the SD utility library functions:

Pin 4 used here for consistency with other Arduino examplesĢ015: included SPI.h and made SPI bus idle. ** CS - depends on your SD card shield or module. ** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila ** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila ** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila * SD card attached to SPI bus as follows: Very useful for testing a card when you're not sure whether its working or not. SD library is based in order to get info about your SD card. Reformatting the drive will erase all data on the drive, so you should copy any data you want off the drive prior to formatting.ġ) From the DiscWizard home screen, select Tools then Add New Disk.Ģ) Select the correct disk and follow the wizard prompts.This example shows how use the utility libraries on which the' Check the manual for the device to confirm supported partition schemes (GPT/MBR) and files systems.


If using a drive larger than 2 TB then be aware of the following: Seagate DiscWizard allows drives larger than 32 GB to be formatted with a FAT32 file system, this articles goes over the process. For best possible outcome, use a drive 2 TB or smaller.
