GPS Modules with Arduino and Raspberry Pi
HTML-код
- Опубликовано: 14 июл 2024
- 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: dronebotworkshop.com/using-gp...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
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.
Thanks for watching! Хобби
Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
Thanks!
Bill (The real one!)
This channel is disgustingly underrated,, this is PURE GOLD
Good To Have You Here
Could You Share This To Ur Class And Colleagues
@Hazza Bani Malek truth be spoken
Aren't we all an underrated bunch? They don't see us until we build robotic armory and snap our fingers to send time-hijacking alien invaders to dust.
Yes, we are awesome like that😏🍻
@Hazza Bani Malek: agreed. This whole channel is awesome.
he probably has to make some stupid face like most other youtubers to get more click
I'm officially intending to be a life long subscriber to your channel. I recently bought a GPS module to start experimenting with and lo and behold, your latest video is chocked full of extremely helpful information to help me along with that. I really do appreciate what you do here in your videos and am so grateful you decided to contribute your knowledge and solid explanations of such interesting topics. Have to say that you're just great!! Thanks.
Bill, another outstanding video. Thanks for continuing your work.
amazing video as usual. Thanks a lot for all your time spent in order to share your knowledge! :)
Thanks for a brilliant video, just one thing to note is that GPS uses Trilateration not Triangulation, your explentation was spot on, as it is distance that is measured and not the angle then that makes it Trilateration. Love your channel, keep them videos coming.
Really interesting. Thanks for going right from the beginning, to which systems exist and how they work. I feel I have a basic knowledge now and ready to learn more.
You can tell the effort going behind the scenes to make this happen. Great job 👍
Thanks Bill, that was a most informative session - I always learn a lot from your channel. 🙂👍
YOU ARE AMAZING MAN! KEEP IT UP
Satellite joke?
This video just came up exactly when I needed it!! Thanks!🔥
As always an excellent video, thank you for your efforts!
Fantastic information on “GPS” Thanks Bill 👌
I want to express sincerest gratitude to you Sir, you are the Best Professor in this subject!
I rate this channel 10/10. A very interesting topic, please continue.
Another impressive video. Thanks for taking the time to create. Keep them coming.
great video as always ! Users pay attention I have struggled for long time getting GPS data using the built in TinyGPS examples and failed just because the baude rate was set to 4800 instead of 9600 as shown in the video
Thank you sir for this great video! Watched every second of it with great interest!
Excellent as always. The detail and the quality of the presentation is remarkable.
What a beautiful presentation. So complete and well explained. Thank you !!!
This video helped me a great deal. I've been experimenting with some surplus Rockwell Jupiter GPS modules because I want the locked 10KHz signal they produce (along with the 1pps signal). At startup, the units produce the signals unlocked and then they lock to the satellites after a fix is established. They have no built-in indicator, so I tried reading the NMEA data using the Arduino hardware serial port and--big surprise--I couldn't read more than 64 characters on the serial monitor each reset. Before I finished last night, I did learn that 64 bytes is the size of the UART's buffer, and that the size is hard-written into the IDE libraries. BTW, I also discovered the IDE doesn't like anything else attached to RX & TX when uploading a sketch, so I had to pull those connections every time I wanted to do so.
This morning, I was thinking I needed to use an MCU with a larger RX buffer, but then I watched this video and found out about software serial! I'd never heard of it before, and it solved two of my problems: reading the continuous 4800-baud stream from the Jupiter with no show-stopping overflow, _and_ having to disconnect the serial lines whenever I want to upload to the Arduino. Being able to pass the software-serial data right off to the IDE hardware-serial monitor was just an added convenience. Thank you so much for this information, and all the other materials you put out!!
BTW, besides uploading sketches, is there any other reason to _ever_ use hardware serial?
What a GREAT video and project, thank you--looking forward to building this myself
Wonderful production as usual. The tracker is fascinating. : = ))
I swear you're good. Thank you so much for all this information. These are diamonds.😊
We sure have come a long way from that pain in the rear Loran-C system. Hated using that for navigation. It took forever to establish a connection to enough antennas and it had to be turned off if I needed to use my Marine VHF
What an excellent video. I learned a lot. Thank you so much for doing this! Your channel is fabulous.
Awesome!I cant believe I didn't catch it yesterday. I want these.😁👍🤖
I love this channel. He is very easy to understand and makes amazing videos
I subscribe to many DIY/Electronics channels... But this man, ohh he is just SUPERB. I personally give thanks to HIM and also inspire him to make such type of video in his own time. Whatever be the viewers' number, subscriber or others fact, HE is no doubt oswme . I fall in LOVE with his video.
Thanks for sharing your Knowledge! Greetings From Brazil!
Thanks Bill, another great video.
You are probably my favorite RUclips out there. Keep up the awesome content.
Captivating presentation, thank you for posting this video!
thank god ive found this gem of a channel
I did not know that Arduino had the capability to use other pins as a serial TX/RX pair. Very cool! Thanks!
Excellente vidéo, comme d'habitude !
Thank you for the amazing tutorial 🙏
Great video with excellent explanations!
Really appreciate going through the different hardware modules, along with pricing.
The software library installations we’re nice to see.
Also like the software that you demonstrated and explained;especially the Google Maps.
I just have One question:
What if you already know where you’re at? 🤣😂🤣
That was fun to watch. Thanks, Bill.
Great subject, looking forward to the one with high-accuracy and reference GPS. Look for this in the past couldn't find much back then.
Very useful. I've had a NEO-6M for several years that I haven't got round to trying yet. Maybe this will encourage me to use it to find where my dog goes, when she wanders off on her own (on our land!). Even better if I can add radio to track her
Thank you so much! Helped me a lot!
Great stuff. Love the content. Keep up the great work!
Another informative well researched interesting video !
Thanx alot from South Africa.
Thanks. Lovely insight and great useful info.
Subscribed - Loved the video. Explained in simple terms and well done. I 'm new to GPS and GSM.
I'd imagine one can have a ESP8266 / ESP 32 doing the same but communicating to a broadband router and sending data to the cloud. ( thru MQTT or other protocols )
Its amazing but i swear, every time i view one of your educational videos its even better content wise then the last. Keep up the good work u r a Godsend.
this is, as always, very useful and interesting and inspires me to use this and put it to good use at home. Keep up the good work!. PS: Are you ever thinking of oding a video on how to create a DIY wall scanner?
Great informational video. Many many thanks.
This is very informative, thanks a lot 👍
Bill, another excellent and enjoyable video. I look forward to ALL of your videos. Thinking about how to shrink this enough to create a “Cat Tracker” to see where my kitty goes!
Did you ever do it
Thank you! For your love! I wish to give you a big big huge! Thank you for caring and for sharing your wisdom and knowledge! You are the best teach and I hope to me you one day. Thank you and may God bless you! With love, ScottieV.
I miss seeing these kinds of videos on RUclips.
Outstanding as always!
These are amazing videos thank you
Wow! Thanks for this video.😀
This is great. Thank you for your interesting videos.
Fantastic tutorial !....cheers.
Very well made. Congrats.
Looking forward to a video about the RTK unit!
cant wait for the next video of gps
Welcome to the workshop 💪
Great video! Thanks!
Been hanging out for this for ages. Had to learn from sub par sources 😫
Great, informative video as usual
Your work shelf looks good
Really cool video as usual. Thanks for that. It remains unclear for me why you always wire the µC-TX to the modules-RX, for my understanding the controller only listens and therefore you only need the module-TX to µC-RX connection. That is at least how it works in my projects. And yes, these Chinese modules are extremely cheap and sensitive. My one (BN-180) works next to my balcony door inside behind the glass and curtain and has a fantastic reception to synchronize my matrix LED clock. I like your videos and your way of explaining things.
Excellent video Bill. Now that I can pinpoint where u live..expect a surprise visit to your fabulous lab. 😂..jokes apart, thank you for such a detailed info on a subject, that I use every second day without knowing much abt it.
Inspiring... keep up the good work
Excellent tutorial. Thank you so much! You should make an autonomous driving car.
just learned that this guy live in my area, nice guy for sure
Eagerly waiting for sparkfun gps module video.
Fantastic explanation... it is the best... thank you
Lot of Respect and Love
You led me closer to my goals
Very great video. Informative
Thank you for the fantastic video 👍
And a big video 👁👁
Excellent 👌
Great explanations
Really good video, thank you :)
Could you do a solar panel 2 axis tracker please. Love the way you teach, makes it so much easier to get projects done. Regards.
Thank you given information about India
nice video, i have new idea of projet because of you, but i will never end making just one xD
great video.
nice workshop
Gracias mucho amigo
Wow that was informative.
you are a great man
amazing!! good job!!
So I just stumbled on your channel, and I think you are exactly the person I need some help from. I am in the process of figuring out my strategy for my future diy robot mower and I really don't want a boundary wire. There is a lot of info out there to use rtk with these things but being in Canada it is unclear if the service is free or not for us Canucks. If you are still going to make a video on that subject that would be really great! You seem to be able to make your own base station but that seems complicated.
I like your work keep it up!!!!
Helpful video 👍
This is amazing it has the same feel as a ben eater video and made and hour feel like 10 min
great stuff thanks.
Really amazing video!
well done - Bill
werner from southern germany
Thanks Mr Bill
Nice presentation
great video!
Hat up, This is Just great thank you
Love your videos 💛💛