element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum GPS Problem solved (Pi + BU-353)
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 661 subscribers
  • Views 1445 views
  • Users 0 members are here
  • raspberry_pi
Related

GPS Problem solved (Pi + BU-353)

vk3pb
vk3pb over 12 years ago

The following is reproduced from a post I placed in the Raspberry Pi forums. Folks here may get some benefit from it also.

 

 

Hi all

 

As many of you would be aware I have been trying to get my bu-353 GPS mouse to work with my modem B raspberry Pi. Thanks to the help of Dan Mandle, rst and others i have succeeded. There were 2 things I was trying to achieve

 

1. Get my Pi's clock set from the GPS and
2. Have a python script I could modify that would bring the GPS details (eg latitude, longitude) into python variables.  

 

I am writing this so that others will find it a bit easier to setup and hopefully use as a basis for their projects.

 

First up the GPS is plugged into the Pi through a usb plug. You can pick the GPSs off Ebay at a relatively low price. I found mine even worked indoors.

 

1. Getting GPSD installed

 

I followed Dan Mandle's instructions here

 

http://blog.retep.org/2012/06/18/gettin ... pberry-pi/

 

up to "Next we need to start the daemon:"

 

At this point I did

 

sudo dpkg-reconfigure /etc/gpsd

 

to set gpsd to automatically boot. I added -n in the options but didn't put in  /dev/ttyUSB0 as the port but rather left it to automatically find the USB plug.

 

I then manually edited GPSD and added in

 

chmod a+rw /dev/ttyUSB0 at the beginning

 

when I ran cgps -s or xgps I now got location text or a visual display of the satellites.

 

2. Setting the system time

 

There is a python module called Gpstime which you can get here

 

http://code.google.com/p/gpstime/

 

I unpacked it into my /Pi directory and there was a subdirectory with a number of files.

 

Important; Delete the gps.py script in the subdirectory

 

gps.py should already have been installed with GPSD so you don't want two python scripts with the same name otherwise bad things will happen.

 

To set the system time from the gps just run the gpstime script.

 

3. Reading the GPS variables

 

Dan Mandle has a useful script which prints out the various GPS variables

 

http://www.danmandle.com/blog/getting-g ... th-python/

 

Copy that to your Pi and run it and you should see the data. It can be modified for other uses.

 

Thanks again to everyone who got me this far. Now onto interfacing my compass!. 

 

cheers Peter

 
  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube