so I made a water sensor device where there are 2 sensors, bottom and top.
If the water runs out below the bottom sensor, the buzzer activates and the pump supplies water from the reserve tank to the water container. And if both the top and bottom sensors are active, buzzer active and the pump draws water into the reserve tank.
I'm asking because I tried wiring it roughly like this scheme, but the screen only turns on and shows nothing at all, and the buzzer is active. Previously I made it without the pump and relay and everything worked. fine,any advice and help....
Yes, but the code are different and remove all wiring on the pump and relay
. the buzzer will sound when the bottom sensor does not detect water, and it will also sound when both sensors detect full water.β
I need help is there something wrong with my schematic? When I power it on, it only makes a buzzer sound and the screen turns on but stays blank. Sorry I'm newbie
Several things are wrong. First, that is NOT a schematic. A schematic would not have wires overlaying wires. A schematic would show the power for the relay board and other high powered stuff coming from a suitable power supply and not from the Arduino 5 volt pin.
If you are a beginner, start with one pump, a separate power supply for the pump, a relay and one switch, and get that working before adding more parts. Baby steps!
The search phrase "arduino water pump" will turn up lots of tutorials.
Do your tanks EVER get filled? If so, the falling water will have a drastic effect on your water level sensors. The voice of experience. My tank fill is directly centered at the top of the tank. The waves from the falling water can make the sensors go on and off rapidly.
Probably not, but programming to detect the first sensor change after several minutes of no change lets me know when to begin adding water or when to stop adding water.
@Paul_KD7HB
Modify your tank inlet to fill from a lower depth.
It could be just a bend and a pipe extension.
A "T" works as well. Sometimes referred to as a stilling tube.
Tank overflow tip.
Instead of a hole and a pipe, put a "T" inside the tank with one port extended below the surface and one above.
Useful if you get floating muck on the surface. The overflow water is always drawn from the body of the water, not the surface.
Essential on rainwater storage tanks where the overflow goes to soakaway and surface muck could clag up the soakaway.
Tank filling using high and low sensors/float switches and a pump can be easily achieved by using one or two relays in a hold-on configuration.
No microcontroller required.
If you understand the relay logic, the MCU logic works the same way.
If no water activates the sensor, when the bottom sensor is activated won't the top sensor also be activated?
Shouldn't it be.
Tank is full, top and bottom sensors de-activ.
Tank is half full, top sensor active, bottom sensor de-activ.
Tank is low, top and bottom sensors activ, reserve tank pumping to fill the tank.
Tank fills, bottom sensor de-activ, top sensor active, reserv still pumping to fill tank.
Tank full, top and bottom sensors de-activ. Reserv pump stops filling.
Is that what you are trying to accomplish?
Can you please post a diagram of the water tanks and sensors and pump arrangement.
A decent schematic.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Your sensors are wired to be active when not engaged (this should mean "empty"), as it should with no water. The sequence should be: the bottom sensor is engaged before the top sensor is engaged, and if the order is reversed, there should be an error.
Your code is good.
When the "tank" is empty, the "fill" pump starts.
When the bottom float senses water and the top float senses no-water, the tank is NORMAL
When the bottom float and top float sense water, the tank is "overfull" and "drain" pump starts.
When the bottom float senses no-water but the top float senses water, "ERROR" occurs.
LCD animations work nicely.
The problem is in electric power, wiring or pumps.
Because you stop and start at the thresholds, losing the least bit of water at the bottom kicks the fill pump on briefly. And accumulating the least bit of water at the top kicks the drain pump on briefly.
This is an odd design decision. I spent time looking for the typical fill until it is full kind of thing.
A third sensor in the middle, or two somewhat spaced out sensors at each end would stop the chatter.
As would just letting either pump run for a certain limited time, nowhere near long enough to overflow or under drain.
So I am curious.
But if the logic works with proxies for the pumps and sensors, then indeed it is a hardware issue. Wiring, switch sense and pull-ups and power supply.
Those can and should be ferreted out independently of all the other stuff, that is to say with a test torture sketch that can survive turning on and off the pimps.