Hello,
I am working on a project that is supposed to measure the water depth using a water level sensor connected to an analog input pin of an IO controller (10bit ADC, Analog Input resolution – 10mV).
Following are the set of parameters available to me
uint8_t max_vdd = 5; //!< supply to the water level (in V)
uint16_t min_depth_adc = 10; //!< 10-bit adc count representing 0m
uint16_t max_depth_adc = 1000; //!< 10-bit adc count representing max depth
uint16_t min_depth_mv = 200; //!< voltage measured at 0m depth, stored as millivolt
uint16_t max_depth_mv = 4800; //!< voltage measured at max depth (lowest) as millivolt
uint16_t max_depth = 10; //!< in meters, min_depth = 0m
int16_t offset_mv = -30; //!< signed offset adjustment in mV, default = 0
What would be the formula for calculating the water depth in meters?
I am working on a project that is supposed to measure the water depth using a water level sensor connected to an analog input pin of an IO controller (10bit ADC, Analog Input resolution – 10mV).
Following are the set of parameters available to me
uint8_t max_vdd = 5; //!< supply to the water level (in V)
uint16_t min_depth_adc = 10; //!< 10-bit adc count representing 0m
uint16_t max_depth_adc = 1000; //!< 10-bit adc count representing max depth
uint16_t min_depth_mv = 200; //!< voltage measured at 0m depth, stored as millivolt
uint16_t max_depth_mv = 4800; //!< voltage measured at max depth (lowest) as millivolt
uint16_t max_depth = 10; //!< in meters, min_depth = 0m
int16_t offset_mv = -30; //!< signed offset adjustment in mV, default = 0
What would be the formula for calculating the water depth in meters?