Skip to main content
Version: ACS CC

Cat GPS Tracker & Home Alarm

Keep my cat safe and close to home using Wi-Fi-based tracking, smart alerts, SD card backup, and live map tracking

info

Author: Dragoș-Andrei Sava
GitHub Project Link: https://github.com/UPB-PMRust-Students/proiect-savaandrei2003

Description

A two-device system based on Raspberry Pi Pico 2W boards to track a cat using GPS and Wi-Fi, while offering local and remote alerts, SD logging, and live map integration via a mobile device.

Key functionalities:

  • The collar Pico W:

    • Sends GPS coordinates every 5 seconds via Wi-Fi to:
      1. The home Pico W
      2. A server running on my computer
    • Saves coordinates on a microSD card if Wi-Fi is unavailable.
    • Activates a night mode - LED + beep every 10s - based on light sensor.
    • Can activate its buzzer or LED remotely via buttons on the home unit.
  • The home Pico W:

    • Displays live coordinates or last known data on an LCD screen.
    • Triggers LED and buzzer alarm if connection is lost.
    • Two buttons control the collar LED or buzzer remotely.
  • The server running on my computer:

    • Receives GPS coordinates via HTTP API.
    • Maps the real-time location using Leaflet.js + OpenStreetMap.
    • Can be accessed via browser for live tracking.

Motivation

Commercial GPS trackers are expensive and full of subscriptions. This DIY alternative uses affordable hardware, local Wi-Fi, and a custom pc-hosted map server to help my mother keep track of her cat. It offers a rich feature set including real-time alerts, offline GPS logging, and a live web map.

Architecture

block

Log

Week 5 - 11 May

Week 12 - 18 May

Week 19 - 25 May

Hardware

  1. Raspberry Pi Pico 2W x2:
  • Wi-Fi-enabled microcontrollers
  • One on the cat's collar, one in the house
  1. GY-NEO6MV2:
  • GPS module
  • Real-time positioning of the cat
  1. TSL2561:
  • Light intensity sensor
  • Takes periodic measurements and sends the data to the MCU
  • Detects ambient darkness to trigger beacon mode
  1. LCD screen:
  • Shows live GPS coordinates in house
  1. LEDs x2:
  • One on the collar for visibility in dark
  • One in house unit for alarm signal
  1. Buzzer x2:
  • One in collar for locating the cat
  • One in house unit for lost-signal alarm
  1. Push Buttons ×2
  • Control collar LED and buzzer remotely
  1. SD Card Module + microSD
  • Stores GPS coordinates when offline

Schematics

kicad kicad

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico 2WThe microcontroller and debugger39.66 RON × 2
TSL2561Light intensity sensor22.99 RON
GY-NEO6MV2GPS Module44.95 RON
SD Card ModuleWrite data locally7,14 RON
BreadboardConnect all the components9.98 RON x2
LCD screenDisplay the sensors' measurements16.34 RON
BuzzerAudio alarm1.40 RON x2
Push ButtonsRemote commands0,49 RON x2
LEDVisual alarm0.39 RON × 2
Pin headerConnect components to the breadboard0.99 RON × 10
Battery holderPower the circuit3.95 RON
Total-209,11 RON

Software

LibraryDescriptionUsage
embassy-rpRP2040 HALGPIO, UART, SPI, I2C
embassy-timeTimekeeping, delays and timeoutsCreate timers
embassy-netAsync network stackSend messages over Wi-Fi
embassy-executorAn async/await executorCreate different tasks
lcd1602-rsDisplay libraryDisplay coordinates
heaplessStatically allocated dataBuffers for display and packets
embedded-sdmmcFilesystem access to SD cardLog coordinates when offline
  1. Lab 03 - PWM & ADC
  2. Lab 04 - Asynchronous Development
  3. Lab 06 - Inter-Integrated Circuit
  4. Lab 07 - Wi-Fi
  5. How to connect LCD without I2C