Ks0108 keyestudio EASY plug Soil Humidity Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance).<br>
More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance).<br>
If you use this sensor to make an automatic watering device, it will be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden. <br>
If you use this sensor to make an automatic watering device, it will be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden. <br>
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br>
This module should be used together with EASY plug control board.<br>
 
<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
 
<br>
<br>


Line 29: Line 33:
<br>
<br>
==Upload the Code==
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.  
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<pre>
<br>[[File:ks0398 17.1.png|600px|frameless|thumb]]<br>
/*
# Example code for the moisture sensor
# Connect the sensor to the A0(Analog 0) pin on the control board
# the sensor value description
# 0 ~300    dry soil
# 300~700    humid soil
# 700~950    in water
*/
void setup(){
Serial.begin(57600);
}
void loop()
{
Serial.print("Moisture Sensor Value:");
Serial.println(analogRead(0));
delay(100);
}
</pre>


<br>
<br>
==What You Should See==
==What You Should See==
Done uploading the code, open the serial monitor and set the baud rate to 57600, you can see the analog value is 0.  
<br>[[File:ks0398 17-1.png|600px|frameless|thumb]]<br>
<br>
Done uploading the code, open the serial monitor and set the baud rate to 9600, you can see the analog value is 0. <br>
When place the two probes of moisture sensor into your plant soil, you can see the value change.  
When place the two probes of moisture sensor into your plant soil, you can see the value change.  
<br>[[File:ks0108 Result.png|500px|frameless|thumb]] [[File:ks0108 Result1.png|600px|frameless|thumb]]<br>
<br>[[File:ks0108 Result.png|600px|frameless|thumb]]
<br>[[File:ks0398 17-2.png|600px|frameless|thumb]]<br>
 
<br>
==Adding OLED Display==
If you want to display the soil moisture value more convenient, you can add  OLED screen.<br>
<br>
'''Hookup Guide'''<br>
<br>[[File:OLED土壤.jpg|600px|frameless|thumb]]<br>
 
<br>
'''Test Code'''<br>
<br>[[File:ks0398 17.1.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
Upload success, you should see the soil value is showed on the OLED screen.
<br>[[File:ks0398 17-3.png|600px|frameless|thumb]]<br>
<br>


<br>
<br>


==Resources ==
==Resources ==
'''Download the PDF:'''<br>
https://drive.google.com/open?id=1JrTm-3rfxD5muub6ko8vbE22hlapMArF


'''Download the Code:'''<br>
https://fs.keyestudio.com/KS0108
https://drive.google.com/open?id=1S9uB6HABBqD2WB0gwBvMGY2AQwGSGYve




Line 69: Line 72:


==Buy from ==
==Buy from ==
'''Official Website'''<br>
*[https://www.keyestudio.com/new-keyestudio-rj11-easy-plug-soil-humidity-sensor-module-for-arduino-steam-p0082-p0082.html    '''Official Website''' ]
http://www.keyestudio.com/keyestudio-easy-plug-soil-humidity-sensor-module-for-arduino.html
 
*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-Soil-humidity-Sensor-Module-for-Arduino/1452162_32637462719.html?spm=2114.12010612.8148356.16.361557f6MHH2BI  Shop on aliexpress ]
 




[[category:EASY Plug]]
[[category:EASY Plug]]

Latest revision as of 15:58, 7 January 2021

Keyestudio EASY plug Soil Moisture Sensor

Introduction

The EASY Plug soil moisture sensor can read the amount of moisture present in the soil surrounding it. It's an ideal for monitoring an urban garden, or your pet plant's water level.
This soil moisture sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the moisture level.
More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance).
If you use this sensor to make an automatic watering device, it will be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Features

  • Connector: Easy plug
  • Power Supply: 3.3V or 5V
  • Working Current: ≤ 20mA
  • Output Voltage: 0-2.3V
  • Sensor type: Analog output
  • Surface finish: immersion tin


Technical Details

  • Dimensions: 66mm*20mm*18mm
  • Weight: 4.8g


Connect It Up

Connect the EASY Plug soil sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See


thumb

Done uploading the code, open the serial monitor and set the baud rate to 9600, you can see the analog value is 0.
When place the two probes of moisture sensor into your plant soil, you can see the value change.
thumb
thumb


Adding OLED Display

If you want to display the soil moisture value more convenient, you can add OLED screen.

Hookup Guide

thumb


Test Code

thumb


What You Should See
Upload success, you should see the soil value is showed on the OLED screen.
thumb


Resources

https://fs.keyestudio.com/KS0108



Buy from