Guinea pig surveillance system
To detect the presence of a pig near the hayrack I use an ultrasound distance sensor HC-SR04. The gridth of the cage near the hayrack is 33cm. Getting a value of less than that means there's a pig in the way and most likely is grazing.
The data from the sensor is transmitted through the ESP8266 WiFi module to ThingsSpeak API. And the API is connected to the simple Angular webapp interpretting the data.
- Arduino Uno
- ESP8266 WiFi module
- HC-SR04 ltrasound distance sensor
- 220Ω resistor
- Green LED
The complete step-by-step tutorial for the project is posted on PracujLabs