Guardian of the Garden

by Explaining Today in Living > Gardening

11726 Views, 133 Favorites, 0 Comments

Guardian of the Garden

2015111121456.jpg

Gardening is one of the most relaxing hobbies or work to do, and also helps make the indoor look really good.

STEP 1: INDOOR GARDENING BASICS

1) To cultivate any plant any plant a basic know how is required.

2) Depending on what type of plant you want to grow the conditions needed for the support and growth of the plant varies.

3) the major factors affecting the growth of the plant are:

i) Light

ii) Water

iii) humidity

4) Hence to provide the plant with almost care and consideration,use of technology is deployed.

5) In this build we can constantly monitor progress and growth of the plant.

STEP 2 : REQUIRED

2015112173100.jpg
Screenshot_2015-01-11-20-00-34.png
2015111211721.jpg
2015110143349.jpg
2015111211030.jpg
2015111195838.jpg
2015112020900.jpg
2015111195256.jpg
2015111214049.jpg
2015111223359.jpg

To make this build the materials required are :

1) Arduino uno - 25$

2) LM35 (temperature sensor) - .80$

3) LDR ( light sensor) - 0.08$

4) Galvanized nail (humidity sensor) - 0.25$

5) LEDs - 0.02$

6) Buzzer - 0.9$

7) 330 ohm resistors - 0.01$

8) Jumper cables - 1$

9) Wires - .8$

10) Breadboard - 2$

11) Miscellaneous - 2$

The whole build can be done with a budget of 30$ or less.

STEP 3: ABOUT PLANT

2015111121456.jpg
3QT8QbtU8MEL4DQUKffLS6RK.jpg
0JCHPe90KgfH0e0YfAEFTLNL.jpg
HL8V8X507aSK4LR15NfJX3AH.jpg

Finding out about the type of plant that is to be planted..corresponding values should be determined..

Suggested : google it.

STEP 4: SENSORS

2015111081355.jpg
ldrarduino.jpg
environmentalmonitorfritzing_bb3.png

The sensors play a very important role in determining the values..

As the temp can be determined using Lm35

similarly value of light can be determined using LDR

To measure soil moisture content...

A soil moister content sensor can be used or it can be a homemade sensor(as it is used in this build).

Making the sensor :

use two galvanized nails..place them in the soil, connect one end to +5v and other to GND and analogpin..A0, with a 10k resistor.

insulate the the nails with an insulating tape avoiding shorting.

Hence finishing the sensor.

STEP 5: CONFIRMING VALUES

Use a test code and determine the soil light and temp around the plant.

STep 6 : Code

/*---------------------------------------------------------------

GARDENING

----------------------------------------------------------------*/

//initializing sensor pins

int light_sensor = A0;

int humidity_sensor = A2;

int temperature_sensor = A1;

//initializing LED pins or OUTPUT pins//

int light_led = 13;

int humidity_led = 12;

int temperature_led = 11;

//initializing buzzer(optional since it used to alert the user

int buzzer = 10;

//initializing input values for sensor pins//

int light_sensor_value=0;

int humidity_sensor_value=0;

float temperature_sensor_value;

void setup()

{

Serial.begin(9600); //for trouble shooting or checking values

pinMode(light_led,OUTPUT);

pinMode(humidity_led,OUTPUT);

pinMode(temperature_led,OUTPUT);

pinMode(buzzer,OUTPUT);

}

void buzz()

{

digitalWrite(buzzer,HIGH);

delay(200);

digitalWrite(buzzer,LOW);

delay(200);

}

void loop()

{

//reading the values of the sensor pins

light_sensor_value=analogRead(light_sensor);

humidity_sensor_value=analogRead(humidity_sensor);

temperature_sensor_value=analogRead(temperature_sensor);

// calibrating the LM35 or temperature sensor

temperature_sensor_value = temperature_sensor_value * 0.48828125;

// checking the values via serial monitor

Serial.print("light=");

Serial.print(light_sensor_value);

Serial.print("\thumidity=");

Serial.print(humidity_sensor_value);

Serial.print("\ttemp=");

Serial.print(temperature_sensor_value);

Serial.print("*C");

Serial.println();

delay(100);

// writing conditions to alert the user

if(light_sensor_value<=100)

{

digitalWrite(light_led,HIGH);

buzz();

}

else

digitalWrite(light_led,LOW);

if(humidity_sensor_value<200||humidity_sensor_value>=800)

{

digitalWrite(humidity_led,HIGH);

buzz();

}

else

digitalWrite(humidity_led,LOW);

if(temperature_sensor_value<18||temperature_sensor_value>25)

{

digitalWrite(temperature_led,HIGH);

buzz();

}

else

digitalWrite(temperature_led,LOW);

delay(50);

}

STEP 7 : CONNECTIONS

2015112004256.jpg
2015112024519.jpg
2015112025407.jpg
2015112025856.jpg
2015112031519.jpg

Here in this build..the connections of sensors and the indicators are done on a breadboard ...for simplicity and ease of understandings.

And the build is almost done.

FINAL

2015112040433.jpg
2015112040458.jpg
2015112040525.jpg
2015112040541.jpg
HL8V8X507aSK4LR15NfJX3AH.jpg

If the plant is placed away from the room or is unable to receive electrical input a 9v battery can be made use of. As both serve the same purpose i.e it watches over the plant like a guardian...

Well....Happy gardening.