Hi ,
I purchased an unlimited GPS shield for UNO but now we have to use YUN . but I can not get any data from GPS. any suggestion????
Yun + unlimited GPS Shield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Yun + unlimited GPS Shield
What pins are you using and what code are you running?
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
I used GPS shield which mounted on yun completely and also I upload parsing from adafruit gps library .
I download the gpsd then I got some info but the gps can not fix... and I do not know why???
after one minute the Led13 of board blink and then the serial port changed. I connected to 2 different laptop but it happened again.
I used GPS with UNO and it works properly. the code that I got when I change useInterrupt(true) to useInterrupt(false) is:
Time: 0:0:0.0
Date: 0/0/200
Fix: 0 quality: 0
$PGACK,103*40
$PGACK,105*46
$PMTK011,MTKGPS*08
$PMTK010,001*2E
$PMTK010,002*2D
and when it is useInterrupt(true), gave time and date sometimes and some times nothing ???!!!!!
I download the gpsd then I got some info but the gps can not fix... and I do not know why???
after one minute the Led13 of board blink and then the serial port changed. I connected to 2 different laptop but it happened again.
I used GPS with UNO and it works properly. the code that I got when I change useInterrupt(true) to useInterrupt(false) is:
Time: 0:0:0.0
Date: 0/0/200
Fix: 0 quality: 0
$PGACK,103*40
$PGACK,105*46
$PMTK011,MTKGPS*08
$PMTK010,001*2E
$PMTK010,002*2D
and when it is useInterrupt(true), gave time and date sometimes and some times nothing ???!!!!!
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Yun + unlimited GPS Shield
The pins you need to connect to are those for the Leonardo not the Uno and you need to use serial1 in your code according to this
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data using the ATmega32U4 hardware serial capability. Note that on the BANNED, the Serial class refers to USB (CDC) communication; for TTL serial on pins 0 and 1, use the Serial1 class. The hardware serials of the ATmega32U4 and the AR9331 on the BANNED are connected together and are used to communicate between the two processors. As is common in Linux systems, on the serial port of the AR9331 is exposed the console for access to the system, this means that you can access to the programs and tools offered by Linux from your sketch.
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
thank you for your answer, I just change this command SoftwareSerial mySerial(1, 0); ... Do I change anything else in parsing program??? because I didnot get any data yet.......and is my wiring correct?
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
I used SoftwareSerial mySerial(8, 7); again and then I change this one use Interrupt(false); .... so again I got
Time: 14:29:20.781
Date: 21/11/2014
Fix: 0 quality: 0
$GPGGA,142921.784,,,,,0,00,,,M,,M,,*7E
$GPRMC,142921.784,V,,,,,0.00,0.00,211114,,,N*4D
$GPGGA,142922.784,,,,,0,00,,,M,,M,,*7D
$GPRMC,142922.784,V,,,,,0.00,0.00,211114,,,N*4E
and after a minute again led13 blink.....
I wired same as previous picture
Time: 14:29:20.781
Date: 21/11/2014
Fix: 0 quality: 0
$GPGGA,142921.784,,,,,0,00,,,M,,M,,*7E
$GPRMC,142921.784,V,,,,,0.00,0.00,211114,,,N*4D
$GPGGA,142922.784,,,,,0,00,,,M,,M,,*7D
$GPRMC,142922.784,V,,,,,0.00,0.00,211114,,,N*4E
and after a minute again led13 blink.....
I wired same as previous picture
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
now I use bridge to get the data of GPS and everything is the same as UNO(pins). now I got just time and date because GPS can not be fixed.
Time: 16:40:57.31
Date: 21/11/2014
Fix: 0 quality: 0
however when I used UNO in the same place it fixed quickly???? is it related to pins???
I can not find any thing related by google search
Time: 16:40:57.31
Date: 21/11/2014
Fix: 0 quality: 0
however when I used UNO in the same place it fixed quickly???? is it related to pins???
I can not find any thing related by google search
- tdicola
- Posts: 1074
- Joined: Thu Oct 17, 2013 9:11 pm
Re: Yun + unlimited GPS Shield
If you're getting back sentences like $GPGGA..., etc. then the wiring should be OK because those sentences only come from the GPS chip. As far as getting a lock goes it can vary a lot and definitely depends on the device getting a good view of the sky. If you can try to move the device into a window so it can get a clear line of site up to the sky and GPS satellites. Also make sure you've got a good external power supply powering the Yun--we've seen a lot of trouble from powering WiFi devices like the Yun off of a computer or laptop's USB port. Instead you'll want to use a 1 amp or more 5 volt power supply (like a good cell phone charger) to power the Yun.
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
yes I use cell phone charger , but I measure the input voltage of GPS and it is 3.3V. it is near window. I have two of this module so I put them there (one with yun and another with UNO) after a minute gps with uno fixed but the other one not. can I power the GPS directly ???
- perlmunger
- Posts: 5
- Joined: Thu Nov 20, 2014 6:02 pm
Re: Yun + unlimited GPS Shield
I'm having the same problem. Uno gets a fix very quickly. Yun has yet to get one even though it's been running a while.
Update: Just for reference, it took the Yun 51 minutes to get a fix where the Uno took around 20 seconds. Something is certainly not right. I tried using a different power supply and that didn't seem to help either.
Update: Just for reference, it took the Yun 51 minutes to get a fix where the Uno took around 20 seconds. Something is certainly not right. I tried using a different power supply and that didn't seem to help either.
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
can we power it directly with five volt??? I need an access point so I have to use YUN , but I could not figure out the GPS issue yet....
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
perlmunger wrote:I'm having the same problem. Uno gets a fix very quickly. Yun has yet to get one even though it's been running a while.
Update: Just for reference, it took the Yun 51 minutes to get a fix where the Uno took around 20 seconds. Something is certainly not right. I tried using a different power supply and that didn't seem to help either.
Thank you , I never wait such a long time ... I will try it .....
- tdicola
- Posts: 1074
- Joined: Thu Oct 17, 2013 9:11 pm
Re: Yun + unlimited GPS Shield
You can power the Yun directly with 5 volts, check the Yun page for a little more info but you'll want to put 5 volts into the VIN pin. Be very careful not to feed anything higher than 5 volts into the VIN pin or you'll damage the Yun! (there is not voltage regulator on the Yun, unlike an Arduino Uno or other similar board).
Interesting that it took a long time for the Yun to get a GPS lock. I suspect perhaps the WiFi module right below the GPS radio could be causing some interference. If you have one handy you might try the GPS breakout board to see if moving the GPS further away from the Yun helps with the lock time.
Interesting that it took a long time for the Yun to get a GPS lock. I suspect perhaps the WiFi module right below the GPS radio could be causing some interference. If you have one handy you might try the GPS breakout board to see if moving the GPS further away from the Yun helps with the lock time.
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
actually I wanted to power GPS directly and I did. so now GPS fixed quickly but now I can not get any data even time and date???!!!!!!
- parmares
- Posts: 24
- Joined: Thu Nov 20, 2014 3:49 pm
Re: Yun + unlimited GPS Shield
Finally I got everything ... I powered GPS directly so it works properly. the only problem , I didn't get Altitude, it shows altitude 0.0
is it related to commands????
I use bridge so I have this command:
client.print("Altitude: "); client.println(GPS.altitude);
but it doesn't show me the altitude
is it related to commands????
I use bridge so I have this command:
client.print("Altitude: "); client.println(GPS.altitude);
but it doesn't show me the altitude
Please be positive and constructive with your questions and comments.