GPS Modules with Arduino and Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 พ.ค. 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!
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 261

  • @Dronebotworkshop
    @Dronebotworkshop  3 หลายเดือนก่อน +1

    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!)

  • @HazzaBaniMalek
    @HazzaBaniMalek 2 ปีที่แล้ว +188

    This channel is disgustingly underrated,, this is PURE GOLD

    • @fast_and_curious9144
      @fast_and_curious9144 2 ปีที่แล้ว +4

      Good To Have You Here
      Could You Share This To Ur Class And Colleagues

    • @filipgojkovic1825
      @filipgojkovic1825 2 ปีที่แล้ว +4

      @Hazza Bani Malek truth be spoken

    • @victoroyadongha2515
      @victoroyadongha2515 2 ปีที่แล้ว +4

      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😏🍻

    • @rogerbond408
      @rogerbond408 2 ปีที่แล้ว +2

      @Hazza Bani Malek: agreed. This whole channel is awesome.

    • @yvesinformel221
      @yvesinformel221 2 ปีที่แล้ว +1

      he probably has to make some stupid face like most other youtubers to get more click

  • @tirthvora5061
    @tirthvora5061 2 ปีที่แล้ว +43

    YOU ARE AMAZING MAN! KEEP IT UP

    • @BeeRich33
      @BeeRich33 2 ปีที่แล้ว +1

      Satellite joke?

  • @smithbotics4158
    @smithbotics4158 2 ปีที่แล้ว +24

    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.

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE 2 ปีที่แล้ว +4

    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.

  • @dwsan1tx
    @dwsan1tx 2 ปีที่แล้ว +3

    You can tell the effort going behind the scenes to make this happen. Great job 👍

  • @klaymon03
    @klaymon03 2 ปีที่แล้ว +17

    Bill, another outstanding video. Thanks for continuing your work.

  • @daveseddon5227
    @daveseddon5227 2 ปีที่แล้ว +8

    Thanks Bill, that was a most informative session - I always learn a lot from your channel. 🙂👍

  • @WildLifeBackyardCamera
    @WildLifeBackyardCamera 2 ปีที่แล้ว +20

    amazing video as usual. Thanks a lot for all your time spent in order to share your knowledge! :)

  • @mrarduino2977
    @mrarduino2977 2 ปีที่แล้ว +6

    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.

  • @reallifelima7951
    @reallifelima7951 2 ปีที่แล้ว +6

    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

  • @victormungai
    @victormungai 2 ปีที่แล้ว +1

    This video just came up exactly when I needed it!! Thanks!🔥

  • @petermolnar6017
    @petermolnar6017 2 ปีที่แล้ว +7

    As always an excellent video, thank you for your efforts!

  • @douglasosborn3378
    @douglasosborn3378 2 ปีที่แล้ว +2

    I rate this channel 10/10. A very interesting topic, please continue.

  • @baldrickdaisy8982
    @baldrickdaisy8982 2 ปีที่แล้ว +5

    Fantastic information on “GPS” Thanks Bill 👌

  • @cyadid
    @cyadid 2 ปีที่แล้ว +2

    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

  • @hingwk13
    @hingwk13 2 ปีที่แล้ว

    I want to express sincerest gratitude to you Sir, you are the Best Professor in this subject!

  • @beachdancer
    @beachdancer 2 ปีที่แล้ว

    Excellent as always. The detail and the quality of the presentation is remarkable.

  • @vacbed
    @vacbed 2 ปีที่แล้ว +2

    Thank you sir for this great video! Watched every second of it with great interest!

  • @fotografm
    @fotografm ปีที่แล้ว

    What a beautiful presentation. So complete and well explained. Thank you !!!

  • @tcarney57
    @tcarney57 2 ปีที่แล้ว

    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?

  • @BryanByTheSea
    @BryanByTheSea 2 ปีที่แล้ว +1

    Another impressive video. Thanks for taking the time to create. Keep them coming.

  • @randalltockes2247
    @randalltockes2247 14 วันที่ผ่านมา

    You are probably my favorite TH-cam out there. Keep up the awesome content.

  • @rdhunkins
    @rdhunkins 2 ปีที่แล้ว

    I did not know that Arduino had the capability to use other pins as a serial TX/RX pair. Very cool! Thanks!

  • @SpinStar1956
    @SpinStar1956 2 ปีที่แล้ว +1

    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? 🤣😂🤣

  • @kumardeepam
    @kumardeepam 2 ปีที่แล้ว

    Thank you for the amazing tutorial 🙏

  • @brianclements1199
    @brianclements1199 ปีที่แล้ว

    What a GREAT video and project, thank you--looking forward to building this myself

  • @bapisaha3990
    @bapisaha3990 2 ปีที่แล้ว

    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.

  • @sq4enr
    @sq4enr 2 ปีที่แล้ว

    Captivating presentation, thank you for posting this video!

  • @derZiegeuner
    @derZiegeuner 2 ปีที่แล้ว

    Thank you so much! Helped me a lot!

  • @sasines
    @sasines 2 ปีที่แล้ว

    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!

  • @jrace2718
    @jrace2718 ปีที่แล้ว

    What an excellent video. I learned a lot. Thank you so much for doing this! Your channel is fabulous.

  • @abpccpba
    @abpccpba 2 ปีที่แล้ว +1

    Wonderful production as usual. The tracker is fascinating. : = ))

  • @mikiethebikie
    @mikiethebikie 2 ปีที่แล้ว

    Thanks Bill, another great video.

  • @shubhamankush6992
    @shubhamankush6992 2 ปีที่แล้ว

    Welcome to the workshop 💪

  • @andyelgrand0
    @andyelgrand0 2 ปีที่แล้ว +2

    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?

  • @JPDrones
    @JPDrones 2 ปีที่แล้ว

    Thanks for sharing your Knowledge! Greetings From Brazil!

  • @JLo_24
    @JLo_24 2 ปีที่แล้ว

    I miss seeing these kinds of videos on TH-cam.

  • @andymouse
    @andymouse 2 ปีที่แล้ว

    Fantastic tutorial !....cheers.

  • @ericludwig8188
    @ericludwig8188 2 ปีที่แล้ว

    I love this channel. He is very easy to understand and makes amazing videos

  • @wishicouldarduino8880
    @wishicouldarduino8880 2 ปีที่แล้ว

    Awesome!I cant believe I didn't catch it yesterday. I want these.😁👍🤖

  • @hieuphungminh6690
    @hieuphungminh6690 2 ปีที่แล้ว

    Your work shelf looks good

  • @andrewmcmahon1
    @andrewmcmahon1 ปีที่แล้ว

    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.

  • @contarinifamily2183
    @contarinifamily2183 2 ปีที่แล้ว

    Great stuff. Love the content. Keep up the great work!

  • @pranavnadkarni5423
    @pranavnadkarni5423 2 ปีที่แล้ว

    This is very informative, thanks a lot 👍

  • @majeedali6432
    @majeedali6432 2 ปีที่แล้ว

    thank god ive found this gem of a channel

  • @djpenton779
    @djpenton779 2 ปีที่แล้ว

    That was fun to watch. Thanks, Bill.

  • @mostlypi6827
    @mostlypi6827 2 ปีที่แล้ว

    Another informative well researched interesting video !

  • @sottilavong
    @sottilavong 2 ปีที่แล้ว

    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.

  • @kiranshashiny
    @kiranshashiny 2 ปีที่แล้ว

    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 )

  • @thomasschattat13
    @thomasschattat13 ปีที่แล้ว +1

    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.

  • @social1435
    @social1435 2 ปีที่แล้ว

    You led me closer to my goals

  • @EcoHamletsUK
    @EcoHamletsUK 2 ปีที่แล้ว

    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

  • @snax_4820
    @snax_4820 2 ปีที่แล้ว

    Very well made. Congrats.

  • @Christoph1888
    @Christoph1888 2 ปีที่แล้ว

    Been hanging out for this for ages. Had to learn from sub par sources 😫

  • @ronaldcollins-noaaaffiliat7464
    @ronaldcollins-noaaaffiliat7464 2 ปีที่แล้ว

    Outstanding as always!

  • @awaisahmed7033
    @awaisahmed7033 2 ปีที่แล้ว +1

    Lot of Respect and Love

  • @marionsananani6118
    @marionsananani6118 7 หลายเดือนก่อน

    I swear you're good. Thank you so much for all this information. These are diamonds.😊

  • @sbsarkar5659
    @sbsarkar5659 2 ปีที่แล้ว +1

    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.

  • @kevgermany
    @kevgermany 2 ปีที่แล้ว

    Thanks. Lovely insight and great useful info.

  • @drmosfet
    @drmosfet 2 ปีที่แล้ว +7

    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.

  • @johngachau3996
    @johngachau3996 2 ปีที่แล้ว

    Inspiring... keep up the good work

  • @MrRayCK
    @MrRayCK 2 ปีที่แล้ว

    This is great. Thank you for your interesting videos.

  • @Electronics61
    @Electronics61 2 ปีที่แล้ว +1

    Great informational video. Many many thanks.

  • @jarekf3083
    @jarekf3083 ปีที่แล้ว

    Looking forward to a video about the RTK unit!

  • @philgo2024
    @philgo2024 2 ปีที่แล้ว

    Excellente vidéo, comme d'habitude !

  • @enlightenlux2668
    @enlightenlux2668 2 ปีที่แล้ว

    Thanx alot from South Africa.

  • @ronaldmorrison2765
    @ronaldmorrison2765 2 ปีที่แล้ว

    Thanks for this video. I have a GPS receiver and have it functioning on an Arduino Mega with an LCD screen that includes an SD card adapter. I would like to use this setup to take another set of data and associate it with the GPS location and write one entry when that data is available but not a continuous stream of GPS data. Is it possible/difficult to utilize a pushbutton switch to tell it to log the data plus the location to SD?

  • @tiagoaneves
    @tiagoaneves 2 ปีที่แล้ว

    Oh, man!
    Could you make a shop tour, please?
    This place is OCD people's heaven like me.

    • @tiagoaneves
      @tiagoaneves 2 ปีที่แล้ว

      I search better and found the tour. Amazing!

  • @IceMetalPunk
    @IceMetalPunk 2 ปีที่แล้ว

    If the declination changes with your location, would it perhaps result in a more accurate reading if you were to send the GPS coordinates to an API to return the actual declination at the current location? Or is that overkill and maybe there's a better way to keep the compass accurate as you travel?

  • @aloisiobastos8873
    @aloisiobastos8873 2 ปีที่แล้ว

    Fantastic explanation... it is the best... thank you

  • @eclecticlife
    @eclecticlife 2 ปีที่แล้ว

    Excellent tutorial. Thank you so much! You should make an autonomous driving car.

  • @yv6eda
    @yv6eda 2 ปีที่แล้ว

    Great video! Thanks!

  • @victoroyadongha2515
    @victoroyadongha2515 2 ปีที่แล้ว

    Gracias mucho amigo

  • @sumantakumardutta986
    @sumantakumardutta986 2 ปีที่แล้ว

    Wow! Thanks for this video.😀

  • @quangvu-tracia7881
    @quangvu-tracia7881 2 ปีที่แล้ว

    Thank you so much for your video. I have one question about GPS. How can we calculate coordinates in WGS84 system

  • @inventionist172
    @inventionist172 2 ปีที่แล้ว

    This is amazing it has the same feel as a ben eater video and made and hour feel like 10 min

  • @inlywang8157
    @inlywang8157 2 ปีที่แล้ว

    Great, informative video as usual

  • @joelsusser32
    @joelsusser32 7 หลายเดือนก่อน

    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.

  • @jackdrew4658
    @jackdrew4658 2 ปีที่แล้ว +3

    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.

  • @TRETT1956
    @TRETT1956 2 ปีที่แล้ว

    well done - Bill
    werner from southern germany

  • @ooaaoooao
    @ooaaoooao 7 หลายเดือนก่อน

    great video!

  • @Birdman445
    @Birdman445 ปีที่แล้ว

    These are amazing videos thank you

  • @w02190219
    @w02190219 ปีที่แล้ว

    nice workshop

  • @Usq7213
    @Usq7213 2 ปีที่แล้ว +1

    cant wait for the next video of gps

  • @abdulrazak_alnajjar596
    @abdulrazak_alnajjar596 2 ปีที่แล้ว

    Very great video. Informative

  • @andy6334
    @andy6334 2 ปีที่แล้ว

    Very good video, man. Will You post something with the SparkFun GPS? I'm very interested in precision localizations.

  • @abugin5415
    @abugin5415 2 ปีที่แล้ว

    Is the location of the piece determined at the moment? Or experience talking about the itinerary of the trip to and from?

  • @zainalhas7416
    @zainalhas7416 2 ปีที่แล้ว

    Thanks Mr Bill

  • @antoinedevos3765
    @antoinedevos3765 2 ปีที่แล้ว

    Thank you for the fantastic video 👍
    And a big video 👁👁
    Excellent 👌

  • @abdalrhmanalaa9982
    @abdalrhmanalaa9982 ปีที่แล้ว

    you are a great man

  • @oliviers589
    @oliviers589 2 ปีที่แล้ว

    Wow that was informative.

  • @dmitryvlasov931
    @dmitryvlasov931 2 ปีที่แล้ว

    Good job! Can we calculate the distance covered using this data on Google Maps?

  • @shishvan
    @shishvan 28 วันที่ผ่านมา

    Hi, very informative video. I couldn't the video/project that you did with the SparkFun RTK-SMA unit. does it exit?

  • @tarunarya1780
    @tarunarya1780 2 ปีที่แล้ว

    Now I know why a robotic lawnmower doesn't use GPS as 1-3m is potentially poor depending on the size of the lawn. I watched your earlier video introducing the change to esp32s and with respect to the esp-cam and hoped for a lawnmower. I bought a worx landroid and wantd it to work within a temporary loop of perimeter wire. It ran over the pegged wire and cut it.
    I watch in hope of something that can cut the lawn at a reasonable cost with ideally no wires. PS Love the videos Ihave seen and will look at more. Thanks

  • @coolbee73
    @coolbee73 9 หลายเดือนก่อน

    Is there any chance you could create a video showing and explaining how to salvage/repurpose gps moduals from sat navs or other devices as well as how to identify the pin outs without using data sheets/schematics..?

  • @fusrusty253
    @fusrusty253 2 ปีที่แล้ว

    amazing!! good job!!

  • @peddintiudaykiran3613
    @peddintiudaykiran3613 2 ปีที่แล้ว

    Thank you given information about India

  • @1minutechess
    @1minutechess 2 ปีที่แล้ว +2

    A channel that is making me the next Elon musk electronics + coding = master scientist

  • @sddiymakeitworthit7512
    @sddiymakeitworthit7512 2 ปีที่แล้ว +1

    Nice presentation