Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.33 KB

README.md

File metadata and controls

24 lines (15 loc) · 1.33 KB

internet-of-shit

Arduino project to measure, track and calculate poop volume in a tank.

It may not be the most important issue to solve but if you forget to empty you tank of poop you might end up in deep shit (literally speaking). With an ultrasonic sensor and an Arduino kit I tried to solve this in techie way. An easy solution would be to lift the lid once in a while but then you can't get the data, statistics, tracking and all other things that comes with an automated solution.

This is the first version but the plan is to connect the project to a Domoticz home automation system and get notifications, graphs and other functionality.

I use the library NewPing for controlling the sensor: https://bitbucket.org/teckel12/arduino-new-ping/wiki/Home

OUTPUT

The level is measured once every second at the moment. Definately overkill for all use cases. The output is sent to the serial monitor at 115200 baud. Will be changed in the future but good for debugging.

THE TANK

We have a cylindrical tank buried in the ground beside the how. The measures in the code are related like this:

alt tag

THE MATH

The formula for "volume in a horizontal cylinder form" I use is explained here: http://www.mathopenref.com/cylindervolpartial.html. The size of the tank is important to know and the placement of the sensor.