Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Goals of this project

We will create and field test a farmer-built electronic tool that can monitor greenhouse temperature, record greenhouse data, and alert the farmer to problems in the greenhouse via cell phone text message. This tool will be much more affordable and useful than commercially available greenhouse alarms (which rely on landline connections or internet connections, which usually aren’t available in the greenhouse). The tool will be created through a partnership between a farm and two consultants with expertise in electronics development and software programming. Once developed, the tool will be field tested by several farmers, to ensure that it is accessible and appropriate for various operations. Once we’ve got it right, we will do outreach to ensure that many other farmers can benefit from this useful and economical tool. The project will also leave open possibilities for future developments: while this tool will be simple, straightforward and approachable for farmers, it will also be flexible and robust enough that more technically inclined farmers could add features to it for greater functionality, such as turning on or off greenhouse fans, monitoring soil moisture and humidity, or monitoring produce storage facilities.

Bill of Materials: | Item | Cost | | ------------- | ------------- | | Arduino UNO | $30 | | Datalogging Shield | $20 | | 10K Precision Epoxy Thermistor |$4| |SD Card 1GB or more|$2| | Enclosure | $12| | 9V Power Supply | $6 | |Phone Related| | | Motorola C168i + SIM Card | $30 | | 3/32 Minijack | $4 | | Logic Shifter | $1| |Back-up Battery| | | Backup 9V Adapter | $6 | |2 Diodes|$1.50| |2 DC barrel jacks|$2|

##How to Build (v0.25)##


  1. Download Arduino IDE v1.0 and the libraries that we will need:

    • Fido library
    • SD (replace the default one) and RTC library from Adafruit
    • GSMSerial library Some of these libraries are still getting tweaked quite often, but once we have some stable versions we'll offer a single zip file download for all of them

    An IDE is an "Integrated Development Environment," or in plain english, it has everything you need to program your Arduino. The full tutorial is available on the Arduino site but here is a quick conceptual summary.

    In this environment, you will be writing code in C++. There is an upload button which automatically "compiles" your code (turns it into processor code) and then uploads it to your Arduino. If you are working on your code for a while, it is helpful to compile it periodically to catch syntax errors as you make them. If all this is overwhelming, don't worry. You don't need to write any code for this project and all you have to do is learn how to upload code!

    Your IDE also keeps all your "libraries" in order. Libraries are pieces of already written code that you can call on when writing your Arduino program. They are usually device specific, so for example, with Fido we use a library that was specially written for a cell phone and another for the data logging shield. These are all kept in the libraries folder (not to be confused with lib) in the Arduino file and your Arduino IDE discovers them each time you launch it. You'll need to put the libraries in the downloadable zip file in your Arduino folder.

    Finally, before your IDE will be able to see your Arduino, make sure your computer recognizes it! There are device drivers included in the Arduion folder and if you have trouble, refer to the Arduino web site.

  2. Activate SIM card and load with text messages

    We are using the Motorola C168i because of the 3/32 stereo jack connection - it's really easy to make the Arduino interface with it but sadly most modern cell phone don't use that kind of connection anymore.

    You will need a SIM card for your C168i if you don't yet have one. Unless you specifically sought out an unlocked one, your phone will most likely be locked to the AT&T network and you will need one of their SIM cards which can be purchased on their site. You may also be able to find one in their stores (to be confirmed) and you can definitely find them at Radioshack (just buy their cheapest Go Phone and it will be included). When activating it, I recommend the 10c/min plan, and that you simply buy text message packages that are valid for 30 days ($5 for 200, $10 for 1000).

    Also, since we will be leaving our cell phone charging most of the time, you'll benefit from going into the settings and silencing the phone so as not to get beeped at every few minutes.


  1. Assemble Adafruit data logging shield following their easy tutorial Notes: 1. If you don't have a vise, laying the board down on some bricks or anything other similar setup should do the trick 2. You do not need to solder the RTC clock mount if you don't want to 3. You should wire a jumper between pins 2 and 3 and the LED holes right next to them if you want them to blink (I recommend clippings from the legs of a diode to do so)

  2. Make the wire to connect your cell phone to your Arduino

  3. Connect the cell phone and thermistor to shield

  4. Build your back-up battery

  5. Upload the Fido sketch to the shield and program via text message!

##Documentation To-Do## 1. Why the phone and how to get a SIM card (10c/min), silencing phone 2. Make little changes to Adafruit tutorial: jumper LED's, RTC clock without mount wrote notes instead 3. Explain Integrated Development Environment, Arduino drivers, and how to install libraries 4. Temperature sensor intro (-55-105C) 5. Include picture for build step 1, note 1 6. Ammend wire tutorial to include logic shifter instead of voltage divider