R
Rick Measham
I want to monitor the level of water in our rainwater tank
electronically - more specifically via the computer.
My thought is to hang a length of ribbon cable down the side of the
(plastic) tank with each 'core' cut shorter than the previous. I care
more about a lower level than a higher, so I figure I'll probably cut it
in something like a log curve.
Now my plan is to cross the top of every core with a resistor in series
and attach one side of the circut to the shortest core and one to the
longest. As the water climbs it 'short circuits' each progressive
resisitor, thus reducing the over-all resistance. I'd then feed this
into an A2D convertor and plug that into the computer.
+ R R R - Water level / Resistance
| | | | | --- / 0R
| | | |
| | | | --- / 1R
| | | --- / 2R
| | --- / 3R
Does this sound sensible? Is there something obvious I've missed? What
value should R be? Should R follow the logarythmic curve so that I
attempt to get a straight line in the computer? Or am I better to leave
every R equal and (by guestimation+testing) determine a close-enough
algorithm in software?
Cheers!
Rick Measham
electronically - more specifically via the computer.
My thought is to hang a length of ribbon cable down the side of the
(plastic) tank with each 'core' cut shorter than the previous. I care
more about a lower level than a higher, so I figure I'll probably cut it
in something like a log curve.
Now my plan is to cross the top of every core with a resistor in series
and attach one side of the circut to the shortest core and one to the
longest. As the water climbs it 'short circuits' each progressive
resisitor, thus reducing the over-all resistance. I'd then feed this
into an A2D convertor and plug that into the computer.
+ R R R - Water level / Resistance
| | | | | --- / 0R
| | | |
| | | | --- / 1R
| | | --- / 2R
| | --- / 3R
Does this sound sensible? Is there something obvious I've missed? What
value should R be? Should R follow the logarythmic curve so that I
attempt to get a straight line in the computer? Or am I better to leave
every R equal and (by guestimation+testing) determine a close-enough
algorithm in software?
Cheers!
Rick Measham