Yf-s201 Proteus Library _verified_ Jun 2026
The YF-S201 Proteus library represents a significant advancement in the development of applications that utilize the YF-S201 water flow sensor. By providing a simplified, efficient interface for sensor interaction, it accelerates the development process and enhances the capabilities of water flow measurement projects. Whether in home automation, industrial systems, or environmental monitoring, the library serves as a valuable tool for engineers and developers seeking to integrate water flow sensing capabilities into their work.
const int flowPin = 2; // Digital pin for the flow sensor volatile int pulseCount = 0; // Counts the number of pulses
Restart Proteus to see the new component in the (P) menu. yf-s201 proteus library
If you managed to build a working simulation, share your .pdsprj file in the comments! For more Proteus tips, check my profile.
Once the library is installed, it's time to lay out the components in the Proteus workspace. Here is a list of components you will need: Arduino UNO Go to product viewer dialog for this item. Arduino Mega Go to product viewer dialog for this item. Water Flow Sensor: (from your newly installed library) Display: LCD 16x2 (LM016L) Go to product viewer dialog for this item. const int flowPin = 2; // Digital pin
The standard conversion formula provided by the manufacturer is:
When water flows through the rotor, the rotor rolls. Its speed changes with different rates of flow. The hall-effect sensor outputs a high/low digital pulse train corresponding to the rotations. Once the library is installed, it's time to
Pulse Frequency (Hz)=7.5×Flow Rate (L/min)Pulse Frequency (Hz) equals 7.5 cross Flow Rate (L/min) How to Get the YF-S201 Proteus Library
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Open the Arduino IDE, paste the code above, and go to . Check the box next to Show verbose output during: compile . Click Verify/Compile .
Close Proteus. Navigate to your Proteus installation directory.