Water Flow Sensor

From LinkSprite Playgound
Revision as of 11:33, 3 September 2016 by Alvin (talk | contribs) (Water Flow Sensor Module Test)
Jump to: navigation, search

Description

1-161.jpg

This is a water flow sensor. The VCC is 5V. When the water flows through it, the output signal, which is an anlog signal, is proportional to the velocity of the flow. The latest Water Flow Sensor, mainly by the plastic valve body, Flow of rotor components and hall Sensor. The sensor is applied in water flow measurement and control system, such as installed in the inlet water heater. Working principle: when the water through flow rotor components, magnetic rotor rotation and speed changes with the flow, hall sensor output pulse signal, feedback to the controller, the controller to judge the size of the water flow, adjust and control.

Water Flow Sensor Compared with similar foreign products have the characteristic:

  • 1.The appearance is light and agile, small size, easy to install.
  • 2.Permanent impeller with stainless steel bead, wear-resisting.
  • 3.Sealing ring adopts the structure of the upper and lower stress will never leak.
  • 4.Hall element with German imports.And encapsulated with pouring sealant to prevent water, never aging.
  • 5.All the raw materials are all in accord with ROHS testing standards.
  • 6.Suitable for all kinds of controllers and development board, such as: the Arduino controller, on STC microcontroller, AVR microcontroller, etc

Specification

  • 1 Water inlet diameter:8.5mm
  • 2 Inlet and outlet diameter:20.12mm
  • 3 Connection mode: the red line (IN) to the positive (+), yellow line (OUT) signal output line, black line (GND) connect the cathode (-)
  • 4 Output waveform: square wave
  • 5 Working voltage range:DC +3V~+24V
  • 6 Maximum working current:15mA(DC +5V)
  • 7 Load capacity:≤10mA(DC +5V)
  • 8 Using the temperature range:≤80℃
  • 9 Use the humidity range:35%~90%RH(No frost)
  • 10 Allows pressure: the pressure below 1.75 Mpa
  • 11 Keep the temperature:-25℃~80℃
  • 12 Save the humidity:25%~95%RH
  • 13 output pulse high level:>DC 4.5V(input voltageDC +5V)
  • 14 output pulse is low level:<DC 0.5V(input voltageDC +5V)
  • 15 Precision (traffic - pulse output):within 1~30L/min±1%
  • 16 output pulse duty ratio:50±10%
  • 17 output rise time:0.04uS
  • 18 output decrease time:0.18uS Traffic - pulse characteristics: proficiency test pulse frequency(Hz)=[8.1Q -3 ]±10%(level of the test) (Q As the trafficL/min )
  • 19 Heat resistance: in the 80 + 3 ℃ environment for 48 h, 1-2 h no abnormal return to room temperature, no crack, relaxation and parts, expansion and deformation phenomenon, change within 10% accuracy.
  • 20 Cold resistance: in - 20 + / - 3 ℃ environment for 48 h, 1-2 h no abnormal return to room temperature, no crack, relaxation and parts, expansion and deformation phenomenon, change within 10% accuracy.
  • 21 During:In 40 + 2 ℃, relative humidity 90% ~ 95% RH environment put out 72 h after more than 1 m Ω insulation resistance.
  • 22 durability :At room temperature, from water nozzle bubbled into 0.1 Mpa water pressure, to get through 1 S, disconnect 0.5 S for a loop.
  • 23 Flow - pulse reference table / Water Flow Sensor module structure drawing
  • 24 Water Flow Sensor Use Caution:Severe impact and erosion of chemicals is prohibited. Throw or collision is prohibited. Detecting media should not exceed 120 ℃. Installation way is perpendicular to the ground, and the inclination should not exceed 5 degrees.


Water Flow Sensor Module Test

We use the Arduino controller to do a test, which need the hardware equipment as follows:

  • 1. Arduino controller × 1
  • 2. Arduino sensor expansion board × 1
  • 3. Water Flow Sensor×1
  • 4. RS360 gear self-priming DC small water pump × 1
  • 5. relay module× 1
  • 6. large button module × 1
  • 7. Serial LCD1602×1
  • 8. ACE lithium polymer battery × 1
  • 9. 3P sensor connector cable × 2
  • 10. Water Flow Sensor connect adapter cable × 1
  • 11. alligator clip -JST battery cable × 1
  • 12. the water pump inlet pipe × 1
  • 13. Adapter tube for Water pump outlet-Water Flow Sensor inlet (self-made, the actually should be connected DN20)
  • 14. Water Flow Sensor pipes (self-made, the actually should be connected DN20)
  • 15. Power adapter × 1

*Electrical connection diagram is as follows:

Specific connection sequence:

  • connect the Water Flow Sensor to the digital port 2 of sensor expansion board;
  • connect the relay to digital port 3 of sensor expansion board (the other end is connected to the power line);
  • connect the large button to the digital port 4;
  • connect serial 1602 LCD to COM port;
  • other devices are connected according to drawing

Note: When using sensor line, DuPont line, please pay attention to the corresponding connector, otherwise need to bear’s the concequence).

  • After the hardware connection is completed,compile and download the code to Arduino.

Code

  • The Arduino test code are as below:
  • volatile int NbTopsFan;
  • int Calc;
  • int on = 3;
  • int key = 4;
  • int hallsensor = 2;
  • int flag;
  • void rpm ()
  • {
  • NbTopsFan++;
  • }
  • void setup()
  • {
  • pinMode(key,INPUT);
  • pinMode(on, OUTPUT);
  • digitalWrite(on,HIGH);
  • pinMode(hallsensor, INPUT);
  • Serial.begin(9600);
  • Serial.print("$CLEAR\r\n");
  • Serial.print("$GO 1 4\r\n");
  • Serial.print("$PRINT Welcome to\r\n");
  • Serial.print("$GO 2 1\r\n");
  • Serial.print("$PRINT www.robotbase.cn\r\n");
  • Serial.print("$CURSOR 1 1\r\n");
  • delay(1000);
  • attachInterrupt(0, rpm, RISING);
  • }
  • void loop ()
  • {
  • NbTopsFan = 0;
  • sei();
  • delay (1000);
  • cli();
  • Calc = (NbTopsFan * 60 / 8.1);
  • cc();
  • if(flag != Calc)
  • {
  • Serial.print("$CLEAR\r\n");
  • Serial.print("$CLEAR\r\n");
  • Serial.print("$GO 1 6\r\n");
  • Serial.print("$PRINT ");
  • Serial.print(Calc);Serial.print(" L/h \r\n");
  • Serial.print("$GO 2 1\r\n");
  • Serial.print("$PRINT Flow Measurement\r\n");
  • Serial.print("$CURSOR 1 1\r\n");
  • flag = Calc;
  • }
  • }
  • void cc()
  • {
  • if (LOW == digitalRead(key))
  • {digitalWrite(on,LOW);}
  • else if (HIGH == digitalRead(key))
  • {digitalWrite(on,HIGH);}//on
  • }


After completing the above steps, power on the system. press the large button,so that the pump is running, allowing the water to flow through the flow sensor, then the system can test flow volume.

  • The following figure shows the Serial 1602 LCD at initial time of the water flow test system.
  • The following figure shows the serial 1602 LCD during water flow system test.