Water Flow Sensor Arduino Library
The water flow sensor consists of a plastic valve body a water rotor and a hall effect sensor.
Water flow sensor arduino library. There are a variety of flow sensors of different principles but for makers using arduino or raspberry pi the most common flow sensor is based on a hall device. The 5v vcc red wire the gnd black wire and the signal pulse usually yellow line. When the water flows through the rotor rotor rolls and the speed of it changes with a different rate of flow. Water flow sensor is a digital sensor so we can connect its output pin to any of the digital pins of esp8266.
The sensor works at 5v can be connected to vin of esp8266. Before diving deep into the discussion on the arduino interface with water sensor and their simulation in proteus let us first learn what the water sensor is and how it works. The connections required for this flow rate sensor with respect to the arduino are very minimal. In my case i connected to gpio2 i e d4.
A color sensor library for arduino. A library for spi communication with the murata scl3300 inclinometer sensor. A color sensor library for arduino. In this tutorial we will be hooking up a flow sensor to an arduino uno to measure liquid flow.
There are only three wires coming from the flow rate sensor. This type of flow sensor is designed to measure the volume of liquid traveling past a given point a great way to keep tabs on how much water your drip irrigation system is using or any other project were the flow of liquid needs to be tracked. Yf s201 water flow sensor this water flow sensor has only three wires and it can be easily interfaced between any microcontroller and arduino board. A temperature sensor library for arduino.
Connect the vcc and gnd of the flow meter to the arduino s vcc and gnd. Similarly i2c oled display sda scl pins are connected to d2 d1 of esp8266 respectively. As the name implies the water sensor is the type of sensor that is used to measure the presence of the water on its surface. You can use it to count flow and volume of liquids and gases although the documentation focuses on applications using liquids and can support multiple flow sensors at the same time.
Sometimes you need to measure both water flow and water temperature like water heaters or dishwashers. Nova fitness sds011 dust sensor library. It requires only 5v vcc and gives pulse output the sensor needs to be tightly fitted between water pipeline. The hall effect sensor outputs the corresponding pulse signal.
Class for dht11 dht12 dht21 and dht22 sensors. People often use water flow sensor for automatic water heater control diy coffee machines water vending machines etc.