meenakshi311 / Smart-irrigation-using-Gold-nanoparticle-based-Humidity-sensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart-irrigation-using-Gold-nanoparticle-based-Humidity-sensors

Aim

The Smart Irrigation System using Gold Nanoparticle Printed Humidity Sensors is a cutting-edge technological solution designed to optimize the irrigation process in agricultural practices. This system utilizes humidity sensors based on gold printing technology to accurately measure the relative humidity of the environment. By monitoring and analyzing the humidity levels, the system determines the optimal time to water the crops, conserving water resources and promoting efficient plant growth.

Working

The system consists of a humidity sensor connected to an Arduino board. The humidity sensor measures the resistance across its terminals, as resistance decreases, conductance increases; Water, being a good conductor will lower the resistance of the humidity sensor and it is this value that is then converted into a humidity value using a calibration algorithm. The gold printed humidity sensors offer high sensitivity and reliability, ensuring accurate readings in various environmental conditions.

Circuit Diagram

image

Connections

Connect GND, VCC pins of Humidity sensor to GND, VCC of Arduino respectively. The analog input of the Sensor is connected to A1 pin. Connect the positive and negative terminals of the battery to the relay. VCC of relay to 5V of Arduino. Also, connect the terminals of relay to the DC motor.

Algorithm

  1. Define the necessary constants for pin assignments and sensor ranges.
  2. Initialize the output_value variable.
  3. Enter the setup() function:
    o Configure the pump_pin as an output pin.
    o Begin serial communication.
    o Print an initialization message.
    o Add a delay of 2 seconds.
  4. Enter the calculateHumidity() function:
    o Accept the resistance value as input.
    o Map the resistance value to the humidity range.
    o Constrain the humidity value within the defined range.
    o Return the calculated humidity.
  5. Enter the loop() function:
    o Read the analog value from the sensor_pin and store it in the output_value variable.
    o Map the output_value to a resistance value using the specified ranges.
    o Calculate the humidity using the resistance value by calling the calculateHumidity() function.
    o Check if the output_value is greater than the threshold (600.00):
     If true, turn on the water pump by setting the pump_pin to HIGH, wait for 3 seconds, and then turn it off by setting the pump_pin to LOW.
     If false, turn off the water pump by setting the pump_pin to LOW.
    o Add a delay of 1 second before the next iteration of the loop.

Results

  1. It has been observed that humidity sensors as susceptible to changes in the environmental conditions, for example – the soil sample kept in 29˚C gives different readings of humidity than the same sample kept at air conditioned weather settings at 24˚C.
  2. The readings vary constantly in a very small range even under steady conditions.
  3. Calibration of the sensor played a massive role in understanding its operation and output resistance range.

About


Languages

Language:C++ 100.0%