I've done a oil level monitoring system for my brother with Arduino and Domoticz. The Domoticz is running in a Raspberry Pi 2 at my brothers house
and takes care of normal house monitoring stuff including temperarature measurements and oil tank fill rate monitoring. The Arduino based oil level monitoring system takes care of fill rate of the oil tank.
The oil tank monitoring system consists following components (Raspberry Pi 2 is excluded from the list)
- Arduino Uno
- WiFi shield
- DS18B20 digital temperature sensor
- Ultrasonic sensor MB1010 from MaxBotix
Ultrasonic sensor measures Time of Flight (ToF) data which can be converted to distance between the ultrasonic sensor and level of oil. Temperature data is used in calculations
about actual distance from the sensor to the level of oil because speed of sound changes in a function of temperature. Thermal expansion of the oil is not taken into account.
All the data to the Domoticz is transmitted via WiFi in LAN using the MQTT protocol. In practice all the "intelligence" is in the Domoticz and therefore for example decision about is oil tank empty
enough for notification to end user is done by the Domoticz.
The DS18B20 is connected to the Arduino system via two wire cable and RCA connector. The ultrasonic sensor is placed in a small enclosure which is fixed on top of manhole's hatch.
The connection between the ultrasonic sensor and the Arduino is taken care with three wire cable and 3.5mm AV connector.
In the following pictures one can see key components of the monitoring system.
More information including codes and schematics about the Arduino based oil level monitoring system can be found from the GitHub.
https://github.com/MikaPetteriLundgren/ ... vel-Logger