Water level sensor
-
- LED Enthusiast
- Reactions:
- Posts: 40
- Joined: Wed Sep 16, 2020 4:12 am
I'm watching as well. I picked up an "eye" style water senor and it works great. Its basically digital sensor with a board that goes high when it sees water. The great thing is it can see pointed down into the water, pointed up at the water level or horizontal. I'm just worried about salt build up so I'll be using it for the fresh water RO tank when ever I get around to it.
Curious to see your developments.
Curious to see your developments.
I'm using a 1Mohm resistor between 3.3V and A0, the floater between A0 and GND. This reads a value between 4 (tank empty) and 270 (tank full).
Code: Select all
void setup() {
Serial.begin(115200);
Serial.println("Hello World");
}
int sensorValue;
void loop() {
sensorValue = analogRead(A0);
//client.publish("water/level/float0", sensorValue);
Serial.print("Value: "); Serial.println(sensorValue);
delay(1000);
}
-
- LED-Curious
- Reactions:
- Posts: 20
- Joined: Mon Jan 18, 2021 11:29 pm
Hey Shimbob. Would u mind writing out a quick schematic. I think I know what you mean but Id like to be sureShimbob wrote: ↑Sun Jan 24, 2021 4:19 amI'm using a 1Mohm resistor between 3.3V and A0, the floater between A0 and GND. This reads a value between 4 (tank empty) and 270 (tank full).
Code: Select all
void setup() { Serial.begin(115200); Serial.println("Hello World"); } int sensorValue; void loop() { sensorValue = analogRead(A0); //client.publish("water/level/float0", sensorValue); Serial.print("Value: "); Serial.println(sensorValue); delay(1000); }
-
- LED-Curious
- Reactions:
- Posts: 20
- Joined: Mon Jan 18, 2021 11:29 pm
So it turns out I didnt have my ADE buad rate set to the right setting in my output window. I got her working. I think you hit it on pretty close with the 1M resistor. I bought a 1.5M resistor at Fry's today, cause all they had, and it is too big. I got it to sort of work with a 10K resistor I had laying around but the full rate is at 1024 and it goes down to 700 something then down to 72 empty.
Documentation on the sender talks about the Ohms range is 0-190 output. So since your readings are 4-270 I bet thats pretty much the right size. I dont even know if they make a 1.1M resistor or something like that.
Thanks for all the help
-
- LED-Curious
- Reactions:
- Posts: 1
- Joined: Wed Jan 05, 2022 7:54 pm
One of the most popular types of sensor, it is an improved version of float devices with a mechanical switch. Reed switches are distinguished by their low cost, simple and reliable design, as well as the ability to track changes in water level over a wide range. As I filled my huge pool with water using portable sump pump, I wondered how the water level had risen. And for the measurement, I just used a reed switch. The sensor is made in the form of a tube along which the float moves freely. Reed switches are installed inside the tube, the number of which can vary depending on how accurately you need to measure.
this is what im using on my reservoirs : https://esphome.io/components/sensor/tof10120.html
i also have 1 of these on the side for a couple of months to test when i get some free time :
i also have 1 of these on the side for a couple of months to test when i get some free time :