Soil Measurement dengan FC-28

Overview

Hari ini kita akan bereksperiment dengan  Soil moisture sensor FC-28 yang diinterfacekan ke  Arduino. Sensor ini mengukur berapa banyak air dalam tanah dalam volumetric.

Jika terdapat banyak air, maka sensor ini akan mengalirkan electricity sehingga resistance berturun, sehingga level moisture akan tinggi.

Specifications

The specifications of the soil moisture sensor FC-28 are as follows:
Input Voltage 3.3 – 5V
Output Voltage 0 – 4.2V
Input Current 35mA
Output Signal Both Analog and Digital

Pin Out – Soil Moisture Sensor

The soil Moisture sensor FC-28 has four pins

VCC: For power
A0: Analog output
D0: Digital output
GND: Ground


where to buy
what we need
Schematic, frizting


Program

int sensor_pin = A0;

int output_value ;

void setup() {

   Serial.begin(9600);

   Serial.println("Reading From the Sensor ...");

   delay(2000);

   }

void loop() {

   output_value= analogRead(sensor_pin);

   output_value = map(output_value,550,0,0,100);

   Serial.print("Mositure : ");

   Serial.print(output_value);

   Serial.println("%");

   delay(1000);

   }

Demonstration
Next Project

Leave a Reply

Your email address will not be published. Required fields are marked *