Petfit collar for pet's heath care

it is a collar to manage the health of the animal and heart rate temperature and distance of our pet from other animals
6
4
0
100
updated April 22, 2025

Description

PDF

 

the youtube link to the project  :) 

 


Project name

Pet Fit Collar for Cows

Description

The Pet Fit Collar is a wearable health and activity tracker designed for cows. It monitors vital parameters like heart rate, body temperature, and movement.
The project aims to help farmers and veterinarians remotely monitor cow health in real time, improving animal welfare and early detection of health issues.

Special part: It combines multiple sensor readings into one lightweight collar system powered by an Arduino.

Functions

Measure cow’s heart rate using a heart rate sensor.

Monitor body temperature with a temperature sensor.

Detect movement and distance using two ultrasonic sensors.

Display collected data on a serial monitor or send to a connected device for further analysis.

Hardware and Software Used

Hardware:

Arduino Uno (or any Arduino-compatible board)

2x Ultrasonic Sensors (HC-SR04)

1x Temperature Sensor (DS18B20 or LM35)

1x Heart Rate Sensor (e.g., MAX30100 or pulse sensor)

9V Battery + Battery Clip (for portable power)

Wires, Connectors, and Collar Mount

(Optional) Bluetooth Module (like HC-05) for wireless data

Software:

Arduino IDE

Libraries for sensors (like OneWire and DallasTemperature for DS18B20)

(Optional) Serial Bluetooth Terminal app for mobile viewing

Wiring Diagram

(Diagram should be drawn separately — I can help you make a basic one if you want!)
Key connections:

Ultrasonic sensor 1: Trigger → D2, Echo → D3

Ultrasonic sensor 2: Trigger → D4, Echo → D5

Temperature sensor: Data → D6 (with a 4.7kΩ pull-up resistor)

Heart rate sensor: Signal → A0

All sensors powered via 5V and GND pins on Arduino

Code

Summary:

Read temperature, heart rate, and distance values.

Print values to the serial monitor.

(Optional) Send values over Bluetooth for mobile monitoring.

Highlight snippet:

// PET FIT COLLAR - Health Monitoring System for Cows
// Sensors: 2x Ultrasonic Sensors (HC-SR04), 1x Temperature Sensor (DS18B20), 1x Heart Rate Sensor (Analog Pulse Sensor)

#include <OneWire.h>
#include <DallasTemperature.h>

// Pin Definitions
const int trigPin1 = 2;
const int echoPin1 = 3;
const int trigPin2 = 4;
const int echoPin2 = 5;
const int tempSensorPin = 6; // DS18B20 data pin
const int heartRatePin = A0; // Analog input for pulse sensor

// Initialize temperature sensor
OneWire oneWire(tempSensorPin);
DallasTemperature sensors(&oneWire);

void setup() {
 Serial.begin(9600);

 // Setup Ultrasonic Sensor Pins
 pinMode(trigPin1, OUTPUT);
 pinMode(echoPin1, INPUT);
 pinMode(trigPin2, OUTPUT);
 pinMode(echoPin2, INPUT);

 // Start temperature sensor
 sensors.begin();

 Serial.println("Pet Fit Collar Initialized.");
}

void loop() {
 // Read Sensors
 float distance1 = measureDistance(trigPin1, echoPin1);
 float distance2 = measureDistance(trigPin2, echoPin2);
 float temperature = readTemperature();
 int heartRate = readHeartRate();

 // Print Data
 Serial.println("------ PET FIT DATA ------");
 Serial.print("Temperature: ");
 Serial.print(temperature);
 Serial.println(" °C");

 Serial.print("Heart Rate (approx.): ");
 Serial.print(heartRate);
 Serial.println(" BPM");

 Serial.print("Movement Distance Sensor 1: ");
 Serial.print(distance1);
 Serial.println(" cm");

 Serial.print("Movement Distance Sensor 2: ");
 Serial.print(distance2);
 Serial.println(" cm");
 Serial.println("--------------------------\n");

 // Delay before next reading
 delay(2000); // 2 seconds
}

// Function to measure distance using an ultrasonic sensor
float measureDistance(int trigPin, int echoPin) {
 digitalWrite(trigPin, LOW);
 delayMicroseconds(5);
 digitalWrite(trigPin, HIGH);
 delayMicroseconds(10);
 digitalWrite(trigPin, LOW);

 long duration = pulseIn(echoPin, HIGH);
 float distance = duration * 0.034 / 2; // Speed of sound formula
 return distance;
}

// Function to read temperature
float readTemperature() {
 sensors.requestTemperatures();
 float tempC = sensors.getTempCByIndex(0);
 return tempC;
}

// Function to simulate heart rate reading
int readHeartRate() {
 int sensorValue = analogRead(heartRatePin);
 
 // Very basic conversion from sensor value to approximate BPM
 int bpm = map(sensorValue, 0, 1023, 60, 120);
 return bpm;
}

Printing Instructions

(If 3D-printed casing/mount for sensors is used)

Filament Material: PLA

Layer Height: 0.2 mm

Infill: 20%

Supports: Yes (for sensor mountings)

Assembly Instructions

Attach sensors firmly onto the collar.

Connect sensors to Arduino as per wiring diagram.

Place Arduino and battery securely in a waterproof pouch on the collar.

Upload code to Arduino via Arduino IDE.

Power the setup with the battery and start monitoring.

Demo and Usage Instructions

Power on the Pet Fit Collar.

Connect via serial monitor (or Bluetooth app) to view live health data.

Monitor temperature, heart rate, and movement patterns.

Alerts or data logs can be added later for enhanced functionality.

Additional Notes or Tips

Ensure the collar is comfortable and doesn’t irritate the cow’s neck.

Waterproof the electronics properly before use in real environments.

Future enhancement: add GPS tracking, solar charging, or IoT data upload!

 

Tags



Model origin

The author marked this model as their own original creation.

License


Highlighted models from creator

View more