I got my SD shield in yesterday and soldered in the headers, I have checked and rechecked the solder joints under a magnifing glass and see no soldering errors. But I keep getting the same error.
Here is my sketch.
// Geiger Counter Lib example
/* Adapted by Tracy Albert from programing for a frequecy counter by,
Martin Nawrath KHM LAB3
Kunsthochschule f¸r Medien Kˆln
Academy of Media Arts
http://www.khm.de
http://interface.khm.de/index.php/labor/experimente/
*/
#include <FreqCounter.h>
#include <SdFat.h>
#include <SdFatUtil.h>
Sd2Card card;
SdVolume volume;
SdFile root;
SdFile file;
unsigned long frq;
int cnt;
int pinLed=13;
void setup() {
pinMode(pinLed, OUTPUT);
Serial.begin(9600); // connect to the serial port
Serial.println("Geiger Counter");
}
void loop() {
// wait if any serial is going on
FreqCounter::f_comp=10; // Cal Value / Calibrate with professional Freq Counter
FreqCounter::start(60000); // 1 minuit Gate Time
while (FreqCounter::f_ready == 0)
Serial.println("Done");
frq=FreqCounter::f_freq;
Serial.print(cnt++);
Serial.print(" cpm: ");
Serial.println(frq);
// write 100 line to file
for (uint8_t i = 0; i < 100; i++) {
writeString(file, "line");
writeNumber(file, i);
writeString(file, " millis = ");
writeNumber(file, millis());
writeCRLF(file);
}
// close file and force write of all data to the SD card
file.close();
delay(1000);
digitalWrite(pinLed,!digitalRead(pinLed)); // blink Led
}