WMS2-B1-R
AI

The **WMS2-B1-R** is a specific model of a **water meter sensor** (often a pulse output or Hall effect sensor) commonly used in industrial and smart metering applications to convert mechanical water flow into electronic signals.
### 1. Key Electronic Components and Architecture
The WMS2-B1-R operates primarily as an interface between a mechanical meter and a digital monitoring system.
| Component | Description | Function |
| :--- | :--- | :--- |
| **Reed Switch / Hall Sensor** | The core sensing element. | Detects the magnetic field of the rotating magnet in the meter. |
| **Pull-up Resistor** | Internal resistance (typically 10kΩ). | Ensures a stable high voltage when the switch is open. |
| **Output Stage** | Open Collector or Dry Contact. | Allows the sensor to interface with PLCs, ESP32, or Arduino. |
| **Cable / Connector** | Standard 2-wire or 3-wire lead. | Transmits the pulse signal to the microcontroller. |
---
### 2. Technical Specifications
The electronic behavior of the device is defined by its pulse characteristics:
* **Switching Voltage:** Typically 3V to 24V DC.
* **Switching Current:** Low current (usually < 10mA) to prevent arcing.
* **Pulse Rate:** Defined by the meter (e.g., 1 pulse per 1 liter or 1 pulse per 10 liters).
* **Output Signal:** Square wave or Pulse.
---
### 3. Wiring Configuration
Most variations of the WMS2-B1-R follow a standard wiring convention for integration into data loggers:
```cpp
// Example: Arduino Connection Logic
const int sensorPin = 2; // Connect WMS2-B1-R signal wire to Pin 2
volatile int pulseCount = 0;
void setup() {
pinMode(sensorPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(sensorPin), countPulse, FALLING);
}
void countPulse() {
pulseCount++;
}
```
---
### 4. Operating Principle
1. **Mechanical Input:** As water flows, it spins a turbine containing a small magnet.
2. **Magnetic Induction:** Every time the magnet passes the **WMS2-B1-R**, it closes the internal electronic circuit.
3. **Pulse Generation:** This closure creates a "pulse."
4. **Signal Processing:** An external microcontroller counts these pulses to calculate the total volume and flow rate.
- ⤷
What is the specific pulse-per-liter ratio for the WMS2-B1-R model?
- ⤷ How do I troubleshoot a 'ghost pulse' issue in this sensor?
- ⤷ Can the WMS2-B1-R be used with a 5V PLC system?