jepang
September 29, 2015, 2:08am
1
I had purchased the GPS linksprite shield V3 arduino from ebay couple month ago and figure out that this shield still could not function well. It only turn on the led and noting happens at the serialcom when i uploaded the example code to my arduino leonardo.
i'm using this code, and let it on for a day (outdoor with antenna) still not working:
as written http://linksprite.com/wiki/index.php5?title=GPS_Shield_with_SD_card_slot_for_Arduino_V3.0_with_external_GPS_antenna
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (Serial.available() > 0)
{
Serial.print(char(Serial.read()));
}
}
is there any problem with this code??.. do i need jumpers or setting the TX, RX??..
according to datasheet :
GPS Shield:
RX - 21
TX - 20
Arduino:
TX - 1
RX - 0
You are using a Leo? Read from Serial and output to Serial1. Something like:
void setup()
{
Serial.begin(9600);
while (!Serial)
{
;
}
Serial1.begin(9600);
while (!Serial1)
{
;
}
}
void loop()
{
if (Serial.available() > 0)
{
Serial1.print(char(Serial.read()));
}
}
jepang
September 29, 2015, 7:29am
3
Does it different between serial com for arduino uno and arduino leonardo??..
Yes. Leo uses Serial1 to communicate with the serial monitor. Uno uses Serial (D0 & D1). The shield also appears to use D0 & D1 for communication, thus giving a conflict.
The example code reads Serial, and then sends it straight back. I can't think of many circumstances when that would be a good idea.
jepang
September 29, 2015, 10:58am
5
seem like nothing happen at the serial monitor :o
system
September 29, 2015, 12:00pm
6
seem like nothing happen
Same as when you are asked to post code...
jepang
September 29, 2015, 12:38pm
7
Here is the circuit looks like:
Here is the schematic diagram according to the data sheet:
i'm referring this datasheet:
and the serial monitor result looks like( after more than hours):
is there any suggestion for this??
system
September 29, 2015, 12:59pm
8
is there any suggestion for this??
Have you ever seen any examples that wait for Serial to be ready?
jepang
September 29, 2015, 1:00pm
9
but when i uploading this code to my arduino leo and try with the X-CTU software,
There is an error when i try connect it with the x-ctu software:
At the range test, there Good value always increasing when i press start button and will stop if i press stop.
Nothing appears at the terminal section:
i'm using the previous code:
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (Serial.available() > 0)
{
Serial.print(char(Serial.read()));
}
}
jepang
September 29, 2015, 1:08pm
10