hi i just get
Arduino UNO R3 and GPS Shield by iteadstudio v1.1
and i have some questions cuz this is the first time i use both Arduino and the GPS as my supervisor ask me to do it like this for my project
1 - regarding the connection
i connect VDD to 5v + i make the switch to 5v
GND to GND
SDA to A4
SCL to A5
INT1 & INT0 are off
rx & tx i didn`t change the position of the small pace >_< i dono if its do as jumper or somthing else !!
<< and i think all my problem just because of these to RX & TX as i didnt find clear info about connection for them
2 - reagrding the programing
i use the test code from iteadstudio
#include <SD.h>
const int chipSelect = 10;
void setup()
{
Serial.begin(9600);
pinMode(10, OUTPUT);
if (!SD.begin(chipSelect)) {
return;
}
}
void loop()
{
// make a string for assembling the data to log:
char index = 0;
char temp = 0;
String dataString = "";
// open the file. note that only one file can be open at a time,
// so you have to close this one before opening another.
/*
while(Serial.available())
{
File dataFile = SD.open("datalog.txt", FILE_WRITE);
if(dataFile)
{
temp = Serial.read();
dataString += String(temp);
dataFile.print(dataString);
dataString = "";
dataFile.close();
}
}
*/
File dataFile = SD.open("datalog.txt", FILE_WRITE);
if(dataFile)
{
while(Serial.available())
{
temp = Serial.read();
dataString += String(temp);
index++;
if(index>200)
break;
}
dataFile.print(dataString);
dataFile.close();
}
}
what i got in the txt file
is
RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¤¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒˆ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!%%c«BŒ?®? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥¥¥q«H!µ$€¥•
? RŒŒ§?HŒŒ
«@Œ?¥¥¥s«@)¥¥¥¥¥
!!! << dono y but this is what i got
i use the sample code of tiny gps libary but when i switch the serial monitor to see what i got from gps but its just nothing !! empty
i read this post
http://forum.arduino.cc/index.php?topic=113603.0
and i repeat reading it for 3 days =( but really i didn`t get where is my problem exactly i change the rate and the tx&rx postion
and iam stuck from 3 days just getting empty thing
also i try it when i move in car and outside home jusssst to get clear data or any thing !! but !!! nothing
so i home some1 can help me
as i need to finish some parts of my project before the university start so i hope u guys can help me with my problem =( and thanks