circuitmayhem
New Member
Hi everyone,
I've been trying to work out how to do something which *should* be easy, but is foxing me and I was wondering if you could give me a little guidance please?
I capture rainwater from my roof and store it in a water butt for garden irrigation. The tap is quite near the bottom so as to maximise the water I can take out of the butt. Every so often (about every 6 months) water suddenly stops coming out because silt and muck from the roof has risen up above the level of the tap. The problem is, I use this water for automatic irrigation and I don't have a sensor for saying that the water isn't running.
I decided a better way might be to have a number of sensors to monitor the build up of silt in the bottom of the butt so I started thinking about building a short length of pipe with maybe 4 slotted opto-switches on it so that and potting the whole lot. Then, I could put that length of pipe down to the bottom of the butt and as the silt rises, so it will cover each of the opto-switches in turn. I could use this to work out what level the silt was.
I've got a device which I've played with before that is a datalogger with a 10V range and a single analogue input. It also has the capability to uplink data (I've not done much with this right now) but I was trying to work out if there was a way to encode the output from the individual opto-switches (probably using some appropriately sized resistors) that would mean I could inspect voltage and decode which of the switches were covered. In my mind, if each resistor connected to the output of each opto-switch was half the resistance of the previous, I should be able to get a voltage that I can decode back into which on is on or off.... but I am struggling!
Any help or guidance or better suggestions about how to take multiple opto-sensor output and encode onto one channel would be much appreciated!
Many thanks in advance!
Neil
I've been trying to work out how to do something which *should* be easy, but is foxing me and I was wondering if you could give me a little guidance please?
I capture rainwater from my roof and store it in a water butt for garden irrigation. The tap is quite near the bottom so as to maximise the water I can take out of the butt. Every so often (about every 6 months) water suddenly stops coming out because silt and muck from the roof has risen up above the level of the tap. The problem is, I use this water for automatic irrigation and I don't have a sensor for saying that the water isn't running.
I decided a better way might be to have a number of sensors to monitor the build up of silt in the bottom of the butt so I started thinking about building a short length of pipe with maybe 4 slotted opto-switches on it so that and potting the whole lot. Then, I could put that length of pipe down to the bottom of the butt and as the silt rises, so it will cover each of the opto-switches in turn. I could use this to work out what level the silt was.
I've got a device which I've played with before that is a datalogger with a 10V range and a single analogue input. It also has the capability to uplink data (I've not done much with this right now) but I was trying to work out if there was a way to encode the output from the individual opto-switches (probably using some appropriately sized resistors) that would mean I could inspect voltage and decode which of the switches were covered. In my mind, if each resistor connected to the output of each opto-switch was half the resistance of the previous, I should be able to get a voltage that I can decode back into which on is on or off.... but I am struggling!
Any help or guidance or better suggestions about how to take multiple opto-sensor output and encode onto one channel would be much appreciated!
Many thanks in advance!
Neil