Ks0107 keyestudio EASY plug Water Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 9: Line 9:
* low power consumption and high sensitivity;<br>
* low power consumption and high sensitivity;<br>
* directly connected to microprocessor or other logic circuits, suitable for a variety of development boards and controllers such as Arduino controller, STC single-chip microcomputer, AVR single-chip microcomputer, etc.<br>
* directly connected to microprocessor or other logic circuits, suitable for a variety of development boards and controllers such as Arduino controller, STC single-chip microcomputer, AVR single-chip microcomputer, etc.<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>
==Features ==
==Features ==
* Connector: Easy plug
* Connector: Easy plug
Line 33: Line 39:
<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:ks0397 18.1.png|500px|frameless|thumb]]<br>
int analogPin = 1; //connect water sensor to analog interface 1
int led = 13; //LED to digital interface 13
int val = 0; //define the initial value of variable ‘val’ as 0
int data = 0; //define the initial value of variable ‘data’ as 0
void setup()
{
pinMode(led, OUTPUT); //define led as output pin
Serial.begin(9600); //set baud rate at 9600
}
void loop()
{
val = analogRead(analogPin); //read and assign analog value to variable ’val’
if(val>700){ //decide whether variable ‘val’ is over 700
digitalWrite(led,HIGH); //turn on LED when variable ‘val’ is over 700
}
else{
digitalWrite(led,LOW); //turn off LED when variable ‘val’ is under 700
}
data = val; //variable ’val’ assigns value to variable ‘data’
Serial.println(data); //print variable ‘data’ by Serial.print
delay(100);
}
</pre>


<br>
<br>
==What You Should See==
==What You Should See==
<br>[[File:ks0397 18-1.png|600px|frameless|thumb]]<br>
Hook it up and upload well the code, you will see the led light on the water sensor light up, then open the serial monitor, you will see the analog value.<br>
Hook it up and upload well the code, you will see the led light on the water sensor light up, then open the serial monitor, you will see the analog value.<br>
When place the sensing area of sensor into the water, you can see the data change. The deeper the sensor’s sensing area into water, the greater the value. <br>
When place the sensing area of sensor into the water, you can see the data change. The deeper the sensor’s sensing area into water, the greater the value.
<br>[[File:ks0107 Result.jpg|500px|frameless|thumb]]  [[File:ks0107 Result1.gif|600px|frameless|thumb]]<br>
<br>[[File:ks0107 Result.jpg|500px|frameless|thumb]]  [[File:ks0397 18-2.png|500px|frameless|thumb]]<br>
 
<br>
 
==Extension Experiment==
 
<span style=color:brown> <big>'''Adding LCD Display'''</big> </span><br>
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug water level sensor and LED module to control board using an RJ11 cable. <br>
<br>[[File:water.jpg|500px|frameless|thumb]]<br>
 
<br>
'''Test Code'''<br>
Below is an example code.
<br>[[File:ks0397 18.2.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
<br>[[File:ks0397 18-3.png|600px|frameless|thumb]]<br>
<br>
Upload success, you should be able to see the analog value is showed on the LCD screen.  
<br>[[File:ks0397 18-4.png|600px|frameless|thumb]]<br>
 
<br>
<span style="color: red">'''Little Knowledge:'''</span> <br>
* Remember you can adjust the contrast by rotating a blue potentiometer on the LCD back if you can’t make out the words clearly.
<br>[[File:ks0397 14-6.png|500px|frameless|thumb]]<br>
 


<br>
<br>
Line 69: Line 82:
==Resources ==
==Resources ==


'''Download the PDF:'''<br>
https://fs.keyestudio.com/KS0107
https://drive.google.com/open?id=1CNYcY3tkdZEZRxKTc3expWOSYqKWBBf_


<br>
<br>


==Buy from ==
==Buy from ==
*'''Official Website:''' http://www.keyestudio.com/ks0107.html
*[https://www.keyestudio.com/keyestudio-easy-plug-water-sensor-module-for-arduino-steam-p0077-p0077.html '''Official Website''' ]


*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-Water-Sensor-Module-for-Arduino/1452162_32638908834.html?spm=2114.12010612.8148356.36.24f04ba7BzGy0M  '''Shop on Aliexpress''']
*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-Water-Sensor-Module-for-Arduino/1452162_32638908834.html?spm=2114.12010612.8148356.36.24f04ba7BzGy0M  '''Shop on Aliexpress''']


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

Latest revision as of 15:57, 7 January 2021

Keyestudio EASY plug Water Sensor

Introduction

This sensor is easy-to-use, portable and particularly designed to identify and detect water level and water drop.
It can measure the volume of water drop and water quantity through an array of traces of exposed parallel line.
This sensor is small and equipped with the following features:

  • smooth conversion between water quantity and analog quantity;
  • strong flexibility, outputting analog value;
  • low power consumption and high sensitivity;
  • directly connected to microprocessor or other logic circuits, suitable for a variety of development boards and controllers such as Arduino controller, STC single-chip microcomputer, AVR single-chip microcomputer, etc.


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
  • Operating voltage: DC5V
  • Operating current: <20mA
  • Sensor type: Analog
  • Detection area: 40mm x16mm
  • Production process: FR4 double-side tinned
  • Operating temperature: 10%~90% without condensation
  • Production process: FR4 double-side tinned


Technical Details

  • Dimensions: 68mm*20mm*18mm
  • Weight: 5.7g


Connect It Up

Connect the EASY Plug water level 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

Hook it up and upload well the code, you will see the led light on the water sensor light up, then open the serial monitor, you will see the analog value.
When place the sensing area of sensor into the water, you can see the data change. The deeper the sensor’s sensing area into water, the greater the value.
thumb thumb


Extension Experiment

Adding LCD Display

Hookup Guide
Connect the EASY Plug water level sensor and LED module to control board using an RJ11 cable.

thumb


Test Code
Below is an example code.
thumb


What You Should See

thumb

Upload success, you should be able to see the analog value is showed on the LCD screen.
thumb


Little Knowledge:

  • Remember you can adjust the contrast by rotating a blue potentiometer on the LCD back if you can’t make out the words clearly.


thumb



Resources

https://fs.keyestudio.com/KS0107


Buy from