A counter to store the number of sheep entering and leaving a fence.
Used arduino uno R3 and two ultrasonic sensors for the circuit.
One ultrasonic sensor is used to count the sheeps entering the fence and another sensor is used to count the sheeps leaving the fence.
A variable count can be used to add sheeps if they enter the fence and subtract if they leave the fence.
Read the ultrasonic sensors using the respective trigger pins and echo pins attached to the arduino.
The ultrasonic sensors wil count the sheeps if the distance is less than 100 cm.
Finally print the value in the serial monitor.
-
Notifications
You must be signed in to change notification settings - Fork 0
ShanuKhosla/SheepCounter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published