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

Variables

const float64_t SENSOR_CALIBRATION = 1.0
 Sensor distance offset used for calibration in centimeters.
 
const float64_t SENSOR_MIN_RANGE = 2.0
 Sensor minimum readable distance in centimeters.
 
const float64_t SENSOR_MAX_RANGE = 450.0
 Sensor maximum readable distance in centimeters.
 
const float64_t SENSOR_LSB = 58.0
 Sensor LSB to achieve distance from ECHO pulse time in usec/cm.
 
const int32_t SENSOR_ACTIVATION_TH = 15
 Duration of TRIG signal to perform a measurement.
 
const uint32_t SENSOR_RESPONSE_TIMEOUT_US = 500000UL
 Timeout in microseconds used to determine when the sensor reading is failed.
 
const uint32_t SENSOR_NO_OBSTACLE_US = 38000UL
 ECHO pulse time in microseconds which indicates the absence of sensor readable obstacles.
 

Detailed Description

Constants related to the ultrasonic sensors.

Variable Documentation

◆ SENSOR_ACTIVATION_TH

const int32_t SENSOR_ACTIVATION_TH = 15

Duration of TRIG signal to perform a measurement.

◆ SENSOR_CALIBRATION

const float64_t SENSOR_CALIBRATION = 1.0

Sensor distance offset used for calibration in centimeters.

◆ SENSOR_LSB

const float64_t SENSOR_LSB = 58.0

Sensor LSB to achieve distance from ECHO pulse time in usec/cm.

◆ SENSOR_MAX_RANGE

const float64_t SENSOR_MAX_RANGE = 450.0

Sensor maximum readable distance in centimeters.

◆ SENSOR_MIN_RANGE

const float64_t SENSOR_MIN_RANGE = 2.0

Sensor minimum readable distance in centimeters.

◆ SENSOR_NO_OBSTACLE_US

const uint32_t SENSOR_NO_OBSTACLE_US = 38000UL

ECHO pulse time in microseconds which indicates the absence of sensor readable obstacles.

◆ SENSOR_RESPONSE_TIMEOUT_US

const uint32_t SENSOR_RESPONSE_TIMEOUT_US = 500000UL

Timeout in microseconds used to determine when the sensor reading is failed.