Skip to main content
added 1606 characters in body
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
added 1606 characters in body
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
deleted 5 characters in body
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24

Question

Does anyone have any ideas on how I can use RPI with ADC to measure a tank level sensor which has a range of only 20 to 200 ohm?

 

Short Answer

Some months ago I played with a couple of moisture sensor / level detectors. Below is an example.

water level sensor Water Level Detection Discussion - Rpi StackExchnge

However the above sensor does not answer the OP's question, which asks to detect resistance using ADC, not analog or digital voltage levels. So I think I need to start from a variable resistance and check out how to use ADC to measure the resistance, within a range of 20 to 200 ohms.

I very surprisingly found that all the five samples from different manufacturers have the same resistance of 0.5 ohms for each of the two resistive "legs".

level sensor resistance

Anyway, I think I can try to use an ADC that can measure my sensor's 0.5 ohm range, and also the OP's 20~200 ohm range. I am thinking of starting with the cheapest, and lowest resolution ADC/DAC PCF8591. If its low resolution is not enough for 0.5 ohm range, then perhaps I will try others, such as MCP3x02/04/08. The good thing about PCF8591 is that there is cheapy module available, and programming easy, so is newbie friendly. On the other hand, MCP3x02/04/08 is big family of ADCs, from 12 bits to 18 bits (MCP3404)

PCF8592

mcp3x020408

level_sensor 1

level sensor 2

 

Long Answer

/ long answer to prune later, ...

Introduction and Summary

/ to continue, ...

 

Question Analysis

  1. I think the preliminary functional spec of the project is very good, because it is concise and precise.

  2. There are many reasons that the question is so short, but I will not list my wild guesses for now. Perhaps later.

  3. The spec includes the following key words/phrases:

"Rpi, ADC, tank level sensor, 20Ω ~ 200Ω.

  1. The word "tank", is crucial. She says "tank", not "container", perhaps she wants to indicate that the "tank" is deep , say, not a 5 inches deep fish "bowl" or "pond".

  2. The phrase "20Ω ~ 200Ω" is also crucial. There are basically two types of liquid level sensors: active and inactive. Active sensors are usually 5V or 12V powered, and the sensor output is a DC voltage level. Inactive sensors don't have any power. Usually the sensor is just a reed switch and floating magnet, or a long "resistor" whose resistance varies as the water level. Usually the resistor is far, perhaps 10ft, and up to 1,000 ft from the measuring instrument.

References

Water Level Detection Discussion - Rpi StackExchnge

AliExpress Level Sensors

AliEXpress Non-contact Level Sensors

AliExpress10A/250V Water Level Controller Module

AliExpress Water level sensor Water drops tester

AliExpress 5~24V 5mA Non-contact Induction Water Level Sensor

Gig (ee, rpi, arduino) projects

ph Sensor using sensor and ADCs PCF8591 and MCP3208

 

/ to continue, ...End of Answer

Question

Does anyone have any ideas on how I can use RPI with ADC to measure a tank level sensor which has a range of only 20 to 200 ohm?

Short Answer

Some months ago I played with a couple of moisture sensor / level detectors. Below is an example.

water level sensor Water Level Detection Discussion - Rpi StackExchnge

However the above sensor does not answer the OP's question, which asks to detect resistance using ADC, not analog or digital voltage levels. So I think I need to start from a variable resistance and check out how to use ADC to measure the resistance, within a range of 20 to 200 ohms.

I very surprisingly found that all the five samples from different manufacturers have the same resistance of 0.5 ohms for each of the two resistive "legs".

level sensor resistance

Anyway, I think I can try to use an ADC that can measure my sensor's 0.5 ohm range, and also the OP's 20~200 ohm range. I am thinking of starting with the cheapest, and lowest resolution ADC/DAC PCF8591. If its low resolution is not enough for 0.5 ohm range, then perhaps I will try others, such as MCP3x02/04/08. The good thing about PCF8591 is that there is cheapy module available, and programming easy, so is newbie friendly. On the other hand, MCP3x02/04/08 is big family of ADCs, from 12 bits to 18 bits (MCP3404)

PCF8592

mcp3x020408

level_sensor 1

level sensor 2

Long Answer

/ long answer to prune later, ...

Introduction and Summary

/ to continue, ...

Question Analysis

  1. I think the preliminary functional spec of the project is very good, because it is concise and precise.

  2. There are many reasons that the question is so short, but I will not list my wild guesses for now. Perhaps later.

  3. The spec includes the following key words/phrases:

"Rpi, ADC, tank level sensor, 20Ω ~ 200Ω.

  1. The word "tank", is crucial. She says "tank", not "container", perhaps she wants to indicate that the "tank" is deep , say, not a 5 inches deep fish "bowl" or "pond".

  2. The phrase "20Ω ~ 200Ω" is also crucial. There are basically two types of liquid level sensors: active and inactive. Active sensors are usually 5V or 12V powered, and the sensor output is a DC voltage level. Inactive sensors don't have any power. Usually the sensor is just a reed switch and floating magnet, or a long "resistor" whose resistance varies as the water level. Usually the resistor is far, perhaps 10ft, and up to 1,000 ft from the measuring instrument.

References

Water Level Detection Discussion - Rpi StackExchnge

AliExpress Level Sensors

AliEXpress Non-contact Level Sensors

AliExpress10A/250V Water Level Controller Module

AliExpress Water level sensor Water drops tester

AliExpress 5~24V 5mA Non-contact Induction Water Level Sensor

Gig (ee, rpi, arduino) projects

ph Sensor using sensor and ADCs PCF8591 and MCP3208

/ to continue, ...

Question

Does anyone have any ideas on how I can use RPI with ADC to measure a tank level sensor which has a range of only 20 to 200 ohm?

 

Short Answer

Some months ago I played with a couple of moisture sensor / level detectors. Below is an example.

water level sensor Water Level Detection Discussion - Rpi StackExchnge

However the above sensor does not answer the OP's question, which asks to detect resistance using ADC, not analog or digital voltage levels. So I think I need to start from a variable resistance and check out how to use ADC to measure the resistance, within a range of 20 to 200 ohms.

I very surprisingly found that all the five samples from different manufacturers have the same resistance of 0.5 ohms for each of the two resistive "legs".

level sensor resistance

Anyway, I think I can try to use an ADC that can measure my sensor's 0.5 ohm range, and also the OP's 20~200 ohm range. I am thinking of starting with the cheapest, and lowest resolution ADC/DAC PCF8591. If its low resolution is not enough for 0.5 ohm range, then perhaps I will try others, such as MCP3x02/04/08. The good thing about PCF8591 is that there is cheapy module available, and programming easy, so is newbie friendly. On the other hand, MCP3x02/04/08 is big family of ADCs, from 12 bits to 18 bits (MCP3404)

PCF8592

mcp3x020408

level_sensor 1

level sensor 2

 

Long Answer

/ long answer to prune later, ...

Introduction and Summary

 

Question Analysis

  1. I think the preliminary functional spec of the project is very good, because it is concise and precise.

  2. There are many reasons that the question is so short, but I will not list my wild guesses for now. Perhaps later.

  3. The spec includes the following key words/phrases:

"Rpi, ADC, tank level sensor, 20Ω ~ 200Ω.

  1. The word "tank", is crucial. She says "tank", not "container", perhaps she wants to indicate that the "tank" is deep , say, not a 5 inches deep fish "bowl" or "pond".

  2. The phrase "20Ω ~ 200Ω" is also crucial. There are basically two types of liquid level sensors: active and inactive. Active sensors are usually 5V or 12V powered, and the sensor output is a DC voltage level. Inactive sensors don't have any power. Usually the sensor is just a reed switch and floating magnet, or a long "resistor" whose resistance varies as the water level. Usually the resistor is far, perhaps 10ft, and up to 1,000 ft from the measuring instrument.

References

Water Level Detection Discussion - Rpi StackExchnge

AliExpress Level Sensors

AliEXpress Non-contact Level Sensors

AliExpress10A/250V Water Level Controller Module

AliExpress Water level sensor Water drops tester

AliExpress 5~24V 5mA Non-contact Induction Water Level Sensor

Gig (ee, rpi, arduino) projects

ph Sensor using sensor and ADCs PCF8591 and MCP3208

 

End of Answer

added level sensor diagram
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added mcp3208 references
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added level sensor resistance picture
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
minor editing
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added level sensor reference links
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added 364 characters in body
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added water level idscurrion rp stkex; added 135 characters in body
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
added level sensor references
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
add rpi gig reference
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
expanded question analysis
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading
Source Link
tlfong01
  • 4.8k
  • 3
  • 11
  • 24
Loading