Data Sheet

VMA202
V. 01 08/03/2017 4 ©Velleman nv
IMPORTANT!
The ATmega2560 (VMA101) and ATmega32u4 Leonardo (VMA103) development boards do not use the same
hardware SPI pin-out. If you are using one of these boards, please specify the pins used for SPI communication
with the SD card. For the VMA202, these are pins 10, 11, 12 and 13.
In the CardInfo sketch, modify line:
while (!card.init(SPI_HALF_SPEED, chipSelect)) {
to:
while (!card.init(SPI_HALF_SPEED,1,11,12,13)) {
Also, an updated SD library is needed in order to avoid error messages. How to replace the SD library:
3. Download the updated SD library from the products page on www.velleman.eu. Make sure the Arduino
®
IDE is not running.
4. Go to C:\Program Files\Arduino and create a new map, e.g. SD Backup.
5. Go to C:\Program Files\Arduino\libraries\SD and move all files and maps to your newly created map.
6. Extract the downloaded SD library into the now empty SD map. Make sure that the .h and .cpp files are
directly under C:\Program Files\Arduino\libraries\SD.
7. Start the Arduino
®
IDE.
6.2 Testing the RTC (Real-Time Clock)
1. Download the RTClib.zip file from the products page on www.velleman.eu.
2. In the Arduino
®
IDE select Sketch Include Library Add .ZIP Library…. Select the RTClib.zip file you
downloaded.
3. Now, go to File Examples. You will find some examples for testing the RTC under [Examples from Custom
Library].
Use this device with original accessories only. Velleman nv cannot be held responsible in the event
of damage or injury resulting from (incorrect) use of this device. For more info concerning this
product and the latest version of this manual, please visit our website www.velleman.eu. The
information in this manual is subject to change without prior notice.
© COPYRIGHT NOTICE
The copyright to this manual is owned by Velleman nv. All worldwide rights reserved. No part of this
manual may be copied, reproduced, translated or reduced to any electronic medium or otherwise without the
prior written consent of the copyright holder.