KS0510 Keyestudio New Type Soil Humidity Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(4 intermediate revisions by the same user not shown)
Line 40: Line 40:
== Connection Diagram ==
== Connection Diagram ==


<br>[[File:0510-2.png|500px|frameless|thumb]]<br>
<br>[[File:0510-5.png|500px|frameless|thumb]]<br>


== Test Code ==
== Test Code ==
Line 71: Line 75:


Upload code to the control board, power up with a USB cable and set baud rate to 9600.
Upload code to the control board, power up with a USB cable and set baud rate to 9600.
Insert this sensor into water and keep liquid level below the white warning line( the depth is taken as the depth of inserting into the soil. Record the detected analog value that represents 100% humidity.
Insert this sensor into water and keep liquid level below the white warning line [[File:0510-4.png|50px|frameless|thumb]] (the depth is taken as the depth of inserting into the soil. Record the detected analog value that represents 100% humidity.


The output value is minimum in the water, that is, humidity is not proportion to value. As shown below:
The output value is minimum in the water, that is, humidity is not proportion to value. As shown below:
<br>[[File:0510-3.png|500px|frameless|thumb]]<br>

Revision as of 10:51, 25 August 2021

Description

This new type capacitive soil humidity sensor differs from other resistive sensors, adopting capacitive sensing principle to detect soil humidity.

It is divided into the signal end and the detected end. When it is inserted into soil, the signal end will output analog value. The segmented the wire connection and casing pipe enhance its waterproof performance.




Since the circuit is not exposed at the detected end, the corrosion problem of sensor is avoided, extending life expectancy.

The built-in chip supports 3.3~5.5V working environment, Arduino, ESP32, micro:bit and controller. As to mini PC, you need an ADC module (analog signals are converted into signals)



Parameters

  • Control chip: TLC555
  • Communication interface: output analog value
  • Rated voltage: 3.3 ~ 5.5 VDC
  • Output voltage: 0 ~ 3.0 VDC
  • Working current: <5mA
  • Product size: signal end: 31.6mmx23.7mm
  • Detection end: 23.8mm*83mm
  • Operating temperature range: 1°C ~ 50°C



Schematic Diagram


thumb

Connection Diagram


thumb



thumb

Test Code


//*****************************************************************************
void setup() {
 
 Serial.begin(9600); //set baud rate to 9600
 
}
 
void loop() {
 
 int val;//define the function val
 
 val = analogRead(A0); //set the analog value detected by the soil sensor to val
 
 Serial.println(val); //serial port prints out the analog value detected by soil humidity sensor
 
 delay(500);//delay in 0.5s
 
}
//*****************************************************************************


Test Result

Upload code to the control board, power up with a USB cable and set baud rate to 9600. Insert this sensor into water and keep liquid level below the white warning line thumb (the depth is taken as the depth of inserting into the soil. Record the detected analog value that represents 100% humidity.

The output value is minimum in the water, that is, humidity is not proportion to value. As shown below:



thumb