Pages: [1]   Go Down
Author Topic: SD data logging stops (8x8 matrix)  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there,

I´ve got a touch sensitive matrix from 8 rows and 8 columns using conductive threads and Linqstad Piezo film as a middle layer. The idea is to sense touch on objects.

Works fine but I have problems with storing the reading on a micro SD card. I am using a Mega R3 and Ethernet Shield R3 and an ScanDisk Micro SD card (FAT16).
Pin connection is a followed: rows connected to analog pins (0-7) and columns to digital pins (0-7) and I´ve got the Ethernet shield connected through the ICSP pins,
and pin 4 (SDCS) to dig pin 4 on the mega and pin 10 (shield) to pin 53 on the mega.

Problem is the reading stop until I press reset on the Shield. Then reading start again for one to 10 lines, then stops again and so on.
I need to have the reading running constantly to be saved a single file on the sd card.
The readings look like this:

Initializing SD card...card initialized.
421,449,1023,466,420,472,464
422,1023,467,963,444,472,1023
419,1023,1023,465,543,471,463
Initializing SD card...card initialized.
1023,1023,469,470,411,482,476
415,1023,465,467,846,1023,1023
413,444,1023,465,934,476,471
408,439,1023,460,612,469,464
Initializing SD card...card initialized.
1023,1023,452,451,714,1023,1023
Initializing SD card...card initialized.
959,404,413,414,834,421,1023
380,405,1023,1023,547,422,418


Can anybody help me with that?

I attach the data logging sketch.

Thanks,
das auryn

* SD_data_logger_8sensors.ino (2.08 KB - downloaded 5 times.)
Logged

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

What if u dont open the SD file and just print the result to the serial port?

Why do u read just 7 of those 8 analog pins?

Have fun...
Logged

-Arne

Pages: [1]   Go Up
Jump to: