# Using a Pi to determine tank levels

**URL:** <https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186>\
**Category:** Support\
**Created:** [7 November 2024 08:03 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186 "2024-11-07T08:03:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim264341](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@Tim264341](https://forum.core-electronics.com.au/u/Tim264341)\
**Post date:** [7 November 2024 08:03 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/1 "2024-11-07T08:03:40Z")

</div>

Hi guys.  
First post here!

I’m looking to use my pi to tell how much water is in the two tanks (pictured) for my NFT set up, and have the data sent to my phone.  
[![](https://i.ibb.co/df4JfnK/20241107-185600.jpg)](https://ibb.co/QJvjJsm)

Is this the right place to get guidance and advice on such?  
No idea where to start really…

---

<div class="post-metadata">

**Author:** ![lia262073](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lia262073](https://forum.core-electronics.com.au/u/lia262073)\
**Post date:** [7 November 2024 13:43 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/2 "2024-11-07T13:43:15Z")

</div>

You can get some idea from here: [https://www.youtube.com/watch?v=gOwGwB9fZBo](https://www.youtube.com/watch?v=gOwGwB9fZBo)

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/aaron/32/9861_2.png) [@Aaron](https://forum.core-electronics.com.au/u/Aaron)\
**Post date:** [8 November 2024 03:25 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/3 "2024-11-08T03:25:18Z")

</div>

Hi @Tim264341, Welcome to the Forums!!!

Definitely the right place to ask for advice 🙂

A good place to start might be to let us know if you have any experience with coding and electronics to help find recourses that would work best.

We would have all the parts to get a project like this up and running.  
In terms of [Level sensors](https://core-electronics.com.au/sensors/liquid-flow.html), there are a few different types from [tape](https://core-electronics.com.au/grove-water-level-sensor-10cm-for-arduino.html) to [Pressure](https://core-electronics.com.au/gravity-analog-water-pressure-sensor.html) and [ultrasonic](https://core-electronics.com.au/me007ys-waterproof-ultrasonic-sensor.html) that all are able to measure water levels.

It would then be looking at a software solution fo getting the data to your phone.

---

<div class="post-metadata">

**Author:** ![Tim264341](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@Tim264341](https://forum.core-electronics.com.au/u/Tim264341)\
**Post date:** [10 November 2024 09:39 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/4 "2024-11-10T09:39:56Z")

</div>

Hi Aaron.  
Experienced with kits and soldering - less so much with pi’s and no coding experience… yet…!

---

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/zach/32/10899_2.png) [@Zach](https://forum.core-electronics.com.au/u/Zach)\
**Post date:** [12 November 2024 00:45 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/5 "2024-11-12T00:45:22Z")

</div>

Hey @Tim264341,

Awesome to hear how enthusiastic you are!

Due to your lack of experience, I think it’s best to start with a basic breakdown of what the setup will look like.

My favourite way to think of a project like this is to break it into 3 categories

1. Controller:  
Your Raspberry Pi. This is effectively the brain of the project. You already own the Pi, so there isn’t really a decision to be made here.

2. Inputs:  
Your level sensor. As Aaron stated, there are many options each with pros and cons, which we can address later.

3. Outputs:  
You mentioned you want the data sent to your phone. There are many methods to do this, it can also depend on the capabilities of your Pi, and once again they all have different pros and cons.

.  
To start off, when you say “use my Pi”, what specific device are you referring to? There are a variety of options and they each have different out-of-the-box capabilities, and as such will affect the design process.

---

<div class="post-metadata">

**Author:** ![Tim264341](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@Tim264341](https://forum.core-electronics.com.au/u/Tim264341)\
**Post date:** [12 November 2024 22:40 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/6 "2024-11-12T22:40:46Z")

</div>

Hi Zach.  
So I have a RPI 5.  
Honestly having the days go to my phone would be optimal, however if it’s simpler… For a first project, I guess I’m happy if it were to display different coloured LEDs for the different levels in the tank…

Tim.

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [12 November 2024 22:50 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/7 "2024-11-12T22:50:42Z")

</div>

If you only want to know about a small number of different levels, then you could take advantage of the fact that the walls are glass. A small coloured float in an open tube attached to the inside of the glass could be used with reflective light sensors on the outside of the tank. The reflective marking on the float is designed so that it just spans two sensors - that gives you 2N-1 levels.  
The advantage is that it becomes very easy to keep the electronics away from any water.

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [13 November 2024 05:46 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/8 "2024-11-13T05:46:05Z")

</div>

Hi All  
Or some of these or similar

# [Non-contact Capacitive Liquid Level Sensor](https://core-electronics.com.au/non-contact-capacitive-liquid-level-sensor.html)

SKU SEN0368  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Jack](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jack/32/9287_2.png) [@Jack](https://forum.core-electronics.com.au/u/Jack)\
**Post date:** [13 November 2024 23:00 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/9 "2024-11-13T23:00:16Z")

</div>

This is a brilliant suggestion. A pair of these could be used to set an upper and lower limit.

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [13 November 2024 23:56 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/10 "2024-11-13T23:56:13Z")

</div>

Hi Tim  
Or maybe one of these  
[**“Grove - Water Level Sensor (10cm) for Arduino”**](https://core-electronics.com.au/grove-water-level-sensor-10cm-for-arduino.html)  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Tim264341](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@Tim264341](https://forum.core-electronics.com.au/u/Tim264341)\
**Post date:** [15 November 2024 06:30 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/11 "2024-11-15T06:30:35Z")

</div>

That non contact option looks like it could be a winner.  
Obviously, with 2 tanks - I would need 4 sensors for upper and lower limits…  
…looking at the wiring diagram, it looks like the red, blue, black and green wires all go to specific points on the pi.  
Will there be an issue connecting up 4 of them?

---

<div class="post-metadata">

**Author:** ![Jack](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jack/32/9287_2.png) [@Jack](https://forum.core-electronics.com.au/u/Jack)\
**Post date:** [17 November 2024 23:28 UTC](https://forum.core-electronics.com.au/t/using-a-pi-to-determine-tank-levels/21186/12 "2024-11-17T23:28:22Z")

</div>

Hi Tim,

There isn’t an issue I can see. You have enough GPIO pins available and the Pi should happily run all these of it’s 5V pins. You will need a way to split power to them as there are only 2 5V pins available.

Otherwise this should work.
