For some reason that data that is being transfered does not show up on the .txt file. I know the Receiver is working because the data does appear on serial monitor. Here are the essential lines in the receiver code.
#include <SD.h>
#include <SdFat.h>
#include <SdFatUtil.h>
#include <ctype.h>
void setup()
{
Serial.begin(9600);
pinMode(10,OUTPUT);
}
voidloop()
{File dataFile=SD.open("datalog.txt",FILE_WRITE);
if (datafile){
dataFile.write(Serial.read());
dataFile.close();
}
}
It is a micro sd card I am that i am trying to record data to. I also have the switch on the shield to "MICRO" when I run it.
Any ideas?
THank you