Velleman Whadda WPI304 User Manual

Velleman Whadda WPI304 User Manual

Sd card logging module for arduino

Advertisement

Quick Links

USER MANUAL
SD card logging module for Arduino®
EN
WPI304
whadda.com

Advertisement

Table of Contents
loading

Summary of Contents for Velleman Whadda WPI304

  • Page 1 USER MANUAL SD card logging module for Arduino® WPI304 whadda.com...
  • Page 2: Safety Instructions

    • 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.
  • Page 3: What Is Arduino

    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;...
  • Page 8 Modifications and typographical errors reserved - © Velleman Group nv. WPI304_v01 Velleman Group nv, Legen Heirweg 33 - 9890 Gavere...

Table of Contents