Difference between revisions of "Tanklevel"

From Ethersex_Wiki
Jump to: navigation, search
Line 36: Line 36:
 
  +-------------+
 
  +-------------+
 
       Tank
 
       Tank
 +
 +
See the following example:
 +
 +
[[File:Tanklevel_pump_assy.jpg|Pump assembly|177px]]
 +
[[File:Tanklevel_tank_assy.jpg|Tank assembly|100px]]
  
 
== Electrical setup ==
 
== Electrical setup ==
Line 43: Line 48:
 
with the selected ADC channel (have a look at the datasheet for power supply
 
with the selected ADC channel (have a look at the datasheet for power supply
 
decoupling and output filtering). Select a optimal Vref for the ADC if
 
decoupling and output filtering). Select a optimal Vref for the ADC if
possible.
+
possible. Schematic could look like this:
 +
 
 +
[[File:Tanklevel_schem.png|Electrical setup]]

Revision as of 15:32, 2 April 2012

Tank level meter
Status
Stable
menuconfig Applications->Tank level meter
Pinning yes
Ecmd yes
Depends on ECMD, Clock, ADC, Cron (optional)
Code https://github.com/ethersex/ethersex/tree/master/services/tanklevel

Tanklevel provides an application for measurement of tank levels by hydrostatic pressure.

Internals

You need an aquarium air pump, some kind of pipe/tube, a Freescale MPX5050DP pressure sensor and an relay for the pump. Parameters are configurable by ECMD and stored in EEPROM.

Mechanical setup

                   +-------+
                   |Sensor |
                   +---+---+
                       | +--------+
       +---------------+-+  Pump  |
       |                 +--------+
+------+------+
|      |      |
|      |      |
|------|------|
|      |      |
|      |      |
|      |      |
+-------------+
     Tank

See the following example:

Pump assembly Tank assembly

Electrical setup

Electrical Setup is quite simple. Connect the TANK_PUMP port with an relay (usually via an Transistor as current amp) and the output of the Sensor with the selected ADC channel (have a look at the datasheet for power supply decoupling and output filtering). Select a optimal Vref for the ADC if possible. Schematic could look like this:

Electrical setup