Yfs201 Proteus Library Page
The YFS201 Proteus library provides a simple and efficient way to interact with the Yammer File System, making it a suitable choice for applications that require a scalable and fault-tolerant file system. Although its development status might be limited, the library can still be useful for developers looking for a Java-based file system abstraction layer.
Once installed, open ISIS Schematic Capture and hit the key to search for components. Type YF-S201 into the keywords box. Double-click the component to add it to your workspace.
const int sensorPin = 2; // YF-S201 signal connected to Interrupt 0 volatile uint16_t pulseCount = 0; float flowRate = 0.0; unsigned int flowMilliLitres = 0; unsigned long totalMilliLitres = 0; unsigned long oldTime = 0; void pulseCounter() pulseCount++; // Increment pulse count on every interrupt trigger void setup() Serial.begin(9600); pinMode(sensorPin, INPUT_PULLUP); // Trigger the interrupt on a FALLING edge attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); oldTime = millis(); void loop() // Execute calculations exactly once per second (1000 milliseconds) if ((millis() - oldTime) > 1000) detachInterrupt(digitalPinToInterrupt(sensorPin)); // Pause interrupt to prevent math calculation errors // Formula: Frequency (pulses/sec) / 7.5 = flow rate in L/min flowRate = ((1000.0 / (millis() - oldTime)) * pulseCount) / 7.5; oldTime = millis(); // Calculate volume passing through during this single window flowMilliLitres = (flowRate / 60) * 1000; totalMilliLitres += flowMilliLitres; // Output results to Proteus Virtual Terminal Serial.print("Flow rate: "); Serial.print(flowRate, 2); Serial.print(" L/min"); Serial.print("\t Total Liquid: "); Serial.print(totalMilliLitres); Serial.println(" mL"); pulseCount = 0; // Reset counter for the next window attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); // Re-engage interrupt Use code with caution. Compiling and Loading the Binary yfs201 proteus library
instructs the model to scale its output pulse frequency proportionally.
This article provides a comprehensive guide to finding, installing, and using the YFS201 Proteus Library Go to product viewer dialog for this item. The YFS201 Proteus library provides a simple and
You can download the Proteus library files (usually a .zip file containing .LIB and .IDX files) from specialized components websites like . 2. Install the Library in Proteus
Simulate a complete industrial monitoring station suitable for chemical processing or manufacturing: Type YF-S201 into the keywords box
A third-party Proteus library for the YFS201 typically includes:
by comparing simulation outputs against real sensor specifications
to an interrupt-capable pin on your microcontroller (like Pin 2 on an Arduino Uno). Common Troubleshooting "No Simulator Model":
: The pulse frequency varies linearly with the flow rate. The standard calculation formula is: