GPS Modules with Ar...
 
Notifications
Clear all

GPS Modules with Arduino and Raspberry Pi  


DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 2 years ago
Posts: 987
Topic starter  

Learn how satellite positions systems like GPS work, how to use GPS modules with Arduino and Raspberry Pi, and build a GPS position logger which can display results on Google Maps.

Article with Code Samples: https://dronebotworkshop.com/using-gps-modules/

The Global Positioning System, or GPS, is one of several satellite positioning systems that we can use to determine our location, altitude and the exact time - from anywhere in the world.

Thanks to these systems, and the availability of low-cost receiver modules, we can easily add GPS functionality to any project.

Today I’ll explain how these positioning systems work, what kind of data we can get out of them, and how we can use these popular modules with both the Arduino and Raspberry Pi.

And, as a fun experiment, I’ll show you how to build a simple Arduino-based GPS logger that saves your position onto a microSD card, using a file format that can be imported into Google Maps. I took a walk in the park with it to give it a test.

Here is what you’ll see in today's video:

00:00 - Introduction
01:25 - Satellite-Based Navigation Systems
08:00 - Look at GPS Modules
10:34 - Basic GPS Operation with SoftwareSerial
15:28 - GPS Libraries - TinyGPS++
19:55 - Beitian 880 with HMC5883 magnetometer
25:48 - Adafruit Ultimate GPS with Raspberry Pi
32:19 - Build a GPS Position Logger
47:52 - Conclusion

As always, you’ll find a detailed article with code samples and cheat sheets on the DroneBot Workshop website. And a dedicated thread for it on the DroneBot Workshop Forum, so you can discuss it in detail.

This is the first of a few GPS-related videos and articles I’ll be producing, as I have a couple of GPS projects on the go. So please subscribe so that you don't miss any of them.

"Never trust a computer you can’t throw out a window." — Steve Wozniak


Quote
sj_h1
(@sj_h1)
Trusted Member
Joined: 10 months ago
Posts: 97
 

As usual an excellent video. I have a couple of questions. I always have trouble identifying the connectors used on theses devices. The spec sheet only says "1.00mm 4pins". If I want to buy this type of connector what would I search for? Another issue I have come across is project boxes to mount my projects. The only boxes I can seem to find are those that are for the Arduino or Raspberry Pi only. No room for other devices. At least that's all I can find amazon. Does anyone have a resource of someone who sells various box sizes?

 


ReplyQuote
Larry Manson
(@larry-manson)
Active Member
Joined: 1 month ago
Posts: 17
 

On Amazon search plastic boxes and then select the department of Industrial and Scientific.  It will give you some possibilities.

 

Digikey

Mouser

Really any electronic distributor

Hardware and Electrical distributors will have junction boxes.

 

 

 

 


ReplyQuote
Larry Manson
(@larry-manson)
Active Member
Joined: 1 month ago
Posts: 17
 

In the early days we used varnished wood for chassis for radio kits. I've sprayed varnish on card stock and used it to build electronic components. Plastic storage containers can be found at the dollar store, Walmart or wherever. https://www.mcmaster.com/ has a ton of mechanical things.  EBAY. Polystyrene sheets can be cut and glued together with acetone. 


ReplyQuote
MACE
 MACE
(@mace)
New Member
Joined: 6 months ago
Posts: 2
 

Doesn't the Arduino have a built-in LED that can be blinked?  Why use a separate red -- brightness, visibility?  I'd loved to have see the system in operation.


ReplyQuote
Aswin
(@aswin)
Active Member
Joined: 7 months ago
Posts: 9
 

it is a very exciting video as usual but the GPS module are very defective to find in India.

I like all your videos they are very exciting and interesting.

it has been a long time since uploaded a video in BD1 the real robot series I am eagerly waiting for DB1 the real robot part 17. there are totally how many parts in the DB1 real robot series. will there also be DB2 the real robot? 

Aswin


ReplyQuote
kiranshashiny
(@kiranshashiny)
New Member
Joined: 2 years ago
Posts: 3
 

What are the other identical modules similar to the ones mentioned in the video.
I'm from India and am interested in building such a project - but we don't have the Beitian modules as in the video, sold around.

There is a Neo-6M and sister modules - which is advertised as confirming to NMEA standards.
Appreciate any inputs from other members as well.
Loved the video - very useful, informational and your style of teaching is amazing, down to earth explaining of complex terms. 


ReplyQuote
kiranshashiny
(@kiranshashiny)
New Member
Joined: 2 years ago
Posts: 3
 

I was hoping to see an introduction to GSM as well, either in the video or a follow up to the video.
I'm new to this and as soon as I Googled - I got results for GSM as well.
So, an introduction or another supporting video on GSM with GPS would've helped as I found your explaining much more understandable.
Thanks.


ReplyQuote
MadMisha
(@madmisha)
Estimable Member
Joined: 1 year ago
Posts: 239
 
Posted by: @kiranshashiny

There is a Neo-6M and sister modules - which is advertised as confirming to NMEA standards.

That should work. It is a standalone module. That means that you can communicate with it through UART, I2C or SPI and it will do everything you need. 

 

Here is a tutorial for using that exact one and it uses the same library that Bill uses. Tutorial Here If you have issues for some reason after following Bill's example, you can look there but it should be the same.

 

Most things will work with arduino as long as you can communicate with it. Libraries help but are not always required. If no library is available then you would have to use the datasheet to find out how to use it. There are sometimes small caveats like repeated start conditions for I2C are not compatible with the wire library but those are rare and you can usually find a workaround but it usually takes a lot more time. When in doubt, read the datasheet. If you see something you don't recognize, google it to find out if it will work your intended micro.


ReplyQuote
LeeOL
(@leeol)
New Member
Joined: 3 weeks ago
Posts: 3
 

My GPS modules seem to work as I can see raw data but the other softwares don't work.  I am pretty sure the problem is that my main sentence from the sensor starts with $GNGGA instead of $GPGGA. Does anyone else have this problem or know what other software to use?


ReplyQuote
LeeOL
(@leeol)
New Member
Joined: 3 weeks ago
Posts: 3
 

I found a solution to my problem. The Arduino program GPS_SoftwareSerial_Parsing which is

one of the examples from the Adafruit GPS Library apparently can parse $GNGGA sentences. 


ReplyQuote
LeeOL
(@leeol)
New Member
Joined: 3 weeks ago
Posts: 3
 

There is a difference between the video "cheat sheet" and the download "cheat sheet"


ReplyQuote