Raspberry Pi Gps Tracker

Introduction: Raspberry Pi Gps Tracker

hi friends

always smile and be happy because it's the best thing that we have .

this time i have made a raspberry pi GPS tracker and a real time web interface.

to make it brief, we have a GPS module with a serial communication that we read on raspberry

and show it on a HTML web page. easy!

for reading from module, we i have this beautiful simple python code to get the latitude & longitude as you see in images(it's gps.py )

that way you print the lat & lon when you execute gps.py like:

sudo python gps.py

Step 1: Building the Web Interface

we're gonna use JAVASCRIPT and AJAX and PHP for showing map on HTML

it's like this:

1- execute gps.py in php

2-echo gps.py output in php

3-in js put a google map object

4-send a ajax request to .php and get response text

5-make text numbers sliced and appropriate

6-again & again send ajax requests to refresh the lat & long and marker on map

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    2 Discussions

    thank you ! It worked but not showing accurate location it is somewhere 10 -15 km away from my location. I tried to set position of received line from GPS data

    var poslat=(Number(pos.slice(0,9)))/100;

    var poslong=(Number(pos.slice(14,24)))/100;

    but fail to achieve actual location. Anyways nice tutorial. I have one more question . Is it possible to get speed, altitude and other readings from GPS module what need to be done to achieve this. Thank you again