IoT · Real-Time Vitals · Firebase Cloud · Flutter

PetGuard Pro

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

PetGuard Pro Architecture
4
System Layers
5
Active Sensors
3
Warning Levels
SCROLL TO DISCOVER
01 · Problem Statement

Addressing Pet Safety

Traditional tracking systems fail to provide instant safety alerts or integrated vitals context. PetGuard Pro resolves these boundaries.

01 / Latency gaps

High Sync Latency

Consumer pet tracking collars typically rely on periodic updates, leaving large windows where pets are unaccounted for. We stream telemetry continuously through Firebase RTDB.

02 / Delayed notifications

Late Escape Awareness

Owners often learn of escapes long after boundary breaches. Our system immediately triggers a piezo collar alarm buzzer to startle pets and halt further escapes.

03 / Inadequate context

No Health Insights

Standard locators offer no vitals indicators. We mount temperature probes (MLX90614) and pulse registers (MAX30102) to track thermal levels and heart rates alongside coordinates.

04 / Stale state dashboards

Undetected Disconnects

If collar units run out of battery or lose signal, applications still show stale values. Our client checks the age of incoming database packets, updating status flags instantly.

02 · Solution Architecture

System Infrastructure

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

01
Hardware
Embedded Collar
02
Backend
Firebase Cloud
03
Interface
Flutter Client
04
Security
Data Access Gate
Layer 01 · Collar
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
💓
MAX30102 Pulse Sensor
Queries optical pulse photoplethysmography registers to extract heart rate readings.
PPG Register
Layer 02 · Cloud Backend
Firebase Cloud
Infrastructure
Firebase Serverless
🔥
Firebase RTDB
Streams live GPS coordinate paths and health vitals instantly from collar 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
🚧
Collar 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 collar coordinates telemetry streams directly with Firebase Realtime Database to feed the owner app.

PetGuard Pro System Data Flow Map
04 · Core Features

Functional Capabilities

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

PetGuard Pro
Collar Status: Online
GEOFENCE ESCAPE
Heart Rate
72 BPM
Normal index
Body Temp
38.2 °C
Surface therm
💤
Daily goal: 5,000 steps
2450 steps
Resting

Pet behavior classified as resting/sleeping

⚡ Onboard Dual Connection

Collar 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 collar connections drop, status updates to offline. The built-in desk logs tickets in Firestore to handle issues directly.

05 · 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 & Collar Fabrication
2. Firebase Database Setup
3. Flutter Mobile Application Vitals Stream
Milestone 04 — Dynamic Analytics, PDF Export & Finalization
1. PDF Exporter & Behavior Logs
2. Support Desk & Offline Dynamic Logic
3. Web Deployment & Final Review
06 · Budget

Project Budget

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

Hardware Component Description Quantity Unit Cost (LKR) Price (LKR)
ESP32 Core Microcontroller (ESP32-WROOM-32) 1 1,500.00 1,500.00
NEO-8M GPS Satellite Positioning Module 1 3,000.00 3,000.00
SIM800L GPRS Cellular module 1 2,000.00 2,000.00
Health Sensors Bundle (MLX90614, MAX30102, MPU6050) 1 set 3,300.00 3,300.00
1500mAh 3.7V Rechargeable Li-Po battery pack 1 2,200.00 2,200.00
Buck Converter charging systems (USB-C support) 1 1,000.00 1,000.00
Piezo Alarm Buzzer + Status Indicator LEDs 1 set 150.00 150.00
Collar Enclosure shell packaging 1 800.00 800.00
Custom PCB Fabrications, connectors, and wiring terminals 1 set 1,000.00 1,000.00
Pre-loaded mobile carrier SIM cards 1 500.00 500.00
Grand Total 15,450.00 LKR
07 · 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