IoT · Real-Time Vitals · Firebase Cloud · Flutter

PetGuard Pro

An intelligent, low-cost pet safety system combining an onboard telemetry harness, Firebase cloud syncing, and a feature-rich Flutter app with safe-zone trackers, vitals streams, and PDF behavior reports.

PetGuard Pro Architecture
01 · Problem Statement

The Gap in Pet Monitoring

Conventional pet trackers report location on a delay and say nothing about how the pet is actually doing. PetGuard Pro closes both gaps with a connected harness and a live dashboard.

Latency gaps

Slow, Infrequent updates

Many consumer harnesses refresh location every few minutes, leaving owners blind during the moments that matter most. PetGuard Pro's ESP32 harness pushes sensor readings to Firebase Realtime Database on a short, fixed interval, so the app reflects the pet's current state within seconds, not minutes.

Delayed response

No Way to Intervene Remotely

Most trackers only notify after a pet is already gone. When a geofence boundary is crossed, PetGuard Pro triggers an onboard piezo buzzer on the harness itself, giving the owner an immediate, local deterrent rather than just a phone alert after the fact.

Inadequate context

No Health Insights

Location-only devices say nothing about how a pet is actually doing. Our harness pairs an MLX90614 infrared sensor for surface temperature with motion data for real-time activity level — giving owners health context, not just a dot on a map.

Stale dashboards

Silent Disconnects

If a harness loses power or signal, most apps keep showing the last value with no warning that it's outdated. PetGuard Pro's app checks the timestamp on each incoming Firebase record and flags the pet's status as offline the moment updates stop arriving.

02 · Solution Architecture

System Infrastructure

An itemized breakdown of our device-cloud-mobile architecture separated into four technical layers.

01
Hardware
Embedded Harness
02
Backend
Firebase Cloud
03
Interface
Flutter Client
04
Security
Data Access Gate
Layer 01 · Harness
Onboard Embedded
Hardware
ESP32 Core
📟
ESP32 Microcontroller
Core processor managing sensor queries and cellular telemetry transmission cycles.
ESP32-WROOM
🛰️
NEO-8M GPS Module
Acquires active location data packets by locking onto global satellite positioning networks.
NMEA Data
🌡️
MLX90614 Temp Probe
Reads pet body surface temperatures, transmitting register flags over I2C lines.
I2C Protocol
🐕
MPU6050 IMU Sensor
Tracks the dog's movement and activity levels.
PPG Register
🚨
Buzzer & High Brightness LED
Emits audible alerts for the pet or owner and provides visual status and alert indicators.
I2C Protocol
Layer 02 · Cloud Backend
Firebase Cloud
Infrastructure
Firebase Serverless
🔥
Firebase RTDB
Streams live GPS coordinate paths and health vitals instantly from harness telemetry.
Realtime DB
Cloud Functions
Serverless backend logic executes behavior classification algorithms and FCM notifications.
NodeJS
💾
Firestore Store
Stores user dashboards setups, pet registry files, and support ticket history threads.
NoSQL Cloud
🔑
Firebase Auth
Manages secure sign-up, session locks, and built-in password reset services.
Auth API
Layer 03 · Mobile
Flutter Mobile
Dashboard App
Flutter SDK
📈
Real-Time Vitals Stream
Translates incoming database streams into live temperature indices and pulse graphs.
StreamProvider
🗺️
Google Maps Geofence
Draws custom coordinate boundaries and highlights active paths on a maps layer.
Google Maps API
📄
PDF Exporters
Compiles today's path coordinates tables, average vitals levels, and step counts.
pdf Package
🎫
Support Tickets Client
Connects owners directly to a tickets management desk to query help articles.
Firestore Sync
Layer 04 · Security
Security & Encryption
Boundaries
Access Protection
🔒
JWT Session Keys
Secures mobile client REST transactions with Firebase authentication.
Firebase Auth
🚧
Harness Isolation
Hardware logs write only to designated paths based on authenticated pet ownership.
Database Rules
🔑
Firebase SSL
All telemetry streams use secure HTTPS and SSL encryption during transit.
HTTPS · SSL
🔔
Firebase Cloud Messaging
Instantly triggers push notifications on owner devices when boundaries are crossed.
FCM API
03 · Tech Stack

Project Data Flow

How the smart harness coordinates telemetry streams directly with Firebase Realtime Database to feed the owner app.

Hardware Subsystem 📡 NEO-8M GPS Module 🔋 Power Management System 1500mAh Li-Po 🌡️ Temp Sensor (MLX90614) 🌐 IMU (MPU6050) 📱 ESP32 MCU Cache (Internal Flash) 📟 GSM Module SIM800L Cloud Subsystem 🔥 Firebase 🔒 https:// Software (User Layer) 📱 Flutter Mobile App
04 · Core Features

Functional Capabilities

Interact with the features below to preview the mobile dashboard feedback on your pet parents application.

11:35 PM
📶 🔋 85%
PetGuard Pro ⚙️
Harness Status: Online
Harness is online and transmitting data.
85%
Live Telemetry Vitals
💓 Heart Rate
72 BPM
Normal vital bounds
🌡️ Body Temp
38.2 °C
Normal range
🏃 Steps Walked
2,450 steps
49% of daily goal
🐾 Active State
RESTING
Sleeping / Inactive
GEOFENCE ESCAPE
Today's Activity
🐾 0.8 km Walked
⏱️ Just now Last moved
32 min Active time

How can we help?

Search help articles or submit a ticket

🔍 Search help desk...
Create Ticket

Harness offline / Connection dropped issues

No active tickets
🏠 Home
🗺️ Tracking
🎫 Support

⚡ Onboard Dual Connection

Harness automatically synchronizes local telemetry data packet frames using home Wi-Fi or fallbacks onto SIM800L cellular lines when walking outside.

💓 Real-Time Vitals Tracking

Direct registers readings map optical heart rates and IR surface temperatures. Triggers notifications if indicators pass safety limits.

👟 Accelerometer Step Counting

Translates 3-axis MPU6050 accelerometer ticks directly into live step counting goals, monitoring active play metrics on the dashboard.

🚧 Dynamic Virtual Fence

Compares incoming coordinates against boundary circles. Escalates alerts and triggers hardware buzzer alarms if the perimeter is crossed.

📊 Behavior Analytics PDF Reports

Compiles today's path coordinates records, average vitals levels, and step counts into an exportable PDF behavioral summary report.

🎫 Support Tickets Desk

If harness connections drop, status updates to offline. The built-in desk logs tickets in Firestore to handle issues directly.

05 · User Guide

Mobile App User Guide

Watch this video demonstration to see how to pair the harness, monitor vitals, manage geofences, and use the PetGuard Pro Flutter app.

App Walkthrough Chapters

  • 01

    Harness Connection & Setup 0:00

    How to turn on the ESP32 harness and check real-time Firebase connection sync.

  • 02

    Reading Health Vitals 2:00

    Understanding live heart rate indicators, IR body temperature levels, and active mobility alerts.

  • 03

    Setting Up Geofences 4:30

    Drawing custom circular boundary limits on Google Maps and testing the buzzer deterrent system.

  • 04

    Generating PDF Reports 7:15

    Compiling pet movement paths, vitals logs, and daily telemetry progress into exportable PDF summaries.

06 · Project Timeline

Development Roadmap

A 21-week implementation path broken down into key developmental milestones.

Milestone 01: Proposal
Milestone 02: Hardware Setup
Milestone 03: Prototype
Milestone 04: Completion
Completed
Development Phase
Wk 1–3
Wk 4–6
Wk 7–9
Wk 10–12
Wk 13–15
Wk 16–18
Wk 19–21
Milestone 01 — Project Planning & Concept Proposal
1. High-Level Concept Design
2. Hardware Components Selection
3. Project Proposal Presentation
Milestone 02 — Hardware Prototyping & Setup
1. Sensors Breadboard Integration
2. Calibration & Test Code Setup
Milestone 03 — Working Prototype Development
1. PCB Design & Harness Fabrication
2. Firebase Database Setup
3. Flutter Mobile Application
4. Admin Dashboard and Analytics implementation
Milestone 04 — Testing and Deployment
1. Unit and Integration Testing
2. CI/CD Pipelining
3. Web Deployment & Final Review
07 · Budget

Project Budget

Estimated components cost breakdown for a single PetGuard Pro harness prototype in Sri Lankan Rupees (LKR).

Hardware Component Description Quantity Unit Cost (LKR) Price (LKR)
Jumper Wire M/M 20CM 2 190.00 380.00
ESP32 CP2102 Type-C 1 1,490.00 1,490.00
NEO-M8N GPS Module 1 3,290.00 3,290.00
SIM800L GPRS GSM Module 1 1,190.00 1,190.00
MLX90614 Contactless Temp Sensor 1 2,750.00 2,750.00
Accelerometer Module (MPU6050) 1 760.00 760.00
5V Active Buzzer Alarm 2 65.00 130.00
Breadboard 830-Tie Point 2 320.00 640.00
MP1584 Ultra-Small Buck Converter 1 260.00 260.00
Solder Wire 0.8mm 1M 1 100.00 100.00
Soldering Paste Flux 10cc 1 180.00 180.00
Accelerometer Module (spare) 2 730.00 1,460.00
3.7V 1200mAh Li-Po Battery 802540 1 1,050.00 1,050.00
Power LED 5mm White Clear (x2 packs) 4 15.00 60.00
Plastic ABS Project Box 100x65x58mm 1 440.00 440.00
Vero Board Line Medium 14x6cm 1 80.00 80.00
Vero Board Dot Medium 14x6cm 1 80.00 80.00
LED 5mm White Clear Pack (~10pcs) 1 50.00 50.00
2-Way Mini JST 2.0 PH Connector Wire 1 30.00 30.00
SPST Rocker Switch 1 10.00 10.00
BC547 NPN Transistor 3 15.00 45.00
1k 1/2W Resistor Pack 1 60.00 60.00
330ohm 1/2W Resistor Pack 1 60.00 60.00
100nF 50V Ceramic Capacitor 3 2.00 6.00
SAMWHA 100uF 16V Electrolytic Cap 2 20.00 40.00
Solder Wire Lead Roll 60/40 1mm 1 90.00 90.00
Long Jumper Wire M-F (40-pin) 1 160.00 160.00
TP4056 5V 1A Type-C 18650 Charger 1 50.00 50.00
MLX90614 Contactless Temp Sensor (spare) 1 1,950.00 1,950.00
MAX30102 Oximeter/Heart Rate Sensor 1 350.00 350.00
103450 3.7V 2500mAh Li-Po Battery 1 1,319.81 1,319.81
TPS63020 Buck-Boost Converter 1 1,562.25 1,562.25
TPS63020 Buck-Boost Converter (spare) 1 1,502.23 1,502.23
Padded Dog Harness - Black (M) 1 3,700.00 3,700.00
Velcro Strap 1 100.00 100.00
3D Printing — Enclosure (PLA+ White) 1 1,500.00 1,500.00
Glow in dark tapes 1 1,580.00 1,580.00
Grand Total 28,505.29 LKR
08 · The Team

People Behind PetGuard Pro

Department of Computer Engineering, University of Peradeniya (E21 batch).

Team Members
Bingusari Dissanayaka BD
Bingusari Dissanayaka
E/21/106
ePortfolio
Chandur Fernando CF
Chandur Fernando
E/21/137
ePortfolio
Prashan Samarawickrama PS
Prashan Samarawickrama
E/21/350
ePortfolio
Savin Weerasooriya SW
Savin Weerasooriya
E/21/428
ePortfolio
Supervisors
Ms. Yasodha Vimukthi YV
Ms. Yasodha Vimukthi
Project Supervisor
Dr. Isuru Nawinne IN
Dr. Isuru Nawinne
Project Supervisor
Mr. Thilina Gunarathne TG
Mr. Thilina Gunarathne
Project Supervisor