Ks0107 keyestudio EASY plug Water Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug Water Sensor ==
[[image:ks0107图.jpg|thumb|600px|right|Keyestudio EASY plug Water Sensor]]
<br>[[File:ks0107-1.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
Our water sensor is easy- to-use, portable and cost-effective, designed to identify and detect water level and water drop. This sensor measures the volume of water drop and water quantity through an array of traces of exposed parallel wires. Compared with its competitors, this sensor is not only smaller and smarter but also ingeniously equipped with following features:<br>
This sensor is easy-to-use, portable and particularly designed to identify and detect water level and water drop. <br>
i) smooth conversion between water quantity and analog quantity;<br>
It can measure the volume of water drop and water quantity through an array of traces of exposed parallel line. <br>
ii) strong flexibility, this sensor outputs basic analog value;<br>
This sensor is small and equipped with the following features:<br>
iii) low power consumption and high sensitivity;<br>
* smooth conversion between water quantity and analog quantity;<br>
iv) 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>
* strong flexibility, outputting analog value;<br>
Note: this module needs to be used together with EASY plug control board.<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>




==Specification==
<span style=color:red> '''Special Note:''' <br>
* Interface: Easy plug
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>
 
==Features ==
* Connector: Easy plug
* Operating voltage: DC5V
* Operating voltage: DC5V
* Operating current: <20mA
* Operating current: <20mA
Line 18: Line 24:
* Detection area: 40mm x16mm
* Detection area: 40mm x16mm
* Production process: FR4 double-side tinned
* Production process: FR4 double-side tinned
* Humanized design: Anti-slippery semi-lunar recess
* Operating temperature: 10%~90% without condensation
* Operating temperature: 10%~90% without condensation
* Size: 68.3 x 20mm
* Production process: FR4 double-side tinned
* Weight: 5g
 
<br>
==Technical Details==
* Dimensions: 68mm*20mm*18mm
* Weight: 5.7g
 
<br>
==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.
<br>[[File:ks0107.jpg|500px|frameless|thumb]]<br>
 
<br>
==Upload the Code==
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0397 18.1.png|500px|frameless|thumb]]<br>
 
<br>
==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>
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: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>


==Connection Diagram ==
<br>
<br>[[File:ks0107-2.png|500px|frameless|thumb]]<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>




==Sample Code==
<br>
<pre>
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>


==Resources ==
==Resources ==


'''PDF'''
https://fs.keyestudio.com/KS0107


https://drive.google.com/open?id=1a3GJ1PcQPhKN-xy-thvasdEI5jNLGa6R
<br>


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


http://www.keyestudio.com/keyestudio-easy-plug-water-sensor-module-for-arduino.html
*[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