from basics to Advanced

  • FEA Articles
    • CAE for beginners
    • Open-source FEA
    • Basics of mechanics
    • Buckling, Nonlinear FEA & Advanced Tips
    • Design Failure
    • Heat Transfer
    • Meshing Techniques
    • Modal, Frequency and Dynamic Analysis
    • Stress & Safety Factor
    • FEA Singularities
  • FEA Tutorials
    • FEA Webinars
    • Salome Meca and Code Aster Tutorials
    • Ansys Video Tutorials
    • midas NFX
    • midas GEN
    • OnScale Tutorials
    • Openfoam Tutorials
    • Gmsh Tutorials
  • Programming
    • Python
    • Fortran
    • Language C
  • More
    • About Me
    • Podcast
    • FEA Books
    • FEA Knowledge Base
    • Unit Converter
  • Log In

Yfs201 Proteus Library [DIRECT]

The YFS201 Proteus library is an open-source project, and its development status might be limited due to its origins as a Yammer/IBM project. While it's still available on GitHub and Maven Central, there might not be active development or support.

volatile int pulseCount = 0; float flowRate = 0.0; unsigned int flowMilliLitres = 0; unsigned long totalMilliLitres = 0; unsigned long oldTime = 0; const byte sensorPin = 2; // Connected to YF-S201 Output void pulseCounter() pulseCount++; void setup() Serial.begin(9600); pinMode(sensorPin, INPUT_PULLUP); // Trigger pulseCounter on falling edge attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); void loop() if((millis() - oldTime) > 1000) // Detach interrupt while calculating to prevent data corruption detachInterrupt(digitalPinToInterrupt(sensorPin)); // Calculate flow rate in Liters per minute based on sensor calibration factor (7.5) flowRate = ((1000.0 / (millis() - oldTime)) * pulseCount) / 7.5; oldTime = millis(); // Determine volume passing through per second flowMilliLitres = (flowRate / 60) * 1000; totalMilliLitres += flowMilliLitres; // Print the results to the Virtual Terminal Serial.print("Flow rate: "); Serial.print(flowRate); Serial.print(" L/min"); Serial.print("\t Total Liquid: "); Serial.print(totalMilliLitres); Serial.println(" mL"); // Reset pulse counter and restart interrupt monitoring pulseCount = 0; attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); Use code with caution. Running and Verifying the Simulation

: The sensor consists of a plastic valve body, a water rotor, and a magnetic Hall-effect sensor. yfs201 proteus library

Open the properties of your YF-S201 library component (or your manual Pulse Generator). Set a fixed pulse frequency.

When water flows through the valve, it spins the internal rotor. The YFS201 Proteus library is an open-source project,

Edit the generator properties: Set the voltage to 0V–5V, and adjust the frequency using the flow formula (e.g., set to 75 Hz to simulate a steady flow rate of 10 Liters per minute). Writing the Testing Firmware (Arduino Sketch)

Here's a helpful clarification and a practical workaround: Running and Verifying the Simulation : The sensor

Default path: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\DATA\LIBRARY

Other FEA articles:

  • Okjatt Com Movie Punjabi
  • Letspostit 24 07 25 Shrooms Q Mobile Car Wash X...
  • Www Filmyhit Com Punjabi Movies
  • Video Bokep Ukhty Bocil Masih Sekolah Colmek Pakai Botol
  • Xprimehubblog Hot

About me

yfs201 proteus libraryI’m an Mechanical Engineer who would like to share his passion on Finite Element Analysis to help other Engineers. Read more…

View Cyprien Rusu's profile on LinkedIn

Find videos about FEA

What is linearity and what's the difference with nonlinear simulation? - FEAforall
How to build a scientific web app in 10 min with Trame and VTK
Code Saturne Heated Square Cavity Tutorial
1/127
Next»
By PoseLab
My YouTube Channel

© Copyright since 2013 feaforall · All Rights Reserved

Smart Fast Globe © 2026