Skip to content

Water Level Measuring

Hardware

ADS1115 at adress 0x48 on i2c

Votronic sensors (capacitve)

directly connected to ads1115 measured 0-2,5v remove follwing jumpers:

  • jp1 - adc2
  • jp2 - adc1
  • jp3 - adc4
  • jp4 - adc3

Resistance sensors

3.3v -> Voltage divider with fixed 1k and the sensor value.

set follwing jumpers:

  • jp1 - adc2
  • jp2 - adc1
  • jp3 - adc4
  • jp4 - adc3

Software

An implemented python3 script and bottle webserver is served to get the data into Node-Red. This script also reads the values from the Pekaway shunt. The script is located at ~/pekaway/ads_py/web1.py (interpreter python3)

get requests on localhost:8080
-> gives level1 to level4 ADC values

In Node-Red the ADC values are scaled from 0-100. To configure the scaling we implemted two ways:

Method 1 -> set ohms
You know the correct ohm values of your sensor. Set it up to each channel. We then calculate then the approximate values (Only works for resistance sensors).

Method 2 -> full empty
Works on capacative and resistance sensors

Example:
1. Choose the value you want to set (e.g. level1full), fill up your tank. Press the calibrate button "set full"
2. Choose the value you want to set (e.g. level1empty), empty your tank. Press the calibrate button "set empty"

Back to top