<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lwill.net &#187; controller</title>
	<atom:link href="http://lwill.net/?feed=rss2&#038;tag=controller" rel="self" type="application/rss+xml" />
	<link>http://lwill.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 21 Feb 2016 19:34:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rain Barrel Controler Design</title>
		<link>http://lwill.net/?p=35</link>
		<comments>http://lwill.net/?p=35#comments</comments>
		<pubDate>Mon, 27 Feb 2012 07:55:29 +0000</pubDate>
		<dc:creator>lwill</dc:creator>
				<category><![CDATA[Rain Barrel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[rain barrel]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=35</guid>
		<description><![CDATA[This is the (current) controller design. It is very crude and has not been truly &#8220;engineered&#8221;, but I kept adding bits and trying values until it did what I wanted. Most of the values were chosen from what I had on hand and drove the design. The circuit accomplishes 3 main functions. First: Charge the [...]]]></description>
			<content:encoded><![CDATA[<p>This is the (current) controller design.<br />
<a href="http://lwill.net/images/rainbarrel/schematic.png" target="_blank"><img src="http://lwill.net/images/rainbarrel/schematic.png" alt="" width="500" height="342" /></a><br />
It is very crude and has not been truly &#8220;engineered&#8221;, but I kept adding bits and trying values until it did what I wanted. Most of the values were chosen from what I had on hand and drove the design.<br />
The circuit accomplishes 3 main functions.<br />
First: Charge the battery with the solar cell.<br />
Second: Turn on the pump at night, run to a set level of water, turn off and not run again until the next night.<br />
Third: Use a moisture probe to prevent running if the ground is wet enough.<br />
The solar cell is used as a light sensor as well as a power source.<br />
Power from the solar cell is fed to a LM317 in a current source mode to supply approximately 125 mA to the 9.6V 1600mAH NiMH battery pack. This provides slightly less than a 10% charge rate based on 10 hours of full sun a day. According to most sources I found, this reasonable charge rate without over charging, since it is time limited by the amount of sun each day and not constant. R19 provides power to supply the electronics while the sun is out, and D10 when dark and running solely from battery.</p>
<p><span id="more-35"></span><br />
Power is also fed through D5 and D6 to a 2 part sensing circuit. D6 feeds one half of a LM393 comparator, U3B, to detect when the sunlight drops below a point set by D3, a 5.1V zener. U3B turns on Q2, the positive side of the output. D5 charges C2 and fed into U3A used to detect when the sun is shining, set to approximately 5.7V (D2+D3). This helps to insure U3A (5.7V) is on only after U3B (5.1V) turns off for the day. The capacitor forms a time delay to prevent the output staying on indefinably if the level detectors fail, setting a maximum run time. This also arms the system each morning. U3A turns on the low side driver Q3 through Q4 only when Q2 is turned on (after dark) and helps to provide a high enough voltage to turn Q3 on fully.<br />
U2A is used as an oscillator to send a signal to the moisture probe through Q1. This helps to prevent a capacitive charge from building up on the probe and limits the current draw through the probe due to it&#8217;s duty cycle.<br />
U2B is used for turning the system off, either with a level sensor or moisture probe. When activated, the output pulls the input to U3A low, discharging C2 and turning Q4/Q3 off. A level sensor simply pulls the input to ground. The moisture probe set point is set with RV1 and the osculations are smoothed out at the output using C3. The moisture probe may not turn the system off instantly, but since it is active even during the day, it prevents C2 from charging thus preventing the system from ever arming.<br />
The water level sensors are normally open magnetic reed switches with a magnets mounted in floats to activate them. There is one used for the water level to dispense, and one to detect if the barrel is empty.<br />
The moisture probe is two stainless steel wires about 2 inches long and 1/4-3/8 inch apart.<br />
A note on the 9.6v NiMH battery life:<br />
The pump runs for about 5 minutes MAX at about 2 amps. or a total draw of less than 160 mAh (.16 Ah). In reality it takes about 2 min. to move 10 gallons. The pump is rated at 1000 gph with zero head,(36 sec!!) but raising about 6 feet slows it down. The battery I am using is ratted at 1600 mAh so I only draw about 10% of it&#8217;s capacity. The solar cell is rated at 1.8 W or about .15 A at 12V.(it&#8217;s actual unloaded output is 18v+) Charging the battery at slightly less than the suggested 10% rate,(.16 A) it will take about 10 hours of average sunlight to fully recharge, or an average day. That still leaves enough capacity to run for a week with less than average sunlight, and a few really bright days will make up for it. If the battery should go flat, it comes with a wall charger to freshen it back up if needed. The electronics are basic very low power op-amps and efficient MOSFET drivers drawing very little additional power.</p>
Number of View :10232]]></content:encoded>
			<wfw:commentRss>http://lwill.net/?feed=rss2&#038;p=35</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rain Barrel control</title>
		<link>http://lwill.net/?p=76</link>
		<comments>http://lwill.net/?p=76#comments</comments>
		<pubDate>Tue, 08 Mar 2011 05:07:17 +0000</pubDate>
		<dc:creator>lwill</dc:creator>
				<category><![CDATA[Rain Barrel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[rain barrel]]></category>

		<guid isPermaLink="false">http://192.168.0.75/wordpress/?p=76</guid>
		<description><![CDATA[I think I now have a working control for the rain barrel, with a moisture probe. This will prevent watering if the ground is already wet. I have a new PC board made and tested and just waiting for the weather to break a bit to get the barrel hooked up to test it. If [...]]]></description>
			<content:encoded><![CDATA[<p>I think I now have a working control for the rain barrel, with a moisture probe. This will prevent watering if the ground is already wet. I have a new PC board made and tested and just waiting for the weather to break a bit to get the barrel hooked up to test it. If all goes well I will add the design info to the rain barrel page soon. The whole control is pretty basic with only one adjustment for the probe so it should be cheap and reliable. Just don&#8217;t expect any bells and whistles.</p>
Number of View :3309]]></content:encoded>
			<wfw:commentRss>http://lwill.net/?feed=rss2&#038;p=76</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic Rain Barrel</title>
		<link>http://lwill.net/?p=23</link>
		<comments>http://lwill.net/?p=23#comments</comments>
		<pubDate>Mon, 07 Feb 2011 07:21:16 +0000</pubDate>
		<dc:creator>lwill</dc:creator>
				<category><![CDATA[Rain Barrel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[rain barrel]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=23</guid>
		<description><![CDATA[We have a small garden out by our shed. It is not very big, sort of a &#8220;Square Foot Garden&#8221;. Just enough for some tomatoes, a cucumber and a few other plants. Of course one big key to a good garden is consistent watering, and of course I am a bit lazy and not very [...]]]></description>
			<content:encoded><![CDATA[<p>We have a small garden out by our shed. It is not very big, sort of a &#8220;Square Foot Garden&#8221;. Just enough for some tomatoes, a cucumber and a few other plants. Of course one big key to a good garden is consistent watering, and of course I am a bit lazy and not very consistent. I wanted something to do it for me automatically.<br />
<a href="http://lwill.net/images/rainbarrel/rainbarrel1.jpeg" target="_blank"><img src="http://lwill.net/images/rainbarrel/rainbarrel1.jpeg" alt="images/rainbarrel/rainbarrel2.jpeg" width="200" height="150" /></a><br />
The shed is about 50&#8242; from the house, not far, but far enough to have to drag out a big hose. Living in a cold climate, the obvious solution do not work well here. I could not simply bury a hose without worrying about draining it so it will not freeze. I also did not want to bury any wire for automation either. I needed something that would stand alone, self power and supply water.<br />
<a href="http://lwill.net/images/rainbarrel/rainbarrel2.jpeg" target="_blank"><img src="http://lwill.net/images/rainbarrel/rainbarrel2.jpeg" alt="" width="200" height="150" /></a><br />
I decided on a rain barrel to attach to my shed. I simply used a 50 gallon trash can. I am not using the water for direct consumption, only irrigation. The first one was a heavy duty one some one had thrown away. (You can only use 35 gallon max for garbage here, so I could not use it for that) I lined it with a heavy 55 gallon &#8220;contractors&#8221; bag to keep the water clean and so it could be replace for easy cleaning. To hook it up to the gutter on the shed I made my own diverter/screen. (More on that later) The roof is about 10&#8242;x15&#8242; and can fill the barrel with a moderate rain fall.</p>
<p><span id="more-23"></span><br />
With the water supply solved, I looked at the automation part. Anything I built needed to be solar/battery powered do to the remoteness. The main design goal was to water each night a set amount, reset the next day, and keep itself charged. The first version was built around two items from Harbor Freight. A battery powered back pack sprayer, and a solar trickle charger. The sprayer had a 12v gel cell battery and quite heavy duty pump and was used as a 5 gallon reservoir. The charger was used to charge the battery and to trigger the system each night at dark. The sprayer had a niffy little charging circuit that sensed over charging and shut down on low battery. With a little modifying, and a latching relay, I was able to get it to sense when the sun went down and latch the relay shut turning on the pump. I reversed the pump to suck water from the rain barrel and fill the backpack. The backpack was hung about 5 feet above the garden and 2 feet about the rain barrel. This kept the barrel from siphoning, and provided some pressure to water with. I put a reed switch/magnet in a float in the backpack so when it was full, the pump shut off. The system would not run again until the next day when the solar panel would once again power the circuit. The water would then drain out the backpack to water the garden through a drip feed system. The water ran out o backpack at the same time it was filling so since the backpack held about 5 gallons and about a gallon ran out while it filled, about 6 gallons was supplied each cycle. I could adjust the amount by the position of the float switch. Last thing was another float switch in the bottom of the barrel so if it ran dry, the system would be disabled. Of course, during the day the solar panel charged the battery. Since the pump only ran for about 4 minutes, trickle charge was enough to offset the draw each day. Towards the end of the season there were a lot of overcast days and the charger finally fell behind, so I used and extension cord to use the charger that came with the sprayer to let it charge for a few hours.<br />
<a href="http://lwill.net/images/rainbarrel/rainbarrel3.jpeg" target="_blank"><img src="http://lwill.net/images/rainbarrel/rainbarrel3.jpeg" alt="" width="src=images/rainbarrel/rainbarrel3.jpeg" height="150" /></a> <a href="http://lwill.net/images/rainbarrel/rainbarrel4.jpeg" target="_blank"><img src="http://lwill.net/images/rainbarrel/rainbarrel4.jpeg" alt="" width="src=images/rainbarrel/rainbarrel4.jpeg" height="150" /></a><br />
The original set up worked well the first year. The tomato plants were over 6 feet tall! Went on vacation with no worries. There were a few dry spells during the summer when the barrel did not get filled, so I ran out the hose and filled it and was good for another week.<br />
There were a few draw backs I wanted to address. Cost, overkill, and reproduce-ability. Cost: I got the sprayer on an open box sale, but it would have normally been quite expensive. Overkill: The pump was way, way bigger than was needed as well as the battery needed to drive it. Reproduce-ability: Modifying the charge circuit was not a good solution, and the normal cost of the sprayer was too high to duplicate. The way I had the whole system installed would not work for most people, the reservoir was hung inside the shed. I started looking for cheep available solutions.<br />
Here are the main components I chose for the second version.</p>
<div id="content">
<ul>
<li>Pump: Small 12 volt <a href="http://www.harborfreight.com/1000-gph-bilge-pump-66095.html" target="_blank">bilge pump</a> form Harbor Freight.</li>
</ul>
<ul>
<li>Battery: 9.6 volt NiMH battery pack and charger from <a href="http://www.radioshack.com/product/index.jsp?productId=3999878" target="_blank">Radio Shack</a>.</li>
</ul>
<ul>
<li><a href="http://www.harborfreight.com/15-watt-solar-battery-charger-44768.html" target="_blank">Solar Cell</a>: Same as before.</li>
</ul>
<ul>
<li>Barrel: Cheaper trash can.</li>
</ul>
<ul>
<li>Reservoir: 1 or 2, 5 gallon buckets for up to ~10 gallon capacity.</li>
</ul>
<ul>
<li>Controller: New, low power design.</li>
</ul>
<ul>
<li>Enclosure: Mount the whole works in a free standing frame.</li>
</ul>
<p>I found the pump would run just fine on only 9.6 volts and could still pump water more than fast enough to the hight I wanted to go. The battery was chosen since it came with a charger and NiMH were slightly easier to charge than gel cell and had a lot higher capacity than NiCd. The buckets were cheep and handy. The whole works now gets mounted in a PVC pipe frame that can be enclosed.<br />
I also wanted to upgrade the controller while still keeping it as simple as possible. I won&#8217;t go into it to much here, but there were several revisions, and it is almost there. It went form a relay system to using MOSFETs for the lowest power drain. I want it to be made for discreet components so any one could perf-board it. I may eventually make a &#8220;deluxe&#8221; one using some micro-controller, but then you would need the development tools to make your own, or have to buy it form me. It would be cooler with more features, but not necessarily better. (KISS) I am still trying to add a simple soil moisture sensor to avoid unnecessary watering.<br />
This past year the new setup was tested, but not as thoroughly as I would have liked. My new little girl took a lot of attention away from projects. The good news is it worked, mostly. I am now getting ready for my 3rd try. I have all the main parts now and just need to refine the controller, which is in the works.<br />
My intention is to get a final design that works well, cheep, and easy to make from easily obtainable parts. I will then post all the details so some one else could copy it. (or improve upon it) I want this to be &#8220;open source&#8221; so any suggestions I get for improvement will be incorporated and you will be credited here. If you want to make your own, or ones for friends, fine, but please remember where it came from if any profit is involved and do the right thing!* If there is any interest at that time I will consider putting together some form of a &#8220;kit&#8221; for those who do not want to do all the leg work or don&#8217;t have the tools.<br />
*I have no intention of trying to patent this since I have found it to be a waste of time and money with today&#8217;s patent system. Only those with enough money to out last the lawyers can win. If a big company wants it, they take it and dare you to come after them. (and their lawyers) If I had that kind of money, I would not be trying to make a few bucks like this. So again, do the right thing. Please don&#8217;t just rip me off. Point people to my site or contribute yourself, and I will keep trying to make things better.</p>
<p>UPDATE:<br />
Picture of updated system.<br />
<a href="http://lwill.net/images/rainbarrel/barrelv2.jpg" target="_blank"><img src="http://lwill.net/images/rainbarrel/barrelv2.jpg" alt="" height="150" /></a></p>
</div>
Number of View :4957]]></content:encoded>
			<wfw:commentRss>http://lwill.net/?feed=rss2&#038;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
