You are on page 1of 6

Raspberry Pi

Questions
Tags
Users
Badges
Unanswered
Ask Question
_ Raspberry Pi Stack Exchange is a question and answer site for users and develo
pers of hardware and software for Raspberry Pi. Join them; it only takes a minut
e:
Sign up
Here's how it works:
Anybody can ask a question Anybody can answer The best answers are voted up and
rise to the top
How do I attach a GPS receiver?
up vote
47
down vote
favorite
24
I would like to hookup a GPS receiver to my Pi so that I can:
Get my geographical position
Synchronise clock when not connected to network
What are my options? Will any hardware supported by gpsd work with the Pi?
hardware
shareimprove this question
edited Jun 25 '12 at 11:10
Alex Chamberlain
10.1k753107
asked Jun 20 '12 at 9:48
Maria Zverina
2,87252240
3
This sounds awesome!

Alex Chamberlain Jun 20 '12 at 9:52

This GPS reciever looks like a good option, but I would have to have a play with
it to provide a decent answer. It runs at 3V3 and 75mA, which is a good start!
Alex Chamberlain Jun 20 '12 at 9:58
1
Just wrote an answer about gpsd as I didn't notice it in the question. D'oh! FYI
, here is the gpsd site: catb.org/gpsd/index.html which will give info on gettin
g the time and location info from a software side. winwaed Jun 20 '12 at 14:50
You could also use a Bluetooth GPS device, so you can put it at the best positio
n (e.g. near a window), although it needs a separate power supply. GPS devices s
peaking NMEA 0183 work with gpsd and they are pretty standard, so maybe you can
find a used one. Bluetooth on the RPi should also work with most Bluetooth dongl
es. elmicha Jun 22 '12 at 21:24

My bounty will be awarded to an answer which provides a hardware schematic and s


oftware examples to set the clock and display geographical position.
Alex Chambe
rlain Jun 25 '12 at 11:12
show 4 more comments
4 Answers
active oldest votes
up vote
34
down vote
accepted
+50
GPS Receiver
I would go for a generic usb GPS receiver such as the BU-353
BU-353
It works with the Raspberry Pi, just like a normal linux computer.
Most usb GPS receivers are just USB-to-Serial adapters that read the NMEA data f
rom the GPS receiver. Look into pl2303 (many units i've seen use this particular
chip) drivers, should be available.
You can also use GPIO and a traditional NMEA 0183 GPS receiver, but then you nee
d to worry about power, and the prices are often higher. GPS antannas are common
onboard boats and ships, and usually consume 12v.
The usb solution is cheaper.
Software
The gps receiver I mentioned is compatible with gpsd.
sudo apt-get install gpsd gpsd-clients python-gps
This will install gpsd and related software. Check gps status with cgps -s.
NTP Clock
To synchronize the clock with NTP, you need to install ntp.
sudo apt-get install ntp
See this blog post: http://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-ra
spberry-pi/. It covers ntp in detail.
shareimprove this answer
edited Jun 26 '12 at 14:04
answered Jun 25 '12 at 15:50
Ragnar123
53645
4
That blog post is great. Jivings Jun 25 '12 at 20:17
2
I can confirm that the BU-353 works with a Pi
pufferfish Dec 15 '12 at 15:35
Does ntp get the time from the GPS module when not connected to the Internet?
mme Aug 14 '13 at 15:51
this will eat up your one usb port....

Ruthvik Vaila Oct 23 '13 at 6:45

Di

1
@JohnDemetriou Depends on the use case. A precise clock can make the difference
between correct and incorrect timestamps - if you aggregate from multiple sensor
s with their own clock, you could for example get wrong ordering of events, if t
he clocks are differing.
Ragnar123 May 13 '16 at 23:28
show 2 more comments
up vote
5
down vote
Useful GPS Module for Raspberry Pi Tutorial!
shareimprove this answer
edited Oct 17 '12 at 11:57
Avio
99011022
answered Oct 16 '12 at 11:56
alex
5911
1
I'd like to see this sort of tutorial replicate here ... blogs are always disapp
earing ....
Maria Zverina Oct 26 '12 at 11:52
Downvoted due to the answer being link only
add a comment
up vote
4
down vote
Look at adafruit ultimate gps

John Demetriou May 4 '16 at 14:57

It s got everything you want and more:


-165 dBm sensitivity, 10 Hz updates, 66 channels
5V friendly design and only 20mA current draw
Breadboard friendly + two mounting holes RTC battery-compatible
Built-in datalogging PPS output on fix
>25Km altitude
Internal patch antenna + u.FL connector for external active antenna
Fix status LED
all for under $40!
shareimprove this answer
answered Oct 23 '13 at 17:28
Guntis
1886
add a comment
up vote
3
down vote
If you do not want to use USB you can use TTL GPS recievers. Sparkfun does a ver
y fast 50 channel GPS receiver but you can find other ones on eBay or other site
s.
You can use this by disabling the serial console on the Pi and connect the recei
ver directly to the UART pins.
enter image description here

* Remember to check the voltages of the GPS device you are using
shareimprove this answer
answered Oct 23 '13 at 9:51
ppumkin
12.8k43880
1
If you don't want to step the voltages down (as these modules are almost always
5v logic) you can plug them into a ttl to usb adapter, and the usb side into the
Pi. This saves the serial console (for us who love it) and circumvents a voltag
e divider or level converter.
Patrick Cook Mar 10 '16 at 5:45
add a comment
Your Answer

Sign up or log in
Sign
Sign
Sign
Post

up
up
up
as

using Google
using Facebook
using Email and Password
a guest

Name
Email
required, but never shown
Post Your Answer
By posting your answer, you agree to the privacy policy and terms of service.
Not the answer you're looking for?
r ask your own question.

Browse other questions tagged hardware o

asked
4 years ago
viewed
40554 times
active
3 years ago
BLOG
Stack Overflow Podcast #98 - Scott Hanselman Is Better Than Us at Everything
Benefits for Developers from San Francisco to Sweden
Linked
0
GPS module interfacing with a raspberry pi
1
what is the best video camera and gps to connect with raspberry pi
2
Raspberry pi and serial
1
Is it advisable to use GPS module with 50mA current rating(TTL serial connection

) described in the link below directly on Rpi?


1
Install GPS Receiver - GP-735
0
How can I interface a serial GPS receiver with a Raspberry Pi?
1
Connecting GPS Breakout to Pi
Related
3
How to detect objects with minimal weight?
3
How can I tell if my Raspberry Pi supports H.264 hardware acceleration?
3
How to break a 5v circuit using raspberry pi
1
Raspberry Pi expansion board for measuring and data logging wishlist
3
How much current does the Raspberry Pi can handle?
1
How to keep my Hard Drive safe (physically)
0
How can I make my raspberry PI like the one that was sent into space?
0
Correct wiring for 433MHz transmitter/receivers?
1
Send and receive 868Mhz radio signals
1
Raspberry Pi 3 Display Cable, what is it called? How to attach?
Hot Network Questions
Was Dolores Umbridge steered by the Imperius Charm in book 7?
Hidden Inversions (Cops' Thread)
Convert a binary value to an decimal value
What are Filson hats?
Did Donald Trump "[imitate] a disabled reporter"?
Job asking for bank email and password
A planet rotating twice per second; what mass is needed to hold it together, and
how oblong would it be?
"Hay" en futuro simple
Why is there no `nand` instruction in modern CPUs?
Beginnings of a Poker hand classifier part 2
Pause notications in OSX whilst in a meeting
Are control theorists considered mathematicians?
Can Donald Trump reverse Chelsea Manning's commutation?
Should I go further to confirm that my credit card is closed?
Would descendants of Earth people stranded on another planet eventually forget a
bout Earth?
Is there any continuous function that satisfies the following conditions?
If dark matter bends light, how do we know the stuff in the sky is where we thin
k it is?
What kind of screw is this?
Show that an open linear map between normed spaces is surjective.
Can a gym be built to supply electricity to homes?
NVMe ssd: Why is 4k writing faster than reading?
What does "the way of" mean in "To the deer it is a reminder of the way of all f
lesh ... "?
A Riddle Like a Phoenix
I'm designing a no-data USB cable : How should the end be marked?
question feed

about us tour help blog chat data legal privacy policy work here advertising inf
o mobile contact us feedback
TECHNOLOGY
LIFE / ARTS
CULTURE / RECREATION
SCIENCE OTHER
Stack Overflow
Server Fault
Super User
Web Applications
Ask Ubuntu
Webmasters
Game Development
TeX - LaTeX
Software Engineering
Unix & Linux
Ask Different (Apple)
WordPress Development
Geographic Information Systems
Electrical Engineering
Android Enthusiasts
Information Security
Database Administrators
Drupal Answers
SharePoint
User Experience
Mathematica
Salesforce
ExpressionEngine Answers
Cryptography
Code Review
Magento
Signal Processing
Raspberry Pi
Programming Puzzles & Code Golf
more (7)
Photography
Science Fiction & Fantasy
Graphic Design
Movies & TV
Music: Practice & Theory
Seasoned Advice (cooking)
Home Improvement
Personal Finance & Money
Academia
more (8)
English Language & Usage
Skeptics
Mi Yodeya (Judaism)
Travel
Christianity
English Language Learners
Japanese Language
Arqade (gaming)
Bicycles
Role-playing Games
Anime & Manga
Motor Vehicle Maintenance & Repair
more (17)

You might also like