Trying to find a water level sensor/switch

  • Thread starter Thread starter perplexabot
  • Start date Start date
  • Tags Tags
    Water Water level
Click For Summary

Discussion Overview

The discussion focuses on finding a suitable water level sensor or switch that can output a HIGH or LOW signal based on water levels in a tank. Participants explore various types of sensors, their connections, and applications, including specific use cases like aquariums and controlled environments.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant seeks clarification on the output wiring of water level sensors, noting confusion regarding the presence of only two wires (GND and VIN).
  • Another participant explains that the switches typically have a single contact and can be connected to a microcontroller input, requiring a pull-up resistor for proper operation.
  • Some participants mention that the linked level sensors use a magnetic reed switch and discuss alternative methods for measuring fluid levels without moving parts.
  • There is a request for clarification on the voltage requirements for the sensors, with one participant expressing uncertainty about needing to supply voltage beyond ground.
  • A participant suggests using a specific water level sensor that has worked well for their aquarium, although they admit to not fully understanding its operation.
  • Another participant offers a practical suggestion to repurpose a level sensing switch from a vehicle's windshield washer fluid reservoir as a low-cost alternative.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the operation and wiring of water level sensors. There is no consensus on the best type of sensor or the specific wiring configurations, indicating multiple competing views and unresolved questions.

Contextual Notes

Participants highlight the need for specific knowledge about the electrical output connections, the type of fluid being measured, and environmental factors that may affect sensor performance. These considerations are noted as important for selecting an appropriate sensor.

Who May Find This Useful

Individuals interested in DIY electronics projects, particularly those involving water level measurement in tanks or similar applications, may find this discussion beneficial.

perplexabot
Gold Member
Messages
328
Reaction score
5
Hello all. I am trying to find a sensor (probably switch is a better word) that will output a HIGH or LOW depending if the water (say, in a tank) has reached a certain level. I first googled: pressure sensor, then pressure switch. I also stumbled upon water level sensors, and now I am kind of confused.

I searched for some on amazon, this is what I found:
https://www.amazon.com/Amico-Aquarium-Liquid-Sensor-Stainless/dp/B006Z9691O/ref=sr_1_5?ie=UTF8&qid=1390023344&sr=8-5&keywords=water+level+switch
https://www.amazon.com/Amico-Liquid-Sensor-Horizontal-Switch/dp/B007Q85J7S/ref=pd_cp_hi_2

These contraptions don't make sense to me, I can only see two wires, GND and VIN, where is the output wire?

Any help will be appreciated. Thanks.
 
Engineering news on Phys.org
The switches have a single contact. You can connect the switch with a twisted pair of wires. One of those wires will be connected to ground, the other is the signal. If the signal is going to a micro-controller input then you will need a pull-up resistor or a programmed bias current on that input to make the voltage high when the sensor switch is open.
 
The level sensors linked in the OP appear to have an external moving magnet and a fixed sealed magnetic reed switch. There are other methods of determining fluid level that do not have external moving parts in contact with the fluid.

To select an appropriate sensor requires knowledge of several of things.
1. What will the level sensor's electrical output be connected to ?
2. What fluid is the sensor being used to measure ?
3. What unusual environmental problems like waves, ice or cattle may be present ?
 
Thank you for the great replies and sorry for my late one. So if my understanding is correct, the level switches in the OP only require a ground? The other wire is the signal? Also, the description of these switches say that the max switch voltage is 100V, I want to know how much voltage I need to supply it with (but then again, If my initial logic is correct, I only need to supply it with ground... Now i am really lost).

Baluncore said:
The level sensors linked in the OP appear to have an external moving magnet and a fixed sealed magnetic reed switch. There are other methods of determining fluid level that do not have external moving parts in contact with the fluid.

To select an appropriate sensor requires knowledge of several of things.
1. What will the level sensor's electrical output be connected to ?
2. What fluid is the sensor being used to measure ?
3. What unusual environmental problems like waves, ice or cattle may be present ?

I think first I need to find an appropriate switch then I need to figure out how it works. So first, as Baluncore has mentioned, a couple of things worth mentioning:

1. A micro controller (specifically a arduino nano)
2. Water (H2O)
3. None (a controlled environment... a water tank)
*. Outputs HIGH/LOW (not pressure value)
*. Low power (kind of obvious)
 
Attach a twisted pair of wires to the two terminals on your float switch. At the Arduino, connect one wire to the digital ground. Connect the other wire to your Arduino logic input. Place a 10k resistor between the signal pin and +Vcc.

When the float switch contacts are open the input will be high, +5V. No power will be consumed.
When the float switch contacts are closed the input will be low, 0V. Half a milliwatt will be dissipated in the resistor.
 
Baluncore said:
Attach a twisted pair of wires to the two terminals on your float switch. At the Arduino, connect one wire to the digital ground. Connect the other wire to your Arduino logic input. Place a 10k resistor between the signal pin and +Vcc.

When the float switch contacts are open the input will be high, +5V. No power will be consumed.
When the float switch contacts are closed the input will be low, 0V. Half a milliwatt will be dissipated in the resistor.

Ok that makes a lot of sense. Thank you.
 
Hey perplexabot,

Although I personally am not as technically savy as some, I may know of a sensor that will help you. I have been using this water level sensor in my aquarium at home, and although I don't understand "how" it works, it seems to work pretty well, at least for my needs. It can actually tell me how much water is in the tank and shuts off the pump when the water reaches a certain level. Here's the link:
http://vegetronix.com/Products/AquaPlumb/
Hope this helps!
 
JLodge said:
Hey perplexabot,

Although I personally am not as technically savy as some, I may know of a sensor that will help you. I have been using this water level sensor in my aquarium at home, and although I don't understand "how" it works, it seems to work pretty well, at least for my needs. It can actually tell me how much water is in the tank and shuts off the pump when the water reaches a certain level. Here's the link:
http://vegetronix.com/Products/AquaPlumb/
Hope this helps!

Hey, thanks for your help. I have actually finished this project a while back, I appreciate your input though.
 
  • #10
Note to next guy

go to a junkyard and look under the hood of any modestly fancy automobile. Find the "windshield washer fluid reservoir" , most of them have a level sensing switch to illuminate the "Low Wash" light on instrument cluster. Should cost you about a dollar.
 
  • Like
Likes   Reactions: 1 person

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
5K
Replies
1
Views
2K
Replies
9
Views
13K
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 9 ·
Replies
9
Views
43K
Replies
1
Views
6K
Replies
6
Views
8K
  • · Replies 1 ·
Replies
1
Views
3K