3 Pins: Red (5V-24V), Black (GND), Yellow (Signal Output). 2. Importance of the Proteus Simulation Model
, the LCD screen will dynamically output a constant fluid reading of 4.0 L/min . The Total volume row should consistently tick upward every second. Troubleshooting Common Simulation Errors
Arrange them: VCC top, GND bottom, SIGNAL right.
Typical path for newer versions: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY (Note: ProgramData is a hidden folder by default in Windows). yf-s201 proteus library
Place the Pulse source in your schematic to act as the Yellow signal wire. Edit the Pulse properties to match a 5V logic signal: Initial Voltage: 0V pulsed Voltage: 5V Calculate your desired test frequency using the
Input 30Hz (or its equivalent time period of 33.33ms ) into the frequency configuration field. Writing the Arduino Simulation Code
Connect the Yellow Signal pin of the YF-S201 sensor to Digital Pin 2 of the Arduino Uno. Pin 2 is chosen because it supports hardware interrupts ( Interrupt 0 ). LCD Connections: Connect RS to Arduino Pin 12. Connect Enable (E) to Arduino Pin 11. 3 Pins: Red (5V-24V), Black (GND), Yellow (Signal Output)
Do you need to use a like an ESP32 or PIC? Share public link
: Every time the magnet passes the Hall Effect sensor, it triggers a pulse.
Wire the LM016L LCD to the digital pins of the Arduino to display real-time Liters per Minute (L/min) values. The Total volume row should consistently tick upward
Close Proteus completely. Copy the downloaded .IDX and .LIB files and paste them into the LIBRARY folder of your Proteus installation directory. The file path varies depending on your software version:
The YF-S201 is a popular water flow sensor used in various DIY projects, home automation, and industrial applications to measure the flow rate of water. It works on the Hall effect principle, detecting the flow of water through a rotating wheel with magnets. As water flows, it turns the wheel, and the sensor outputs a series of pulses that can be counted to calculate the flow rate.
Check your interrupt pin assignment. The Arduino Uno only supports hardware interrupts on Digital Pins 2 and 3. Ensure the YF-S201 output is firmly wired to Pin 2.
The YF-S201 Proteus library offers a range of features and benefits that make it an essential tool for microcontroller developers. Some of the key features include:
The LCD screen will initialze and quickly transition to displaying the flow analytics. If you set your pulse generator to