I will start saying that I am quite novice on electronics and neither I have any education on it.
I have designed an small electronic card to control the water level on a water tank and also to read the voltage of the 2,12v independent batteries.
Here an easy sketch of the project.
https://photos.app.goo.gl/axnYWCJI4cmhsKrq1
Water level:
The idea is to send 5v through a DO from the arduino direct to the end of the deposit, setting the DO to 5v out, read the level sensors and setting the DO back to off after the reading. I am repeating this cycle any time I like.
Everything is “working well” as at any sensor reached by the the water, I see a considerable amount of voltage and the sensors where there is no water touching them, the values are far lower.
BUT………. I SEE "funny" things I would like to understand. It makes me thinking that I am doing something wrong.
When the connector X1 is NOT connected everything is as it should. The readings values on the analog imput (A0) are:
- 0 to 2 on sensors NOT reached by the water (obviouslly no sensor is reached by the water as the connector is disconected)
As soon as I connect the connector X1, the readings are not stable and are about:
- 0 to 140 on sensors NOT reached by the water
- On sensors reached by the water, the values are far higher so I can still distinguish if the sensors are touched by the water.
The funniest thing is that with the connector X1 connected, if I switch any of the lights ON, everything gets nice and stable, getting the same values 0 to 2 on sensors NOT reached by the water and more higher values (and stable) with sensors touching the water.
Any ideas about why this is happening???????
Voltage readings:
Not shown on the sketch but they are 2 voltage divider (30k/7.5k) connected to the MUX.
With the connector X1 NOT connected both voltages values are OK.
With the connector X1 connected both voltages values drops between 0.5 to 1.5v and I get no stable values……
With the connector X1 connected and any light OK, everything goes well (right values read and stable) VERY "FUNNY"!!!???
I am very lost. Any help will be very welcome.
Mods Note:
Please upload the circuit to our forum, it may lost the file in the future and make the thread become useless.
I have designed an small electronic card to control the water level on a water tank and also to read the voltage of the 2,12v independent batteries.
Here an easy sketch of the project.

https://photos.app.goo.gl/axnYWCJI4cmhsKrq1
Water level:
The idea is to send 5v through a DO from the arduino direct to the end of the deposit, setting the DO to 5v out, read the level sensors and setting the DO back to off after the reading. I am repeating this cycle any time I like.
Everything is “working well” as at any sensor reached by the the water, I see a considerable amount of voltage and the sensors where there is no water touching them, the values are far lower.
BUT………. I SEE "funny" things I would like to understand. It makes me thinking that I am doing something wrong.
When the connector X1 is NOT connected everything is as it should. The readings values on the analog imput (A0) are:
- 0 to 2 on sensors NOT reached by the water (obviouslly no sensor is reached by the water as the connector is disconected)
As soon as I connect the connector X1, the readings are not stable and are about:
- 0 to 140 on sensors NOT reached by the water
- On sensors reached by the water, the values are far higher so I can still distinguish if the sensors are touched by the water.
The funniest thing is that with the connector X1 connected, if I switch any of the lights ON, everything gets nice and stable, getting the same values 0 to 2 on sensors NOT reached by the water and more higher values (and stable) with sensors touching the water.
Any ideas about why this is happening???????
Voltage readings:
Not shown on the sketch but they are 2 voltage divider (30k/7.5k) connected to the MUX.
With the connector X1 NOT connected both voltages values are OK.
With the connector X1 connected both voltages values drops between 0.5 to 1.5v and I get no stable values……
With the connector X1 connected and any light OK, everything goes well (right values read and stable) VERY "FUNNY"!!!???
I am very lost. Any help will be very welcome.
Mods Note:
Please upload the circuit to our forum, it may lost the file in the future and make the thread become useless.
Last edited by a moderator: