Yfs201 Proteus: Library Exclusive
Users can adjust the flow rate during simulation, allowing them to see how their software responds to varying, or even zero, flow rates.
The sensor contains a pinwheel rotor and a Hall Effect sensor. As liquid flows, the rotor spins, creating a magnetic field change. The Hall sensor converts this into a digital electrical pulse.
#include <LiquidCrystal.h> LiquidCrystal lcd(7,8,9,10,11,12);
// YFS201 Flow Sensor Simulation Code volatile int pulseCount = 0; float flowRate = 0.0; unsigned long oldTime = 0; yfs201 proteus library exclusive
: Generates a square wave signal (TTL) that matches the real sensor's formula: Pulse frequency (Hz) = 7.5 × Q , where Q is the flow rate in L/min.
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA\
is a staple in the DIY and industrial automation world for measuring liquid volume and flow rate. While Proteus is a powerhouse for electronic simulation, it does not natively include a dedicated model for this specific sensor. To bridge this gap, developers have created "exclusive" libraries that allow you to simulate water flow projects without a physical lab setup. What is the YF-S201 Flow Sensor? Users can adjust the flow rate during simulation,
Place the Arduino Uno onto your workspace.
Standard Proteus installations do not include a dedicated model for flow sensors. Without an exclusive library, users are forced to use generic pulse generators or manual switches to mimic the sensor.
The YFS201 uses a hall-effect sensor to measure the volume of liquid passing through it. The Hall sensor converts this into a digital
Click the interactive + or - buttons on the YF-S201 component body during operation.
When water flows through the valve, it forces the internal rotor to spin. The speed of the rotation changes in direct proportion to the velocity of the liquid. The embedded magnet passes by the Hall effect sensor with every rotation, generating a series of digital high/low voltage pulses (square waves). Key Technical Specifications