Best DIY pump/ light timer.

Hilltophigh

Well-Known Member
I have been using a environment controller a friend let me borrow till he set things back up at their new place. It worked ok but it is kind of a piece of shit, it is the XGC-1e. My main complaints with this box are this. #1 It does not have any kind of battery inside to keep at least the timer on the correct time. I live out in the hills and we often get power outages for 30min or longer. I have to constantly keep an eye on the timer. My biggest and second complaint is this. I set up a flood to drain 4x8 table. The box has a timer to run the water pump to flood the table. The problem is this, The max time in-between floods is 8 hours. Yes you can adjust the time for each flood but it does not really work right because you need to flood the table not just put 1" of water on it. When the plants are small and do not have a big root system yet every 8 hours is to often and they get root rot. Yea they will still grow and produce but your quality and quants are way less. The roots should be white and healthy not rust or dirt colored. Also the co2 controller is annoying, It just does not seem to work right, I am not using it but the damn box turns the relay on and off the whole time the box is on. The really is not quiet either.

So my friend has set back up, I looked at other boxes. They want a small fortune for them, which i do not mind if they work flawlessly. But i decided to make my own. I went to lowes and started looking around at what they had i could use to build a timer that i could control exactly the way i wanted to, down to the minute. I found exactly what i was looking for. Strangely enough it was in the lighting area. I will attach photos of the things i used to make it. It is a digital timer with an internal battery to keep the time. It has up to 18 different programs to turn pumps, lights or what ever on, which is a bit excessive but whatever, it was only $20. It is a wall mount timer, meaning it is meant to go in a box in the wall.. I got a dual gang box to put it in because of the wire nuts and cables in the box needed somewhere to go. Then I bought a 9' extension cord with a 3way on one end just incase i wanted to ever use it for something else. I cut the cord in half, wired it to the timer and put it in the box. Here is how you wire it. Wirenut all 3 greens wire together, Timer wire and the 2 wires from the cut in half cords. Wirenut all 3 white wires wire together, Timer wire and the 2 whites from the cut cords. The black wire on the male cord, (the one you will plug in to your power source) wire nut it to the black wire on the timer. The last black wire, which goes to the female part of the cord, (where you will plug in the device you wish to have timed) Take that black wire and wire nut it to the red wire, labeled load. Screw the timer in the box and your ready to program it. Total cost less than $35.
 

Attachments

Hilltophigh

Well-Known Member
I am also going to use the same thing to run a pump to my outside garden. I have a 300 gallon tank with 6.1ph water in it on a drip system.
 

dbkick

Well-Known Member
If you're good with things like this a arduino microcontroller with rtc, a few ssr and a few of the right sensors and you can build your own customized controller.
And since software for the most part is already coded all you'll really need to do is edit it to suit your needs.
There's a thread around here somewhere about it.
The most expensive part being the co2 sensor, temperature and humidity sensors are a dime a dozen.
Solidstate relays are pretty reasonably priced too.
The real-time clock for the arduino also dirt cheap.
 

OKLP

Well-Known Member
Everything can be monitored and controlled by an arduino, there is indeed a learning curve to this, but LOTS of tutorials, and I'm happy to help where I can. It takes some patience and minor programming, but it's FUN to work with, and can control anything you have the imagination and patience to work on.

http://arduino.cc/

I'm developing a "box" that monitors and controls EVERYTHING.

I searched through EVERY arduino based solution, and each of the promising projects seem stalled or abandoned.

I found a co2 sensor for $60 http://www.robotshop.com/ca/en/co2-sensor-arduino-compatible.html, but I know I saw the sensor itself somewhere for $10.

Stuff like temp sensors are $1 or less, the arduino itself is around $25.

Have you ever seen the "Radio Shack Electronics Kits"? Where you can build projects with spring connections quickly? It's like a step beyond that, plus a tiny chip that contains programming.

If you want to go this route, I recently ordered 1 of about every part possible. I could give you a short list and you could start with $50-200.

There is also the Raspberry Pi platform, but Arduino is VERY well suited to this type of task, and it's the size of a credit card.
 

TheMeadows

Active Member
I'm a big arduino fan too. I have 13 thermometers, 5 hydrometers, 10 little relays, 3 big contactors, 11 led's, a speaker, and a servo connected to mine. I'd suggest the mega2560 if you plan on getting creative. More i/o ports and larger memory than the smaller ones.

Here is a chart of the past 24 hours of my patio. We got rain for the first time in 4 months last night. My tent is just a few feet away from this sensor. It gets a bit warm this time of year so its vacation time.
 

TheMeadows

Active Member
Everything can be monitored and controlled by an arduino, there is indeed a learning curve to this, but LOTS of tutorials, and I'm happy to help where I can. It takes some patience and minor programming, but it's FUN to work with, and can control anything you have the imagination and patience to work on.

http://arduino.cc/

I'm developing a "box" that monitors and controls EVERYTHING.

I searched through EVERY arduino based solution, and each of the promising projects seem stalled or abandoned.

I found a co2 sensor for $60 http://www.robotshop.com/ca/en/co2-sensor-arduino-compatible.html, but I know I saw the sensor itself somewhere for $10.

Stuff like temp sensors are $1 or less, the arduino itself is around $25.

Have you ever seen the "Radio Shack Electronics Kits"? Where you can build projects with spring connections quickly? It's like a step beyond that, plus a tiny chip that contains programming.

If you want to go this route, I recently ordered 1 of about every part possible. I could give you a short list and you could start with $50-200.

There is also the Raspberry Pi platform, but Arduino is VERY well suited to this type of task, and it's the size of a credit card.

Careful of the cheap co2 sensors. They probably need to be calibrated at 2 points. One point is usually ambient levels but the second point could be tough to accurately achieve without a precalibrated sensor. When I was looking into them, $150 was about the best price for a quality sensor built on a board with the support components.
 

OKLP

Well-Known Member
I suspect that $60 one would be calibrated, it's on a breakout board with several other components, but for sure a good point about buying the standalone $10 one.
 

TheMeadows

Active Member
Are the contactors to run lights? Do you have a link to them handy?
http://www.amazon.com/Packard-C230B-Pole-Contactor-Volt/dp/B001KGSJ74/ref=sr_1_1?ie=UTF8&qid=1404599314&sr=8-1&keywords=30+amp+contactor

Most arduinos deal with 5 volts d/c.
The little relays are rated for a 10 amp inductive load but only a 5 amp resistive load (ballasts). The relays have a 5 volt d/c control input.
The big contactors are rated for a 40 amp inductive load and a 30 amp resistive load. The contactors have a 120 volt a/c control input.

So the arduino sends out a 5 volt signal to the control input of the little relay which lets the 120 line pass to the contactors control input which lets the big power flow.




Not pretty but I had most of the parts laying around.
 

god1

Well-Known Member
I'm a big arduino fan too. I have 13 thermometers, 5 hydrometers, 10 little relays, 3 big contactors, 11 led's, a speaker, and a servo connected to mine. I'd suggest the mega2560 if you plan on getting creative. More i/o ports and larger memory than the smaller ones.

Here is a chart of the past 24 hours of my patio. We got rain for the first time in 4 months last night. My tent is just a few feet away from this sensor. It gets a bit warm this time of year so its vacation time.

Hey, when I first saw that graph it reminded me of my lights out plot of RH.
Your exactly right, the Arduino was made for this kind of stuff.
 

Lord Lonnis

Well-Known Member
I just received 2 temp/RH sensors, a moisture probe, real time clock and 8 circuit 10a relays yesterday. I saw an arduino co2 meter for $50.
I work with CO2 as my profession, gas, liquid, supercritical, and solid.... I use CO2 meters and the high dollar Honywell units are easy to calibrate, flood the unit with low pressure low flow I wet gas such as nitrogen. You can do the same with a ziplock Baggie with the sensor in it....
 

OKLP

Well-Known Member
I realize that it will be different everywhere, but I often wonder where legality & building codes lie when interfacing Arduino etc with 110v electrical. Anyone know?

I THINK locally there's something about mixing 12v and 110v in any king of "box", and if I recall correctly, all that required was something not readily flammable or conductive as a divider inside the "box".
 

OKLP

Well-Known Member
Those contactors seem like they might be in many things. Know of any source to salvage? Are they in ranges, furnaces, washers or anything?
 
Top