Show Posts
Pages: [1]
1  Using Arduino / Sensors / SD data logging stops (8x8 matrix) on: December 10, 2012, 11:09:24 am
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
Pages: [1]