Ks0107 keyestudio EASY plug Water Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[image:ks0107图.jpg|thumb|600px|right|Keyestudio White LED Module]] | |||
==Introduction== | ==Introduction== | ||
This sensor is easy-to-use, portable and particularly designed to identify and detect water level and water drop. <br> | |||
It can measure the volume of water drop and water quantity through an array of traces of exposed parallel line. <br> | |||
This sensor is small and equipped with the following features:<br> | |||
* smooth conversion between water quantity and analog quantity;<br> | |||
* strong flexibility, outputting analog value;<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> | |||
<br> | |||
== | ==Features == | ||
* | * Connector: Easy plug | ||
* Operating voltage: DC5V | * Operating voltage: DC5V | ||
* Operating current: <20mA | * Operating current: <20mA | ||
Line 18: | Line 18: | ||
* Detection area: 40mm x16mm | * Detection area: 40mm x16mm | ||
* Production process: FR4 double-side tinned | * Production process: FR4 double-side tinned | ||
* Operating temperature: 10%~90% without condensation | * Operating temperature: 10%~90% without condensation | ||
* | * Production process: FR4 double-side tinned | ||
== | <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== | |||
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload. | |||
<pre> | <pre> | ||
int analogPin = 1; //connect water sensor to analog interface 1 | int analogPin = 1; //connect water sensor to analog interface 1 | ||
Line 54: | Line 59: | ||
</pre> | </pre> | ||
<br> | |||
==What You Should See== | |||
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> | |||
<br>[[File:ks0107 Result.jpg|500px|frameless|thumb]]<br> | |||
<br>[[File:ks0107 Result1.gif|500px|frameless|thumb]]<br> | |||
<br> | |||
==Resources == | ==Resources == | ||
'''PDF''' | '''PDF''' | ||
https://drive.google.com/open?id=1a3GJ1PcQPhKN-xy-thvasdEI5jNLGa6R | https://drive.google.com/open?id=1a3GJ1PcQPhKN-xy-thvasdEI5jNLGa6R | ||
<br> | |||
==Buy from == | ==Buy from == | ||
'''Official Website''' | '''Official Website''' | ||
http://www.keyestudio.com/keyestudio-easy-plug-water-sensor-module-for-arduino.html | http://www.keyestudio.com/keyestudio-easy-plug-water-sensor-module-for-arduino.html | ||
Revision as of 09:29, 16 November 2018
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.
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.
Upload the Code
Copy and paste below code to Arduino IDE and upload.
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); }
What You Should See
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.
Resources
PDF
https://drive.google.com/open?id=1a3GJ1PcQPhKN-xy-thvasdEI5jNLGa6R
Buy from
Official Website http://www.keyestudio.com/keyestudio-easy-plug-water-sensor-module-for-arduino.html