Cow Sensor

by BVLD4 in Outside > Backyard

225 Views, 0 Favorites, 0 Comments

Cow Sensor

287635242_554961549371348_1770031352304555085_n.jpg
288596065_595847695135460_4119617429789112617_n.jpg

Introduction


For my first project as a student Mutimedia and creative technologies ay Howest Kortrijk I had to create an IoT project of my own. I chose to create a smart cow sensor that can detect if a cow is sick or not. With the help of a GPS-module, temperature sensor, hart rate sensor, and a ledstrip I could show if a cow is sick or not.

Supplies

List of materials




  • Raspberry Pi
  • 2x ESP32
  • MAX30101 hearbeat sensor
  • Dellas 18b20
  • gps6mv2 (GPS module)
  • 1k resistor
  • button
  • Male to male jumper wires
  • Female to male jumper wires
  • Ethernet Cable
  • Level shifter
  • External powser supply
  • LCD screen


Total price: 151 euro

BOM:

Schematics

Explanation


The project exists out of 3 separate parts.

  1. the temperature module
  2. the hart rate module
  3. the raspbarry pi module with the GPS + ledstrip + LCD

The parts will communicate with eachother via bluetooth.


Normalized Database

screenshot_tables.png

The tables

There are 4 tables.


  1. Devices (sensors)
  2. Historiek (history)
  3. Melkkoeien (cows)
  4. Veehouder (farmer)


Devices table

The device table stores data such as the name of the sensor, the price, type, brand


History table

The history table stores al the data that is captured by the different sensors.


Melkkoeien

The melkkoeien table stores the name of the cow, the food and birthdate


Veehouder

The veehouder table stores the name, birthdate, place where the farmer lives etc..

The Housing

WhatsApp Image 2022-06-13 at 11.12.12 AM.jpeg
WhatsApp Image 2022-06-13 at 4.40.50 PM.jpeg

For the housing I chose to laser cut it.

The mdf plate has a speciale technic for connecting the plates.

All the plates will fall together like a puzzle.


You can find the download files in the description (behuizing_2.ai).


The Code

pexels-pixabay-270348.jpg

The backend code

For this project it was realy important to use real time data because the we use a hart rate sensor and a temperature sensor. This is the reason why I used socket.io a lot! All the data realtime.

You can find the backend code in my github link.


The frontend code

The frontend code is designed mobile first. I use media queries for everyting else.


LINK to github repo: https://github.com/howest-mct/2021-2022-projectone-BVLD/