element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum I'm having trouble getting my gps shield to work with my arduino
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 392 subscribers
  • Views 2529 views
  • Users 0 members are here
  • gps logger
  • gps
  • gps_shield
  • arduino
Related

I'm having trouble getting my gps shield to work with my arduino

tlucas756
tlucas756 over 7 years ago

Hello everyone!

So this week i got a Neo-6M GPS shield in the mail, because I need it for a school project. However I'm a newbie when it comes to arduino programming, so I grabbed some code on the internet that said it'd function with this module.

But bad luck; I can't get this gps module to work and display my location, instead it gives me a bunch of characters on the serial monitor that I can't understand...

Could it be a problem with the program? Or maybe the antenna, or the GPS shield itself?

Could you give me some advice to test out?

Thank you!

 

Here's the page I grabbed the code from: Tutorial to Communicate Neo-6M GPS to Arduino : 7 Steps (with Pictures)   And some pictures of my hardware:imageimageimageimage

  • Sign in to reply
  • Cancel

Top Replies

  • tlucas756
    tlucas756 over 7 years ago in reply to rachaelp +1
    Hello rachael, so I messed with the baud rates and found that it starts showing something at 115200 baud. But the gps signal doesn't seem to work; for the record in the code it mentions London so that…
  • gadget.iom
    gadget.iom over 7 years ago +1
    Hi tlucas756 I'm happy to take a look at the code if you are still having issues. If you could like some code-review would you mind pasting it here or attaching it as a txt file or something. I'm very…
  • gadget.iom
    gadget.iom over 7 years ago +1
    Code as attached: #include <TinyGPS++.h> #include <SoftwareSerial.h> /* This sample code demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object. It requires the use of SoftwareSerial, and assumes…
Parents
  • rachaelp
    rachaelp over 7 years ago

    Hello,

     

    Looking at your images I see your serial output is garbled and it shows at the bottom you have your baud rate set to 9600. If you read the tutorial it says the module has a default baud rate of 38400. I suggest the first thing you do it make sure your serial console settings are correct so as well as setting the baud rate to 38400 you may also need to look at what parity and stop bit settings are required too. First try with just changing the baud rate and if it's still garbled then look at the other settings.

     

    Actually I just read the article properly, the above is not right. It does look like a baud rate configuration issue somewhere but I it might not be in your connection to the Arduino for the serial monitor....

     

    Best Regards,


    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tlucas756
    tlucas756 over 7 years ago in reply to rachaelp

    Hello rachael, so I messed with the baud rates and found that it starts showing something at 115200 baud.

     

    But the gps signal doesn't seem to work; for the record in the code it mentions London so that's probably what the gps is trying to get, but doesn't receive.

     

    How could I change the location to my country (Portugal) without ruining the progress I've made?image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • tlucas756
    tlucas756 over 7 years ago in reply to rachaelp

    Hello rachael, so I messed with the baud rates and found that it starts showing something at 115200 baud.

     

    But the gps signal doesn't seem to work; for the record in the code it mentions London so that's probably what the gps is trying to get, but doesn't receive.

     

    How could I change the location to my country (Portugal) without ruining the progress I've made?image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • tlucas756
    tlucas756 over 7 years ago in reply to tlucas756

    https://drive.google.com/open?id=1WwmXw5s2_ou1W9qKiWxhVh_QyXsu5rDg

     

    This is the code I'm using. It's probably easier to check the code this way rather than in pictures

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 7 years ago in reply to tlucas756

    Great, glad you have made progress! Could it be you just haven't given it long enough to get a satellite lock yet? Is the GPS antenna getting a good view of the sky? If you are indoors sometimes GPS can take a while to get a lock or even not at all.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tlucas756
    tlucas756 over 7 years ago in reply to rachaelp

    I was wondering is the antenna was the problem. I am indoors but close to a window, I will try to point it toward the sky to see if anything happens.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tlucas756
    tlucas756 over 7 years ago in reply to rachaelp

    Ok, so I pointed it to the sky, still gives me the error. so I'm assuming it's something to do with the code, but I don't know what...

    I noticed the shield has some jumpers, maybe if I change them around it'll behave differently

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 7 years ago in reply to tlucas756

    Those jumpers look to just be for configuring which of the digital IO pins on the Arduino are for the TX and RX of the module. Just make sure they match the config in your code.

     

    Best Regards,


    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • 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