I'm planning to use a float switch to keep an eye on my water level in an IBC tank. Wil be using this model
Now I can do two things.
1, have it mounted this way that the switch will be closed most of the time and opened when the water level rose to a certain level.
2, the way around, mounted that the switch is open most of the time and closed when the water level rose to a certain level.
The main question is, how much power will the switch use while closed compaired to open? In my code I'll look for the state of the switch once per second.
Using an UNO, the one I know best, and alternative 2 looks like the best provided that the level spends more time below swtiching point than above. The difference is marginal.
I don't know the Nano but for an UNO there is a built in PULLUP resistor of 10 kOhm. 5 volts, or maybe 3.3 volts divided by 10 kOhm…. 0.5 mA when being Active.
The 30 ohm of the cable can be ignored.
The nano also has a buildin PULLUP register I think. Not sure, will look it up to be sure.
Still not clear to me why the 30 ohm of the cable can be ignored. Resistance "consumes" energy? So just to sense if the switch is closed or open does not "use" energy?
Yes, you can enable pull up on the pins of a Nano. And I think they are more like ~30k.
That will "consume" the insignificant current of 5/30000 = 0.166mA, or 5/30030 = 0.166mA if you add that 30ohm to it (the cable is in series with the pull up resistance).
That pull up current is insignificant if you compare that to the ~30mA the Nano itself draws.
Why do you actually need a micro to "keep an eye on the level".
Leo..
Leo, I use the arduino nano since that is what I have available here at my brothers homestead.
A 433mhz transmitter will send the state of switch to the house. There a barebones arduino will light a led when the tank is almost empty (and almost full)
Could do with way less I guess but this are components I allready know and I got it working with some simple push buttons. These will be swapped with the float switches.