Skip to content

maliarich/Soil-moisture-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Soil-moisture-tester

A soil moisture prototype

Soil moisture project/ sensor measures the volumetric water content in soil.

Objective

This project is to help farmers and households to keep track of their moisture content of the soil in their farms and kitchen garden respectively within the Refugee camps.

Features of the project

Works with a battery (7v) and solar panels

Digital counter of :-

  3 displays “Low /dry moisture level 
  
  6 displays “ Moderate moisture level 
  
  9 displays “ High moisture level
  1. Buzzer for sound – This Bips when there is high moisture level

  2. Light weight.

Expected Improvements

  • Casing

Adjustments in accuracy

Soldering components on soldering Board.

photo_2022-03-28_14-37-18

photo_2022-03-28_14-37-47

Images.

The three stages of the soil moisture level.

*DRY

photo_2022-03-28_14-38-28

Mid - Moistured

photo_2022-03-28_14-38-34

Most - Moistured

photo_2022-03-28_14-38-44

photo_2022-03-28_14-31-33

Codes


int b =12;

int c =11;

int d =10;

int e = 9;

int f = 8;

int g = 7;

int sound =6;

void setup() {
  // put y  
  
  pinMode(a,OUTPUT);
  
  pinMode(b,OUTPUT);
  
  pinMode(c,OUTPUT);
  
  pinMode(d,OUTPUT);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
  pinMode(e,OUTPUT);
  
  pinMode(f,OUTPUT);
  
  pinMode(g,OUTPUT);
  
 pinMode(sound,OUTPUT);
 
}
void loop() {
  // put your main code here, to run repeatedly:
  
  int value = analogRead(A5);   
  
  Serial.println(value);
  
  if(value>500){
  
    digitalWrite(a,HIGH);
    
    digitalWrite(b,HIGH);
    
    digitalWrite(c,HIGH);
    digitalWrite(d,HIGH);
    digitalWrite(e,LOW);
    digitalWrite(f,HIGH);
    digitalWrite(g,HIGH);
    digitalWrite(sound,HIGH);
    delay(2000);
    digitalWrite(sound,LOW);
    }
  else if(value<500&value>300){
     digitalWrite(a,HIGH);
    digitalWrite(b,LOW);
    digitalWrite(c,HIGH);
    digitalWrite(d,HIGH);
    digitalWrite(e,HIGH);
    digitalWrite(f,HIGH);
    digitalWrite(g,HIGH);
    
   
  }
else{
   digitalWrite(a,HIGH);
    digitalWrite(b,HIGH);
    digitalWrite(c,HIGH);
    digitalWrite(d,HIGH);
    digitalWrite(e,LOW);
    digitalWrite(f,LOW);
    digitalWrite(g,HIGH); 
}
}```


About

A soil moisture prototype

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published