Whadda WPI304N Скачать руководство пользователя страница 2

 

 

 

 

 2 

 

Introduction 

 

 

To all residents of the European Union 
Important environmental information about this product 

This symbol on the device or the package indicates that disposal of the device after its 
lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted 
municipal waste; it should be taken to a specialized company for recycling. This device 
should be returned to your distributor or to a local recycling service. Respect the local 
environmental rules. 

If

 

in doubt, contact your local waste disposal authorities.

 

 

 

 

Thank you for choosing Whadda! Please read the manual thoroughly before bringing this 
device into service. If the device was damaged in transit, do not install or use it and contact 
your dealer. 

Safety Instructions 

 

 

Read and understand this manual and all safety signs before using this appliance. 

 

 

 

For indoor use only. 

 

 

 

 

This device can be used by children aged from 8 years and above, and persons with 
reduced physical, sensory or mental capabilities or lack of experience and knowledge if 
they have been given supervision or instruction concerning the use of the device in a 
safe way and understand the hazards involved. Children shall not play with the device. 
Cleaning and user maintenance shall not be made by children without supervision. 

 

General Guidelines 

 

 

 

Refer to the Velleman

®

 Service and Quality Warranty on the last pages of this manual. 

 

 

All modifications of the device are forbidden for safety reasons. Damage caused by user 
modifications to the device is not covered by the warranty. 

 

 

Only use the device for its intended purpose. Using the device in an unauthorized way 
will void the warranty. 

 

 

Damage caused by disregard of certain guidelines in this manual is not covered by the 
warranty and the dealer will not accept responsibility for any ensuing defects or 
problems. 

 

 

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. 

 

 

Keep this manual for future reference. 

 

Содержание WPI304N

Страница 1: ...MANUAL EN microSD Card Logging Shield for Arduino WPI304N whadda com ...

Страница 2: ...sons with reduced physical sensory or mental capabilities or lack of experience and knowledge if they have been given supervision or instruction concerning the use of the device in a safe way and understand the hazards involved Children shall not play with the device Cleaning and user maintenance shall not be made by children without supervision General Guidelines Refer to the Velleman Service and...

Страница 3: ... required for reading a twitter message or publishing online Surf to www arduino cc for more information Product overview This shield will prove useful for data logging with your Arduino Can be easily assembled and customized for any data logging project You can use this card to access microSD memory cards using SPI protocol in your microcontroller projects Specifications supports microSD cards 2 ...

Страница 4: ...4 Wiring Logging shield To Arduino Uno To Arduino Mega CS cable select 4 53 SCK CLK 13 52 MOSI 11 51 MISO 12 50 5V 4 5V 5 5V 5V 5V GND GND GND ...

Страница 5: ...5 Circuit Diagram ...

Страница 6: ...ation protocol Preparing the microSD card The first step when using the WPI304N SD card module with Arduino is formatting the microSD card as a FAT16 or FAT32 file system Follow the instructions below 1 Insert the SD card in your computer Go to My Computer and right click on the SD card removable drive Select Format as shown in picture below 2 A new window pops up Select FAT32 press Start to initi...

Страница 7: ... To make sure everything is wired correctly and the SD card is working go to File Examples SD CardInfo in the Arduino IDE software Now upload the code to your Arduino Uno board Make sure to select the right board and COM port Open the serial monitor with baud rate 9600 Normally your microSD card information will be presented in the serial monitor If everything is working properly you will see a si...

Страница 8: ...3 4 This example shows how to read and write data to and from an SD card file 5 The circuit 6 SD card attached to SPI bus as follows 7 MOSI pin 11 8 MISO pin 12 9 CLK pin 13 10 CS pin 4 for MKRZero SD SDCARD_SS_PIN 11 12 created Nov 2010 13 by David A Mellis 14 modified 9 Apr 2012 15 by Tom Igoe 16 17 This example code is in the public domain 18 19 20 21 include SPI h 22 include SD h 23 24 File my...

Страница 9: ...d okay write to it 47 if myFile 48 Serial print Writing to test txt 49 myFile println testing 1 2 3 50 close the file 51 myFile close 52 Serial println done 53 else 54 if the file didn t open print an error 55 Serial println error opening test txt 56 57 58 re open the file for reading 59 myFile SD open test txt 60 if myFile 61 Serial println test txt 62 63 read from the file until there s nothing ...

Страница 10: ...ng is okay the following window appears on the serial monitor This indicates reading writing was successful To check about the files on the SD card use Notepad to open the TEST TXT file on the microSD card Following data appears in txt format ...

Страница 11: ...g writes 5 to a file on a SD card The file will contain the current millis 6 value every 10ms If the SD card is busy the data will be buffered 7 in order to not block the sketch 8 9 NOTE myFile availableForWrite will automatically sync the 10 file contents as needed You may lose some unsynced data 11 still if myFile sync or myFile close is not called 12 13 The circuit 14 SD card attached to SPI bu...

Страница 12: ...n to match your shield or module 54 Serial println Note press reset button on the board and reopen this Serial Monitor after fixing your issue 55 don t do anything more 56 while 1 57 58 59 If you want to start from an empty file 60 uncomment the next line 61 SD remove filename 62 63 try to open the file for writing 64 txtFile SD open filename FILE_WRITE 65 if txtFile 66 Serial print error opening ...

Страница 13: ...0 lastMillis now 91 92 93 check if the SD card is available to write data without blocking 94 and if the buffered data is enough for the full chunk size 95 unsigned int chunkSize txtFile availableForWrite 96 if chunkSize buffer length chunkSize 97 write to file and blink LED 98 digitalWrite LED_BUILTIN HIGH 99 txtFile write buffer c_str chunkSize 100 digitalWrite LED_BUILTIN LOW 101 102 remove wri...

Страница 14: ...14 whadda com Modifications and typographical errors reserved Velleman Group nv WPI304N_v01 Velleman Group nv Legen Heirweg 33 9890 Gavere ...

Отзывы: