Proteus Library - Yfs201

The virtual component will mirror the real-world 3-wire layout:

: Connect the output signal line to Digital Pin 2 of the Arduino Uno. Pin 2 supports external interrupts ( INT0 ), which is critical for measuring rapid sensor pulses. yfs201 proteus library

volatile unsigned long pulseCount = 0; unsigned long lastTime = 0; float flowRate = 0.0; float totalVolume = 0.0; The virtual component will mirror the real-world 3-wire

The YF-S201 sensor consists of a plastic valve body containing a pinwheel rotor embedded with a magnet, alongside an integrated Hall-effect integrated circuit (IC). Place a (in Proteus → Generators → DCLOCK

Place a (in Proteus → Generators → DCLOCK or PULSE) and connect to the microcontroller pin. Manually set frequency = desired flow rate × 7.5.

Open your Proteus ISIS schematic capture and add the following components to your workspace using the Pick Device ( P ) window: (Requires the Arduino Proteus Library)