Livello Serbatoio v0.13
This project realizes a simple device to monitor the water level in a tank.
Loading...
Searching...
No Matches
Tank and volume

Variables

const uint16_t TANK_NUMBER = 2U
 The number of tanks.
 
const float64_t TANK_RADIUS_CM = 65.0 / 2.0
 The radius of the tank(s) in cm.
 
const float64_t TANK_HEIGHT_CM = 150.0
 The height of the tank(s) in cm.
 
const float64_t SENSOR_DISTANCE_CM = 19.0
 The distance between sensor and the highest water level in cm.
 
const float64_t WATER_MAX_HEIGHT_CM = TANK_HEIGHT_CM - SENSOR_DISTANCE_CM
 The maximum water height in cm.
 
const float64_t LOW_LEVEL_THRESHOLD = 40.0
 The percentage threshold used to indicate the low level of water.
 
const float64_t EMPTY_LEVEL_THRESHOLD = 20.0
 The percentage threshold used to indicate the tank(s) emptiness.
 

Detailed Description

Variable Documentation

◆ EMPTY_LEVEL_THRESHOLD

const float64_t EMPTY_LEVEL_THRESHOLD = 20.0

The percentage threshold used to indicate the tank(s) emptiness.

◆ LOW_LEVEL_THRESHOLD

const float64_t LOW_LEVEL_THRESHOLD = 40.0

The percentage threshold used to indicate the low level of water.

◆ SENSOR_DISTANCE_CM

const float64_t SENSOR_DISTANCE_CM = 19.0

The distance between sensor and the highest water level in cm.

◆ TANK_HEIGHT_CM

const float64_t TANK_HEIGHT_CM = 150.0

The height of the tank(s) in cm.

◆ TANK_NUMBER

const uint16_t TANK_NUMBER = 2U

The number of tanks.

◆ TANK_RADIUS_CM

const float64_t TANK_RADIUS_CM = 65.0 / 2.0

The radius of the tank(s) in cm.

◆ WATER_MAX_HEIGHT_CM

const float64_t WATER_MAX_HEIGHT_CM = TANK_HEIGHT_CM - SENSOR_DISTANCE_CM

The maximum water height in cm.