I have been looking for a nice tutorial to make a ardunio based water level alarm system. I have gone through many pages, i didn't quiet understood much of electronics discussion.
My idea is to keep the groud cable till the bottom of the tank and arrange different length cables to define height and connect them to analogPins.
I shall read '0' when water touches the cable. I would like to use two LEDs one Green if the level of water is below the emergeny level, Red when Arduino does the emergency stop.
I need help with the circuit, I kept my idea into schematic.
Any suggestion will be very much appreciated!
Thank you,
Best Regards, Sai
You'll have to be careful because the water isn't a perfect conductor. It is going to have some resistance. You'll need to understand that resistance and the pull-up or pull-down resistor you use create a voltage divider. The voltage at the center of that divider will have to be greater than 3V in order for the pin to read as HIGH. For that to work you'll need a much weaker pull-up, something more along the lines of a megaohm.
I also like the idea better of having the "switches" here wired as active low. So ground on the bottom of the tank and put the resistors from the pins to +5V. I doubt you can use the internal pull-ups for this as they'd probably be too strong. You'll have to use an external pull-up resistor. In that case the pin reads LOW when it senses water.
The other thing you have to worry about here is electrolysis. You're going to make some hydrogen and oxygen on the wires in the container and you're going to leave behind part of your wire. Usually a sensor like this uses an alternating voltage so the electrolysis takes turns driving both directions and you don't lose material off of your wires.