: As water flows through the rotor, it rotates, and its magnetic flux interferes with the Hall sensor.
To use the YF-S201 Water Flow Sensor Go to product viewer dialog for this item.
Seamless Simulation: The Exclusive Guide to the YF-S201 Water Flow Sensor Proteus Library
For advanced users, the ultimate flexibility comes from creating a custom component. While complex, this provides an unmatched understanding of the sensor's behavior.
$$Flow Rate (L/min) = \fracFrequency (Hz)7.5$$
The exclusive .IDX and .LIB file package provides unique capabilities missing from standard logic gates:
vol = vol + l_minute/60; // Total volume in liters Serial.print("Total Volume: "); Serial.print(vol, DEC); Serial.println(" L");
void flow() // Interrupt function
Connect the sensor's VCC pin to the +5V rail and the GND pin to the ground rail.
A high-quality schematic component displaying classic sensor terminals (VCC, GND, Pulse Output). How to Install the YF-S201 Library in Proteus
Visual animation elements change state during simulation to confirm operational status.
Since the YFS201 outputs a , you can model it with a signal source:
Once installed, follow these steps to add the sensor to your project: Open the in Proteus and click 'P'.
Because the YFS201 outputs a square wave, you can modify the library script (if open-source) to output pseudo-random intervals simulating heartbeat arrhythmias.
Place the Arduino Uno onto your workspace.