Homemade waterproof digital thermometer

057

Now I am playing with hydroponics in my grow box I want to monitor the temperature of my nutrient tank.  This is important too hot it can bread disease too cold it can shock your plants.  I also want to use the data to identify how ebb/flow cycles affect ambient and solution temperature (for my own nerd curiosity)

I have been thoroughly impressed with the Dallas DS18S20 temperature sensor so decided this would be a great component to use for this project and this is how you can make your own.

Materials:

  • DS18S20 temperature sensor
  • 1/2 inch plastic tubing (could go smaller but had some lying around)
  • Aquarium/food grade silicone
  • 18 gauge solid core wire (long enough to get from arduino to what you want to measure)
  • Glue gun with glue
  • Soldering iron with solder

 

Construction

Step 1: Solder the two wires to pins 1 and 2 of the DS18S20 and apply a little dab of hot glue to all of the exposed metal.  This is not entirely necessary but a small safety precaution so you don’t discover you shorted the connection during assembly.

image

052

Step 2: Cut approximately 1 inch length of plastic tubing using a utility knife

Step 3: Apply liberal amount of silicone to one end of the tubing cut in step 2.

053

Step 4: Allow silicone to set for 15 minutes and do a visual inspection for leaks. You may also try blowing very gently into the tube to check for leaks, though not too hard to create a hole in the process.

055

Step 5: Attach the DS18S20 to the tube using a drop of hot glue.  This is not entirely necessary but when trying to get a perfect watertight seal the less moving parts the better.

056

Step 6: Again apply a liberal amount of silicone to seal the top paying special attention to the area around the wires

058

Step 7: Give the silicone at least 24 hours to completely set.

Step 8: Testing.  First off the sensor may be buoyant, if this is the case carefully attach a 1/2 hose clamp or something else to help tether it down.  Next suspend in a glass of water (preferably clear) and watch for a few minutes for leaks and or bubbles. If you see bubbles try to get an much water as you can out and apply a more silicone and let set for another 24 hours

Hooking it up

This part is pretty straightforward.  Pin 1 is your ground and pin 2 is your DQ which for most people doesn’t make much sense but it is a combination power source and bus output.  To get this to work you hook up your ground (black wire) to your ground on your arduino and the red wire to digital in and 5v with 4.7K resistor between.  Sure that is very confusing so hopefully the breadboard visual below is much more helpful.

image

Writing the Code

Since I am planning on using this with my grow box controller, I will show how to use this with arduino to get some numbers.  You could look at my arduino code in the grow box controller post to get the values but in my case I need to get values from two DS18S20 temperature sensors so I found a great OneWire library which helps make your arduino code very simply.  Simple extract the two folders in the zip archive to [ArduinoPath]\hardware\libraries and enter the following code into the arduino UI:

#include <OneWire.h> #include <DallasTemperature.h> 
OneWire oneWire(8); // on pin 8 DallasTemperature sensors(&oneWire);

void setup()
{  
  Serial.begin(9600);
  // Initialize sensors
  sensors.begin();
}

void loop()
{
    sensors.requestTemperatures();
    Serial.print(“Sensor #0: “);    
    Serial.println(sensors.getTempCByIndex(0));

    Serial.print(“Sensor #1: “);
    Serial.println(sensors.getTempCByIndex(1))

    delay(100);  // wait a little time
}
 

If all goes well you should see output similar to the following (values in Celsius):

 Sensor #0: 20.3
 Sensor #1: 30.4
 Sensor #0: 20.3
 Sensor #1: 30.4
 Sensor #0: 20.3
 Sensor #1: 30.4

 

For people like me who are used to Fahrenheit you can simply use the following equation to convert Celsius to Fahrenheit:
°F = °C  x  9/5 + 32

Though I am using this for my grow box controller there are many other uses you could use this for:

  • Aquarium temperature monitoring
  • Brewing temperature monitoring
  • Weather station
  • Soil thermometer

Simple and cheap homemade ebb and flow hydroponics system

007
Though not my first hydroponic system this is is definitely a little more complicated than my last attempt of an fogger system created last year.  This time I decided to go with an Ebb and Flow system, where the concept it pretty simple, flood the planting area with water nutrients and let it drain, wait a defined amount of time and then repeat.  For this build I had a few requirements:

  • Must be inexpensive: Hey this is the cheap vegetable gardener site
  • Must be small: I have a limited space to grow and nutrients can be expensive and given what I am growing is legal don’t really need $20 basil
  • Must be safe from flooding: Though this is running in my garage, I really don’t want to come in with 10/20 gallons of water/nutrients on my floor.
  • Could be adapted for alternate hydroponic system.

Given these requirements, this is what I came up with and how I built it:

Materials

  • 18 gallon opaque Rubbermaid container (happened to have one of these around
  • 5 gallon basin — SLUGIS box from Ikea ($5.99)
  • vinyl tape (plumbers tape)
  • 1 inch hole saw
  • 1 inch threaded (diameter) to 3/4 PVC adapter
  • 3/4 inch threaded (diameter) to 1/2 in hose adapter
  • 2 3/4 inch PVC caps
  • Cheap pond/fountain pump (100 GPH)
  • 1 foot of 1/2 inch plastic tubing
  • 2 foot 3/4 inch PVC pipe (only need couple inches but smallest length I could buy)
  • aquarium/food grade silicon (optional I used this to ensure very watertight seal but found not necessary)

Construction

Take the 5 gallon basin and drill two 1 inch holes in the middle of each side.  One whole should be drilled from the top and the other should be drilled from the bottom.�
009

Take both threaded adapters and apply liberal amount of vinyl tape.
010

Screw in the 1/2 inch hose adapter from the bottom with just barely enough clearance to pop through.  When the pump stops the water will drain through this same hole.
014
For the overflow pipe, screw in the 3/4 inch PVC adapter in from the top until hand tight.
013

Take both caps and drill in a bunch of holes slightly smaller than your media.  The basic idea is you don’t want some Hydroton clay balls falling into your pump or reservoir.

Cut about 2 inches of 3/4 PVC pipe and attach to overflow and top with PVC cap with dozen or so holes in it.
007

Lastly attach the 1/2 plastic tube to your pump and place everything on top of your 18 gallon Rubbermaid tub (which fits perfectly and is very sturdy)  Fill with water nutrients and hook up your water pump to a 24 hour timer (or grow box controller)
016

004
Here is the Ebb & Flow system in action, as you can see very simple but very cheap and versatile.

LED/Christmas light projects

Just a friendly reminder to pick up some discounted LED or non-LED Christmas lights for some of my previous projects

Christmas LED Grow Box

IMG_1574

Basically take a old Rubbermaid container and drill some holes and insert lights and you have your own Christmas light LED grow box.  This worked great last year to hold my seedlings until they were ready to move into the bigger grow box in the garage.  Here are some posts on construction and updates:

Cheap LED Light and Grow Box
Christmas light LED grow box – Update #1
Christmas light LED grow box – Update #2

Supplemental Christmas LED Light

IMG_0360

Similar idea to the LED grow box, though used in addition to your normal grow lights for a little additional red wavelength light, see posts below for complete construction directions:

Make your own supplemental LED grow light

Heating row tunnels (or grow box) with non-LED lights

Replacing your old Christmas lights with LEDs to save on your electricity bill?  You can use your old regular old Christmas lights to heat your row tunnels to increase the temperature by about 10 degrees to help get your plants out a ahead of schedule.  I have been using some of mine in my grow box to help during some of our colder nights this winter.

Heating row tunnels and grow box with Christmas lights

EcoSmart Garden Insect Control Review and Giveaway

One of the major disadvantages to growing plants indoors is the lack of beneficial insects.  In a larger environment like a greenhouse you could release some ladybugs to initiate an aphid slaughter though the thought of 1500+ ladybugs investing my garage where my grow box resides does not seem like a good idea.  I am always open to trying out new products so when EcoSmart contacted me if I was interested in trying out their garden insect control products I jumped at the opportunity.

ecoSmartI explained the problems I have with pests in my indoor growing and they suggested “Garden Insect Killer” Their documentation states, “Kills and repels garden insects and mites. Kills exposed eggs, larvae and adult stages.”  This seemed to be exactly what I was looking for so once the first onset of pests arrived I applied liberally to tops and bottoms of leaves and so far the results are great.  Not only were this effective on the little buggers, given the selection of Rosemary, Peppermint, Thyme, Clove oils it actually makes the garage smell pretty nice as an added bonus.

Want to try this out for yourself the great people at EcoSmart have offered to give away a bottle of any of their products.  So under normal rules, enter a comment and a winner will randomly be selected and sent a bottle of their choice.  Comment must be submitted by Friday, December 18th 2009 at midnight (Pacific) to be considered for the drawing.  Good luck.

Heating row tunnels and grow box with Christmas lights

image

Currently it is 16 degrees outside and given my grow box containing jalapeno peppers is in my unheated detached garage, which can bring some challenges.  Like most plants, peppers will continue to grow in the range of 60 to 90 degrees, but thrive in 70 to 90 degrees.  With the lights on the grow box gets to about 60 degrees but drips to the 50’s at night.  This will result in plants having stunted growth and begin dropping blossoms before they can start bearing fruit.

My solution, a string of green mini Christmas lights.  Just to clarify these are your typical small bulb Christmas lights not LEDs, given the efficiency of LEDs they do not product much extra heat which is what I am going for here. I also chose green Christmas lights because plants do not absorb this wavelength very well so they can be left on at night to keep heating while still letting the plants “sleep”. 

Of course results will vary depending on the size of your grow box or outside row tunnel, insulation, and exterior temperature, but I am seeing 8-10 degree increase in temperature with a single string (50 bulbs)

I am always open to new ideas to safely, cheaply and efficiently heat my grow box or row tunnel so if anyone has any other suggestions please add a comment.

Best DIY cheap soil moisture sensor

cheap soil moisture sensor

My first version of my cheap soil moisture sensor has worked great for me but it did have a couple flaws.  The first issue was construction, though I had great luck on my first attempt though after trying to recreate additional sensors given the small amount of gypsum between the sensor and the probes were so thin it was extremely easy to crack the sensor and I normally have about a 25% success rate on later creations (must have had beginners luck on the first one.

The second issue was durability.  Given we are playing with gypsum and as it is suspended in water it will eventually breakdown and there is very little we can do about it.  Though with my latest changes to my automated grow box which includes automated watering based on moisture content I want to ensure my measurements stay accurate throughout the season.  To help with this I have decided to increase the sensors size and also am using galvanized nails to prevent rusting.  After a few attempts I have come up what I feel is a pretty foolproof method of creating a moisture sensor.

How it works:

There were many questions in the comments in the previous post so hopefully I can clear this up a little here.

soilSensor

 

Technically a gypsum block measures soil water tension.  When the gypsum block is dry it is not possible for electricity to pass between the probes, essentially making the probe an insulator with infinite resistance.

As water is added to the problem more electrons can pass between the probes effectively reducing the amount of resistance between the problem to the point when it is fully saturated where the probe has virtually zero resistance.  By using this range of values you can determine the amount of water than exists in your soil.

Parts for cheap soil moisture sensor:

IMG_4578

Construction:

Take your utility knife and cut the tubing slightly longer than your galvanized finishing nails.  Try to make the cut as straight as possible though it doesn’t have to be completely perfect.

IMG_4579

Use your utility knife to cut the smaller plastic tube lengthwise, this will allow easier removal of your soil sensor after the mold cures.

IMG_4580

Optional: Make the cut diagonally to prevent a potential vertical fracture line.

IMG_4581

If you were very careful on you vertical cuts you can avoid this step, but to completely avoid spilling plaster onto my workbench I drilled four holes slightly larger than your tubing.  I used these holes for support but also to catch any of the plaster in the gaps from you less than accurate vertical cuts.

IMG_4582

Being careful that the tubing fits together where you split the tubing vertically, insert the tubes into the holes (or carefully on a flat surface)  Mix Plaster of Paris and carefully fill with to the top.  The friction between the tubing should keep a water tight seal where you made the cut, though if the plaster is a little thin and it appears to be leaking through wait a couple minute for the plaster to setup some and try again, at that time it should not have the viscosity to seep through the very small gap that may be causing the leak.

IMG_4584

Take your two galvanized nails and push them through a small piece of wax paper.  You may also allow the plaster to setup for a few minutes and then float the nails in the the plaster.  I like the first method since gravity will help ensure they fall straight down and parallel to each other.  As for spacing, I have done some experimentation with the gaps between the probes and my conclusion was, it doesn’t make much difference.  As long as there is a gap (they are not touching) you should get reliable results.

IMG_4586

After allowing the sensor to cure for about and hour remove it from the holes you drilled in the wood.

IMG_4587

Gently pull back the plastic tubing and you have a nice clean soil sensor.

IMG_4588

Lay them out to dry for 24 hours to cure completely and their construction is complete.

Cheap soil moisture sensor

For attaching the wires there are a couple options.  The best would be to solder them to the probes though to do this you need to heat up the nail hot enough to enable a strong solder connection.  My little 15W soldering iron just can’t produce the heat for this so I am option for the wire wrap method.  I take about an inch of wire and strip off about an inch of insulation and tightly wrap around the probe.  Given copper will rust and could be a point of failure you will want to insulate this connection and the probes from the moisture.  A few dabs of hot glue works pretty well.  I am planning on trying liquid plastic, though I am currently out and when I have some on hand I will update with how it went.

How to use your cheap soil moisture sensor

You can simply hook up a multi-meter and check the resistance though if you want to create anything automated you would need to use an integrated circuit (IC) or a electronics prototyping platform such as Arduino.  By applying voltage to one side of the sensor and using a voltage splitting circuit connected to ground and an analog input you can then measure the voltage making it through the probe.  The higher the voltage, the higher the moisture content of the soil.

SoilSensorDiagram

Conclusion

The above should give you everything you need to know to create your own cheap soil moisture sensor and how to use it.  This can be used as a moisture soil sensor for watering your indoor plants like I am using it.  This same moisture sensor could be for monitoring your outside soil moisture content to trigger (or preempt your irrigation system) to save some money on your water bill and/or maintain consistent moisture levels in your plants which could drastically improve water sensitive crops such as tomatoes.

IKE