"God carved learn programming" DIY Arduino (24) - The water level sensor module

Paragraph 37 and reference sensor module, widely circulated on the Internet, in fact, compatible with Arduino sensor module must be more than 37 species. Since I am on hand accumulated a number of sensors and modules, in accordance with the practice makes perfect (be sure to DIY) concept, learning and communication for the purpose of preparing here one by one to try to do hands-on experiments, whether successful or not, will be recorded --- little progress or can not handle the problem, hoping to initiate. 

 

[] Arduino series of experiments, the sensor module 108 kinds (information + + graphics + Simulation Code)

Experimental twenty-four: water level drop sensor module (Water Sensor)

 

Water Sensor liquid level (water level) sensor is an easy to use, compact and lightweight, the higher cost of water / water droplet detection sensor identification, which is a measure of its trace water / the amount of water through a series of parallel conductors having exposed wires to determine the water level. Water easily done to convert the analog value of the analog signal, the output may be directly the application function, to achieve the effect of the alarm level, low power consumption, which is another major characteristic sensitivity. Arduino controller with direct expansion board inserted to the sensor application, the effect is more pronounced.

Specifications:
Operating voltage: DC3-5V
working current: less than 20mA
sensor types: an analog
detection area: 40mm x 16mm deepest measured only 4cm
production process: FR4 sided HASL
Working temperature: -30 ℃ 10 ℃
Humidity: 10% -90% non-condensing
module weight: 3.5g
board size: 62mm x 20mm x 8mm

 

Interfaces
to the water level sensor is connected to the expansion board analog A0 pin No.
1, + (VCC): positive power supply (3-5V);
2, - (the GND): negative one;
. 3, S: analog output

 

Simulation wiring diagram

/ * 

[] Arduino series of experiments, the sensor module 108 kinds (information + + graphics + Simulation Code) 

experiments twenty-four: water droplet sensor module (the Sensor Water) 

* / 

 

Double TEMP, Data; 

 

void Setup () 

{ 

Serial.begin (9600 ); 

} 

 

void Loop () 

{ 

TEMP = (Long) analogRead (A0); 

Data = (TEMP / 770) * 40; 

Serial.print ( "The depth IS:"); 

Serial.print (Data); 

Serial.println ( "mm"); 

Delay (1000); 

}

  

 

When the water level sensor is not inserted, the output value is 0, as the water level sensor is gradually submerged in the water, increasing the value of the analog pins, when fully submerged, the maximum output of about 670. Then gradually pull the water level sensor, an analog value of the pin decreases. But when the water level sensor is completely pulled out, the output value is not 0, the individual is a case that there is a surface water level sensor, will affect the value of the analog output pins. Rear surface of the water level sensor wiped with a dry paper towel, the analog output value becomes 0 pin.

 

Video: Understanding the analog level sensor

http://v.ifeng.com/201903/video_36257907.shtml

Guess you like

Origin www.cnblogs.com/eagler8/p/11459673.html