Hi gang! I am a beginner experimenter with the picaxe system. I am doing some conceptual design to build a controller/monitor, preferably using either picaxes, or possibly also using a data acquisition device I bought a while back (DLP deisgns I/O20 usb data acquisition module) for a small water treatment system for my rural property serviced by a couple of low yield brackish water wells. I will get to my question in due course, but I thought I would outline the project first:
The water treatment system comprises of two low volume DC submersible pumps (variable speed 12-30 volt) with well water level transducers (4-20ma output), which pump into a 'small' tank, which is then re-pumped through a water softener, and optionally (depending on salinity readings of the raw water) through a reverse osmosis unit, into a larger 'processed water' tank which stores the processed water, which is pumped again on demand to the house. So I have two well pumps, two centrifugal pumps to pull water from the tanks, and the RO unit has it's own pump. All of this located in a secure shed behind the house with power.
I have the system up an running now using float switches in the tanks to tell the well pumps and the centrifugal pumps and the RO unit when to turn on (I currently manually switch between each well depending on water levels in the wells). The RO unit also has a nice little 'lockout' switch which will shut down the unit based on the state of a dry contact switch...
So..... what I want to do is this, using electronics:
1. Monitor water consumption from each well, as well as the water being processed through the RO unit (assuming it won't always have to run), and final water use into the home. This can be done using the little 3/4 inch dia hall effect sensors which you can get on ebay - this one gives 330 pulses per liter:
http://www.ebay.com/itm/G3-4-Water-Flow-Hall-Sensor-Switch-Flow-Meter-Flowmeter-Counter-DC-5V-24V-/171040909037?pt=LH_DefaultDomain_0&hash=item27d2d526ed
2. Monitor the salinity of the raw water before it hits the RO unit (I have two 4-20ma salinity sensors installed for this purpose, and I purchased a two sensor controller that displays the salinity and also provides an external voltage that can be used to 'read' the salinity value of each sensor). OK, so if the raw salinity is less than, say 200ppm, the 'computer' will activate a bypass solenoid that will allow the water to bypass the RO unit. When the water bypasses, the RO will sense the low inlet pressure and will automatically shut down.
3. If the RO unit is on, and the RO output salinity is over, say 300ppm, the RO unit should be shut down by the 'computer' (RO filters are done and need replacing).
4. If the water level in the well being pumped is too low, it will shut down that pump, and perhaps try the other well. Will prevent dry pumping...
So those are the 4 tasks I'd like the 'computer' to do. For flow monitoring, probably just converting the pulse data into actual flow, displaying instantaneous flow on an lcd, and storing the historical data to a USB flash drive would be the way to go. Same idea for the salinity readings, read the two voltages, and use the Digital out's on a picaxe to drive relays to bypass the RO or tell the RO to shut down. Well levels can also be monitored (4-20ma : ADC voltage in), displayed on an LCD, and recorded along with the flows.
So.... On to my question. Or questions.... I know that the picaxes are capable of doing all of these things, but I see this as perhaps asking to much for one picaxe to do on it's own, perhaps I need a picaxe or two to process the flow readings and record flow data, and another one to monitor well levels, and another one to turn the relay switches on/off and drive the lcd displays. If this is the best configuration, I could use some advice on how best to network the various picaxes effectively.
Or, alternatively, I could write a windows program to do the monitoring etc on a laptop that I would keep on at all times, and use the data acquisition module I mentioned above to interface to the various parts, although I might still need picaxes to read the pulsed flow data and convert that to an input that can be read by the windows program interface...
My idea at this point is to start small, and get flow and well level recording picaxes up and running and displaying and recording this data first, and go from there. Any comments from the picaxe wizards on my approach? Is this doable? I might also want to network the stuff back to the house - I have a cat 5 cable in the ground for that purpose, but that would be version 2 lol!!
John
The water treatment system comprises of two low volume DC submersible pumps (variable speed 12-30 volt) with well water level transducers (4-20ma output), which pump into a 'small' tank, which is then re-pumped through a water softener, and optionally (depending on salinity readings of the raw water) through a reverse osmosis unit, into a larger 'processed water' tank which stores the processed water, which is pumped again on demand to the house. So I have two well pumps, two centrifugal pumps to pull water from the tanks, and the RO unit has it's own pump. All of this located in a secure shed behind the house with power.
I have the system up an running now using float switches in the tanks to tell the well pumps and the centrifugal pumps and the RO unit when to turn on (I currently manually switch between each well depending on water levels in the wells). The RO unit also has a nice little 'lockout' switch which will shut down the unit based on the state of a dry contact switch...
So..... what I want to do is this, using electronics:
1. Monitor water consumption from each well, as well as the water being processed through the RO unit (assuming it won't always have to run), and final water use into the home. This can be done using the little 3/4 inch dia hall effect sensors which you can get on ebay - this one gives 330 pulses per liter:
http://www.ebay.com/itm/G3-4-Water-Flow-Hall-Sensor-Switch-Flow-Meter-Flowmeter-Counter-DC-5V-24V-/171040909037?pt=LH_DefaultDomain_0&hash=item27d2d526ed
2. Monitor the salinity of the raw water before it hits the RO unit (I have two 4-20ma salinity sensors installed for this purpose, and I purchased a two sensor controller that displays the salinity and also provides an external voltage that can be used to 'read' the salinity value of each sensor). OK, so if the raw salinity is less than, say 200ppm, the 'computer' will activate a bypass solenoid that will allow the water to bypass the RO unit. When the water bypasses, the RO will sense the low inlet pressure and will automatically shut down.
3. If the RO unit is on, and the RO output salinity is over, say 300ppm, the RO unit should be shut down by the 'computer' (RO filters are done and need replacing).
4. If the water level in the well being pumped is too low, it will shut down that pump, and perhaps try the other well. Will prevent dry pumping...
So those are the 4 tasks I'd like the 'computer' to do. For flow monitoring, probably just converting the pulse data into actual flow, displaying instantaneous flow on an lcd, and storing the historical data to a USB flash drive would be the way to go. Same idea for the salinity readings, read the two voltages, and use the Digital out's on a picaxe to drive relays to bypass the RO or tell the RO to shut down. Well levels can also be monitored (4-20ma : ADC voltage in), displayed on an LCD, and recorded along with the flows.
So.... On to my question. Or questions.... I know that the picaxes are capable of doing all of these things, but I see this as perhaps asking to much for one picaxe to do on it's own, perhaps I need a picaxe or two to process the flow readings and record flow data, and another one to monitor well levels, and another one to turn the relay switches on/off and drive the lcd displays. If this is the best configuration, I could use some advice on how best to network the various picaxes effectively.
Or, alternatively, I could write a windows program to do the monitoring etc on a laptop that I would keep on at all times, and use the data acquisition module I mentioned above to interface to the various parts, although I might still need picaxes to read the pulsed flow data and convert that to an input that can be read by the windows program interface...
My idea at this point is to start small, and get flow and well level recording picaxes up and running and displaying and recording this data first, and go from there. Any comments from the picaxe wizards on my approach? Is this doable? I might also want to network the stuff back to the house - I have a cat 5 cable in the ground for that purpose, but that would be version 2 lol!!
John