1.Is a arduino nano/ attinyxx reliable enough for this project? i mean this is for my elderly grandparents, so if the mcu fails or has any error somehow, the water bills gonna go through the roof.
2.a project such as this requires a fixed amount of pins, so am i better of with arduino or attiny while also keeping the above question in mind?
3. The distance of the sensor from the controller is an average 90~100 feet (28~30 meters). what type of sensor am i better of with. i think something like 1 wire is even out of the question. would analog sensors do? like thishttps://www.techshopbd.com/product-categories/water/3455/water-sensor-china-techshop-bangladesh
4.Can the signal survive the 30 meter distance? The wire im going to use is standard electrical wire (1.5 mm house wire) If not, whats my option?
https://www.techshopbd.com/product-categories/miscellaneous-98724/1343/sonar-sensor-hc-sr04-techshop-bangladeshwould this be hard to implement?
I use two of these, float switches along with an Arduino nano to monitor and control the water level in my irrigation storage tanks. Utterly reliable. The switches are mounted in PVC pipe, one near the bottom and one near the top. All sealed into the pipe and the pipe top and the wires are mounted through a hole in the top of a tank.Paul
Then start to actually search. No way you can't find standard 0.12-0.2mm2 wire. Can't imagine any country in this world is that backwards.
You want shielded wire for 30m outside if there's any chance of lightning striking anywhere in about that distance. Plain wire has another name; it's "antenna".I'm puzzled about why a controller is needed to keep a water tank filled. If there is some kind of log or report or control that limits use when the tank is low then I could see that but 2 level sensors and wired logic to a relay will do the basic job.The code you put on the Arduino, make sure that that is dependable too.
A flip flop IC can solve that problem just fine. You'd want something like that anyway or the inlet would switch on any time the water drops enough for the top valve to open, instead of waiting to reach the lower level.