Yfs201 Proteus Library Exclusive
: As water flows through the sensor, it turns a turbine wheel with an embedded magnet. The magnetic flux interferes with the Hall sensor, which generates a square-wave electrical pulse for every revolution. Key Specs : Flow Range : 1 to 30 Liters per minute (L/min). Voltage : 5V to 18V DC (operational up to 24V).
Restart Proteus to allow the software to index the new sensor.
Copy the files into the LIBRARY folder of your Proteus installation directory (usually C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY ). Restart Proteus to load the new component. 2. Wiring the YFS201 in Proteus The sensor has three wires: 5V-24V Supply Black: Ground (GND) Yellow: Signal Output
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. yfs201 proteus library exclusive
Proteus VSM (Virtual System Modeling) is an exceptional tool for circuit simulation, but it does not come with every sensor library out-of-the-box. A "YFS201 Proteus Library Exclusive" (often developed by community members or specialized vendors) allows users to place a virtual YF-S201 into their schematics. Key Benefits of the Exclusive Library:
Copy both the .IDX and .LIB files from your extracted folder and paste them directly into the identified LIBRARY directory. Step 4: Restart Proteus
Using an exclusive, dedicated YF-S201 Proteus library offers distinct advantages: : As water flows through the sensor, it
: Operates safely between 5V and 24V DC.
This example demonstrates how to use the YFS201 library with an Arduino to display the flow rate on an LCD screen within Proteus. Required Components in Proteus: Arduino Uno YFS201 Sensor (from the exclusive library) LM016L LCD (16x2) Pull-up resistor (10k Ωcap omega ) for the signal line Code for Arduino:
For rapid prototyping, engineers are advised to utilize the Proteus to verify frequency output before connecting the signal to the Microcontroller Unit (MCU). Voltage : 5V to 18V DC (operational up to 24V)
To actually process the sensor data in Proteus, you need a matching Arduino library to handle the interrupts and calculations.
A small magnet attached to the rotor passes by a fixed Hall Effect chip with every revolution.
void setup() Serial.begin(9600); pinMode(flowSensorPin, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(flowSensorPin), pulseCounter, RISING);