How to build a Raspberry Pi GPS Tracker

Raspberry PiTracker

1. Hardware that is needed

Raspberry Pi Zero WH with Waveshare GSM/GPRS/Blutooth HAT

2. Headless Setup of the Raspberry Pi

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert 2 letter ISO 3166-1 country code here>

network={
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"
}

3. Accessing the Raspberry Pi via SSH

4. Installing necessary software

sudo apt-get update && sudo apt-get upgradesudo apt install git python-setuptools python-pip wiringpi screengit clone https://github.com/adammck/pygsm.gitgit clone https://github.com/olaf-hoops/pitrackercd pygsmsudo python setup.py installsudo pip install crcmod
sudo chmod a+x tracker.py
sudo crontab -e
@reboot /home/pi/pitracker/startup.sh

5. Test your GPS Tracking Device

6. Debugging

sudo screen -r pitracker
Running tracker.py script
sudo python tracker.py

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ServiceNow Service Catalog Creation and Benefits During COVID-19

ANDROID: Dealing with ClassCastException

Let’s Look Back at 2020

IoTeX Running a Node on the Testnet on Ubuntu

First step on Firebase Test Lab with iOS Project

Implementation of Queue Data Structure in Python

Beginner’s Guide to Web Apps using Flutter!

How to use linbo-remote to manage school computers with little to no effort

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
onehitwonder

onehitwonder

More from Medium

Building Retro Audio System with piCorePlayer and Raspberry Pi 4

Having trouble with xRDP? Try X2Go!

What are CTFs or Capture The Flag?