RSS
» کار عملی 16 - درایور ترانزیستوری موتور ( پل اچ) ( یکشنبه بیست و هشتم مهر ۱۳۹۲ )
» ویژه تابستان 95 ( جمعه هفتم خرداد ۱۳۹۵ )
» کلاس های تابستان 1395 در حال شروع شدن ( دوشنبه سوم خرداد ۱۳۹۵ )
» خبرهای خوشی در راه است... ( سه شنبه بیست و پنجم فروردین ۱۳۹۴ )
» کتاب آموزشی CodeVision AVR ( یکشنبه چهارم آبان ۱۳۹۳ )
» نرم افزار CodeVision AVR ( یکشنبه چهارم آبان ۱۳۹۳ )
» نرم افزار طراحی رگولاتور ولتاژ و جریان ( یکشنبه چهارم آبان ۱۳۹۳ )
» آیا عطسه‌ نشانه صبر در انجام کارهاست؟ ( سه شنبه بیست و یکم مرداد ۱۳۹۳ )
» یادش بخیر - شبهای قدر دوران کودکی ( جمعه بیست و هفتم تیر ۱۳۹۳ )
» اطلاعیه کار آموزی ویژه تمامی رشته ها و گرایش های مهندسی ( سه شنبه بیست و چهارم تیر ۱۳۹۳ )
» پانته آ ( یکشنبه بیست و دوم تیر ۱۳۹۳ )
» العجل مولا ( جمعه بیستم تیر ۱۳۹۳ )


SIMPLE SOIL MOISTURE SENSOR – ARDUINO PROJECT

Posted by P. Marian in Arduino | 2 comments

This is a simple arduino project for a soil moisture sensor that will light up a LED at a certain moisture level. It uses Arduino Duemilanove microcontroller board. Two wires placed in the soil pot form a variable resistor, whose resistance varies depending on soil moisture. This variable resistor is connected in a voltage divider configuration, and Arduino collects a voltage proportional to resistance between the 2 wires.

Insert the 2 probes (wires, pcb) in the dry soil and measure the resistance value and then pour water and measure it again.
Use a mid value for the resistor (eg: 50kΩ for 100kΩ in dry soil and 10kΩ in wet).

The other method to find the resistor’s value is to try different values or use a potentiometer. Insert the probes into the soil that has the desired moisture when to light up the LED and signal that the plant needs water.

Adjust the potentiometer and see the point at which it starts to light. Measure the potentiomenter current value and replace it with a fixed resistor.

Arduino soil moisture sensor schematic

Description: arduino project soil moisture sensor schematic

Project source code

const int VAL_PROBE = 0; // Analog pin 0

const int MOISTURE_LEVEL = 250; // the value after the LED goes ON

 

void setup() {

    Serial.begin(9600);

}

 

void LedState(int state) {

    digitalWrite(13, state);

}

 

void loop() {

    int moisture = analogRead(VAL_PROBE);

 

    Serial.println(moisture);

 

    if(moisture > MOISTURE_LEVEL) {

        LedState(HIGH);

    } else   {

        LedState(LOW);

    }

    delay(100);

}

Source (romanian): http://www.tehnorama.ro/cum-sa-faci-o-floare-sa-te-traga-de-maneca-atunci-cand-ai-uitat-sa-o-uzi/

 



برچسب‌ها: حسین ملکی, پیام نور شیراز, مهندسی برق پیام نور شیراز, مهندسی پیام نور شیراز
دسته بندی : علمی

موضوعات
آرشیو مطالب
نویسندگان
درباره ما

    بسیجی گمنام خمینی ٍ "" و لا یحمل هذا العلم الا اهل البصر و صبر و العلم به مواضع حق ""
    و این پرچم مبارزه را جز افراد با بصیرت و صبور و آگاه به جایگاه حق به دوش نمی کشند .

    این وبلاگ متعلق به گروهی از سربازان حقیقی حضرت بقیه الله الاعظم می باشد که در عرصه جهاد علمی و فرهنگی فعالیت می کند .

    ایمیل : malekipcb@gmail.com