How to Setup GPS Tracker for Raspberry Pi

Ғылым және технология

GPS Receiver 👉 amzn.to/3Opnei3
How to Setup GPS for Raspberry Pi 3 Model B+ In this tutorial we will show you how to install and use an external GPS receiver module hat for the raspberry pi. GPS is a global position system that uses satellite antennae to find the device's longitude and latitude coordinates which can then be used to geolocate your position on a map. #raspberrypi #gps #iot
Linux Commands
cd /dev/
ls
sudo apt-get install gpsd gpsd-clients python-gps
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
vim /lib/systemd/system/gpsd.socket
sudo kilall gpsd
sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock
The linux package to read the GPS data is called GPSD.
www.catb.org/gpsd/
GPS in Video
www.amazon.com/gp/product/B07...
Music Credit: BenSound.com

Пікірлер: 133

  • @Learn2saillyttelton
    @Learn2saillyttelton5 жыл бұрын

    Great, worked for me, I had to use sudo nano instead of vim but thats Ok, thank you, very useful, well done, co-ordinates were spot on too

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    Great! Vim > Nano 😋

  • @kaustavsengupta8757
    @kaustavsengupta87575 жыл бұрын

    Hey great introduction tutorial. Just a friendly advice brother , be careful not to show your personal home address on KZread for obvious reasons.

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    I'll have you know I've since replaced that with a much classier glass coffee table.

  • @vanhetgoor

    @vanhetgoor

    4 жыл бұрын

    The Chinese know where you are, they know your home address, your IP-number, your bank account, the IMEI-number of your phone, your bloodtype, height and weight, the exact colour of your skin with 24 bit accuracy and most of all what you have ordered online. The CIA knows all of this, but they have also recorded all your phone calls, just like all e-mails and text messages send to or from your phone or computer. The Mexican secret service is looking into all of this and is sending a man to your door if and when the think you need assistance with mowing the lawn. It does not matter if or and when you try to keep your address hidden. These clever Mexicans are finding out somehow if there is a job to do. Their secret service is the best.

  • @user-bw7or4ep3e
    @user-bw7or4ep3e4 жыл бұрын

    Thank you for the helpful tutorial

  • @GeoffreyMH
    @GeoffreyMH4 жыл бұрын

    Beautifully clear, thank you.

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    You’re welcome 😊

  • @padraig4096
    @padraig40964 жыл бұрын

    Thanks for the helpful tutorial. By the way, it's not the number of decimal places in the coordinates that caused the inaccuracy in locating your address. Six decimal places of a degree is enough to locate you within just over four inches for latitude and even better for longitude (unless you're at the equator, when it's the same.)

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Interesting, thanks for that note.

  • @mrdanielsmith5829
    @mrdanielsmith58295 ай бұрын

    worked great the commands did😮!!

  • @dgb5820
    @dgb58204 жыл бұрын

    So far so good

  • @marcoarancibia5756
    @marcoarancibia5756 Жыл бұрын

    This is great !!! Thank you

  • @George2094
    @George20944 жыл бұрын

    Thank you!I am using waveshare l76x multi gps hat in rpi 3 b+, but you helped me a lot.Thank you again.Well deserved subscription and like!Thank you!

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    🙏

  • @Melzasx
    @Melzasx5 жыл бұрын

    Great tutorial! It'd be nice if we could now run Android on that Raspberry with Google Maps native app (or Waze) reading signal from the generic GPS.

  • @kazimafzal

    @kazimafzal

    5 жыл бұрын

    You can run Android Auto -- refer to this video: kzread.info/dash/bejne/gqmfwdKzfarKZ8Y.html

  • @BoazKang
    @BoazKang Жыл бұрын

    Thanks for the helpful tutorial. By the way, I don't know why "sudo apt-get install gpsd gpsd-clients python-gps" is not working on my raspi ... please help me

  • @SDNTechForum
    @SDNTechForum Жыл бұрын

    Hi have USB GPS/GLONASS U-Blox-7 connetced to rspbetrry pi which is battery powered. I am running "gpsmon -n" and redirecting to an output file. The file is getting new timestamp while I raom outside with Raspebrry Pi but it still get the same Longitude and latitude value. Any idea why it is not updating the locations?

  • @svnaidu
    @svnaidu4 жыл бұрын

    Great video! Is there a way to pipe the GPS data into a log file stored in var/log directory. I am intending to send those data to a central monitoring system (i.e. Splunk) for GeoLocation.

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Should be possible, yes

  • @lamacobain9653

    @lamacobain9653

    3 жыл бұрын

    hey, were you able to pipe the data? i just set up my gps with RP and i need to keep logging the data on the move

  • @PilotOdyssey
    @PilotOdyssey4 жыл бұрын

    Show in part 2 how to record a track. Part 3 how to create Waypoints. Thanks

  • @debobabai
    @debobabai5 жыл бұрын

    Thank for the tutorial. It's very useful. I have followed all your steps and I am getting the lat- long. But the lat-long is not the exact location it's off by several miles. Do I need to adjust it using any "RTK" library?

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    My experience is that it's not perfect because it's based on the position of satellites, is it consistently off?

  • @debobabai

    @debobabai

    5 жыл бұрын

    @@DataSlayerMedia Thanks for quick reply. It's off by 5-6 miles. I also like to let you know that I am using the device from the top floor of my home while windows are open. I am not sure if that is causing the issue as I am not seating at open air. But I have observed one thing after running for several hours the GPS locations are not fluctuating a lot, though the location is a wrong location.

  • @johnkosh

    @johnkosh

    5 жыл бұрын

    Try using cgps at the command line. gpsmon has issues with accuracy. When I use cgps I was accurate within an inch of my property line.

  • @jeffcarpenter7721
    @jeffcarpenter77214 жыл бұрын

    i got a lil further than last time the video actualy worked for me this time last time i think i tried to rush through it tytytytyty

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    happy to hear it

  • @carpcturkey
    @carpcturkey3 жыл бұрын

    Nice job. Thank you. Any USB GPS device will work with this method? I will use LineageOS 17.1 on Raspberry Pi 4B to car usage.

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    any standard gps should work, the fancier they get the more likely it's going to have it's own proprietary software.

  • @tezc1197
    @tezc1197 Жыл бұрын

    Do you build custom raspberry pi builds for customers

  • @walperstyle
    @walperstyle4 жыл бұрын

    I'd like to find a way to setup a Text plan using a SIM card so I can grab the NEMA codes and text them every hour that the unit is turned on. Ideas on how to work both?

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    How does the sim card play into this? You can send texts on the pi using the sms gateway.

  • @walperstyle

    @walperstyle

    4 жыл бұрын

    @@DataSlayerMedia providers

  • @HUCERBH3947
    @HUCERBH39475 жыл бұрын

    Nice tutorial if i have a rc car and i make it avoid obstacles and i install gps like you did how i can make the car follow a specific place this make my head explode

  • @ecookman

    @ecookman

    5 жыл бұрын

    you would need a signifigantly more accurate GPS device. Most WAAS GPS devices are accurate to 3 metrs

  • @lokkiez
    @lokkiez6 ай бұрын

    it works for i2c too?

  • @alexlandherr
    @alexlandherr4 жыл бұрын

    Would a Globalsat BU-353S4 USB receiver with a SiRF Star IV chip work? I’ve looked on Stack Exchange and it seems to work very well according to the posts I found.

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Can't guarantee, but my guess it would work the same way with that device.

  • @sibujacob977
    @sibujacob977 Жыл бұрын

    Hi , the main sudo apt-get install is not installing ....any changes

  • @mu1682
    @mu16825 жыл бұрын

    Thank for the tutorial. It's very helpful. After I go through the gpsmon step, there only error show on mine, and no gps data information pop up, do you know the reason?

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    What is the error?

  • @mu1682

    @mu1682

    5 жыл бұрын

    @@DataSlayerMedia I have same information which you have in video 7:20, but there no gps data information table pop up after that

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    The receiver needs a clear line of sight to the satellite, it may need to be outside, or sometimes it takes a while to begin receiving data.

  • @TexRider
    @TexRider4 жыл бұрын

    Thank you very much as it helped a lot. once again saying thanks from 46 21' 35.715" -79 19' 27.040" or close hahaha Take Care

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    🇨🇦 Greetings

  • @nications9819
    @nications98193 жыл бұрын

    How did you get your gps stuff to look so nice and clean in the terminal mine is ugly and keeps blinking Thanks

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    nothing special, your viewport might be too small

  • @yaheaahmed1047
    @yaheaahmed1047 Жыл бұрын

    how can I do autonomous robot with gps and raspberry pi and mapping the path??

  • @joeshedler6496
    @joeshedler64963 жыл бұрын

    So is this data now usable by map software like google maps? Or does it just spit out the data for you to do your thing with?

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    That's an interesting question, I believe it would enable the HTML GPS api but you would still have to allow access explicitly in the browser.

  • @joeshedler6496

    @joeshedler6496

    3 жыл бұрын

    @@DataSlayerMedia Rpi android auto here we come! :)

  • @miltonbradley748
    @miltonbradley7484 жыл бұрын

    Need to add sudo to vim command when you change to 0.0.0.0 or you'll get read only error.

  • @jeffcarpenter7721

    @jeffcarpenter7721

    4 жыл бұрын

    i started with that command being familiar with terminal commands but still get command error

  • @ianfrancis3605

    @ianfrancis3605

    4 жыл бұрын

    chmod 777 the file

  • @NikiRocky

    @NikiRocky

    3 жыл бұрын

    I have the same error, chmod says: Operation is not permitted - so how we can do?

  • @juanjoerazo1710

    @juanjoerazo1710

    2 жыл бұрын

    thankss!

  • @hohohappyday77
    @hohohappyday775 жыл бұрын

    can U upload raspberry pi 3 b+ with neo-6m GPS as GPIO working video? Unfortunately, I don't have your device.

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    I added it to my list!

  • @JoelIvoryJohnson
    @JoelIvoryJohnson4 жыл бұрын

    I'd suggest changing the title of the video. I just tried this procedure on the Raspberry Pi 4. It may be worth removing the Raspberry Pi version number (or changing it to 3/4) so that people running the 4 also know that this will work for them.

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Done! Thanks for the feedback.

  • @martinhounie6157

    @martinhounie6157

    3 жыл бұрын

    you answerd me that quastion! thanks

  • @tpobrienjr
    @tpobrienjr2 жыл бұрын

    thanks1

  • @segev95
    @segev953 ай бұрын

    What happened at 7:27? how did you change the screen?

  • @shekharpatil2582
    @shekharpatil25824 жыл бұрын

    How do I extract the location coordinates and use it in my python code?

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    python can execute CLI commands. So you could use one of the commands outlined in the video and listen for a period of time and then take that snapshot of data with the coordinates and use that for your script.

  • @DialecticalMaterialismRocks
    @DialecticalMaterialismRocks7 ай бұрын

    Is this powered by wifi or a sim card?

  • @jamespersons5729
    @jamespersons57292 жыл бұрын

    I am getting a lot of error messages and "failed to fetch" items when I run apt-get install gpsd... command. Any idea what I am doing wrong on this.

  • @DataSlayerMedia

    @DataSlayerMedia

    2 жыл бұрын

    Update the packages on your os first....

  • @ishaan1704
    @ishaan17042 жыл бұрын

    Hey, I am using a Quectel L89 EVB with a raspberrypi 3B. Have made the connections using USB. Raspberry pi identifies the connection at ttyUSB0. Have followed multiple methods to setup gpsd but none seem to show any result at gpsmon or cgps. please suggest something!

  • @DataSlayerMedia

    @DataSlayerMedia

    2 жыл бұрын

    Does the module have a direct line of view to the sky?

  • @ishaan1704

    @ishaan1704

    2 жыл бұрын

    @@DataSlayerMedia Hey, the receiver was actually taking some time to get a fix position, currently It is working fine. Thanks for the reply!

  • @willTryAgainTmrw
    @willTryAgainTmrw5 жыл бұрын

    interesting addon. checked on aliexpress, getting for around $5.Though I am wondering how this would be useful .

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    If your building security cameras or a device for a vehicle then I'd say it's pretty useful for locating all your devices!

  • @TheModShopCO

    @TheModShopCO

    5 жыл бұрын

    @@DataSlayerMedia The PI would still need to have internet access. Can you give an example of a decent way to implement that when installed in say a vehicle for example?

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    This should work without internet of course you would have to read that information locally at the device location so I don't know how useful that is if you want to read it remotely.

  • @subzer0182

    @subzer0182

    5 жыл бұрын

    @@DataSlayerMedia would be great to use the settings from the gps and display these on google maps remotely for vehicle tracking.

  • @claudem.p.7969
    @claudem.p.79695 жыл бұрын

    stupid question: how did you change the background in the terminal window. 73 VA2SOB - Claude

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    imgur.com/gSLBld4

  • @claudem.p.7969

    @claudem.p.7969

    4 жыл бұрын

    @@DataSlayerMedia in the rapsberry pi terminal window. the background is black.

  • @devaughnjackson3459
    @devaughnjackson34594 жыл бұрын

    I'm having trouble with setting up mines. When I try to put in the vim line command it keeps telling me command not found what do I need to do in order for it to run.

  • @WIndowsGaming

    @WIndowsGaming

    4 жыл бұрын

    Install vim ;) or use vi instead of vim

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    sudo apt-get install vim

  • @mtngr1

    @mtngr1

    Жыл бұрын

    When I did this command, it said read only and wouldn't let me edit

  • @jhonywatts
    @jhonywatts3 жыл бұрын

    Don't works for me... When I call gpsmon on terminal the latitude and longitude are not displayed, but the socket events are running. Does anyone have any idea what it might be?

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    Does you module have a clear line of sight to the sky?

  • @iamdimacs
    @iamdimacs3 жыл бұрын

    just curious why 127.0.0.1 gets changed to 0.0.0.0 on /lib/systemd/system/gpsd.socket

  • @iamdimacs

    @iamdimacs

    3 жыл бұрын

    I get it now.... It's to be able to listen to other devices when -G flag is set

  • @thesteministstories6100
    @thesteministstories61003 жыл бұрын

    will the gps coordinates automatically change as you shift the raspberry pi?

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    Yes

  • @mattivirta
    @mattivirta5 жыл бұрын

    how you see and know were port gps has connected ? i not understand now, before and time 3;37 video time display i no see were gps have.

  • @martinhounie6157
    @martinhounie61573 жыл бұрын

    Hi how can i get the speed of the gps? I cant find repositories or the comands to do it

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    You compare the signal and distance change over time. Just need some math there.

  • @g.h.2800
    @g.h.28005 жыл бұрын

    "~ $ dmesg" will also do the job instead of typing "ll"

  • @MuhammadIqbal-qk4hc
    @MuhammadIqbal-qk4hc4 жыл бұрын

    What is the name of the gpsd hardware? And where can i buy it?

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    www.amazon.com/Interface-Navigation-External-Receiver-Earth%EF%BC%8CRaspberry/dp/B07ZKF5SFQ/ref=sr_1_9?dchild=1&keywords=gps+receiver+raspberry+pi&qid=1589630123&sr=8-9

  • @kushal7268
    @kushal72685 жыл бұрын

    Will it work with neo 6m gps?

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Isn't that for Arduino?

  • @SDNTechForum
    @SDNTechForum Жыл бұрын

    Is anyone able to test it while on the move?

  • @alexrogers9086
    @alexrogers90864 жыл бұрын

    Does this work on the model 2 b+

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    Not sure, probably.

  • @abdullahahmed5695
    @abdullahahmed56953 жыл бұрын

    Is Internet Required to get this to work?

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    No

  • @craigcowen
    @craigcowen4 жыл бұрын

    How about dmesg and lsusb to find the new device?

  • @craigcowen

    @craigcowen

    4 жыл бұрын

    OK, just got mine, the output from dmesg right after plugging it in: [40023.625590] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    I haven't messed around with those commands so I'm not sure.

  • @bbillp
    @bbillp5 жыл бұрын

    Unfortunetely does not receive from a Garmin GPS-60CSX USB.

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    I will have to look into that device.

  • @vzr314
    @vzr3143 жыл бұрын

    Now everyone knows where you live :D

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    That was counterproductive!

  • @mahfuzurrahmanemon4633
    @mahfuzurrahmanemon46334 жыл бұрын

    Which model of gps is used?

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    www.amazon.com/gp/product/B078Y52FGQ/ref=oh_aui_detailpage_o02_s02?ie=UTF8&psc=1

  • @mrthinker3058
    @mrthinker30583 жыл бұрын

    do pi need internet connection

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    They don't need an internet connection here.

  • @Iggy8me
    @Iggy8me2 жыл бұрын

    Does this work on the pi zero

  • @DataSlayerMedia

    @DataSlayerMedia

    2 жыл бұрын

    Should

  • @JA-yy6bd
    @JA-yy6bd3 жыл бұрын

    How do I jamm car tracker gps?

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    That's an interesting questions. One method would be to block the signal between the device and the satellite.

  • @ralph9987
    @ralph99873 жыл бұрын

    try and keeps your hands in the shot

  • @DataSlayerMedia

    @DataSlayerMedia

    3 жыл бұрын

    ok :)

  • @ajuvargheseantony6844
    @ajuvargheseantony68445 жыл бұрын

    Hi, it was really beneficial and it worked very accurate in my case. Althought I have a question if we could log the readings of these gps locations in json/csv or xml format? if so can you tell me how to do it? I have few sensors attached to the RPI and i want to geotag it with the gps data..thats the idea....can you help me out? Question 2: The time that i see in the gpsmon tab is delayed than the actual time, I want to synchroniyze it....do you how can I do it? I already tried this kzread.info/dash/bejne/gZWbm9OSpcuzd8o.html but it dosent work.

  • @DataSlayerMedia

    @DataSlayerMedia

    5 жыл бұрын

    I haven't dived much deeper into these areas, so I am not sure the answer.

  • @jeffcarpenter7721
    @jeffcarpenter77214 жыл бұрын

    all i get is command not found

  • @DataSlayerMedia

    @DataSlayerMedia

    4 жыл бұрын

    For which command?

  • @Halz0holic
    @Halz0holic3 жыл бұрын

    How to dox yourself 101

  • @DataSlayerMedia

    @DataSlayerMedia

    2 жыл бұрын

    Wut

  • @mattivirta
    @mattivirta5 жыл бұрын

    who need raw data no newer need, only need raspi somethink good car navicator, i has before win laptop usb gps and autoroute66 and work fine at work me ewery day, laptop has 14 inc display can see were go when drive. what offline navi soft have linux, all this video code have out of my head, i not understand anythink but need make raspi car navicator. how?internet and google map not have good newer. need expensive internet and ewerywere not have internet near. etc, north thailand no have many place. and need be good navi there. about germany have good internet but no need navi anywere, or norway etc all europe.

  • @mattivirta
    @mattivirta5 жыл бұрын

    if this gps navi need internet connection ,this is shit, no thanks, only offline need be, ewerywere no have internet. and expensive pay lot. no newer used ,only home net and wifi used raspi if need download somethink new to raspi.

Келесі