• Nor Velleman Group nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) – of any nature (financial, physical…) arising from the possession, use or failure of this product.
What is Arduino® ® Arduino is an open-source prototyping platform based on easy-to-use hardware and boards are able to read inputs – light-on sensor, a finger on a button or a ® software. Arduino Twitter message – and turn it into an output – activating of a motor, turning on an LED, publishing something online.
Page 4
Connection Connection to Arduino® Uno Arduino® WPI304 MOSI MISO Connection to Arduino® Mega Arduino® WPI304 MISO MOSI...
Page 5
SdFile root; // change this to match your SD shield or module; // Arduino Ethernet shield: pin 4 // Velleman VMA304/WPSH304 & Adafruit SD shields and modules: pin 10 // Sparkfun SD shield: pin 8 // MKRZero SD: SDCARD_SS_PIN const int chipSelect = 10;...
Page 6
// we'll use the initialization code from the utility libraries // since we're just testing if the card is working! if (!card.init(SPI_HALF_SPEED, chipSelect)) { Serial.println("initialization failed. Things to check:"); Serial.println("* is a card inserted?"); Serial.println("* is your wiring correct?"); Serial.println("* did you change the chipSelect pin to match your shield or module?"); while (1);...
Page 7
volumesize = volume.blocksPerCluster(); // clusters are collections of blocks volumesize *= volume.clusterCount(); // we'll have a lot of clusters volumesize /= 2; // SD card blocks are always 512 bytes (2 blocks are 1KB) Serial.print("Volume size (Kb): "); Serial.println(volumesize); Serial.print("Volume size (Mb): "); volumesize /= 1024;...