You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TankAlarm-112025-Client-BluesOpta/README.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,70 @@ The client creates a default configuration on first boot. You can update configu
89
89
-**Min Inches**: Tank level in inches at minimum sensor value
90
90
-**Max Inches**: Tank level in inches at maximum sensor value
91
91
92
+
### 4-20mA Current Loop Sensor Configuration
93
+
94
+
For 4-20mA current loop sensors, two mounting options are supported:
95
+
96
+
#### Pressure Sensor (Bottom-Mounted)
97
+
Used for sensors like the Dwyer 626-06-CB-P1-E5-S1 (0-5 PSI) mounted near the bottom of the tank.
98
+
99
+
-**Current Loop Type**: "pressure"
100
+
-**How it works**: Measures the pressure of the liquid column above the sensor
101
+
- 4mA = Empty tank (0 PSI / no liquid above sensor)
102
+
- 20mA = Full tank (max PSI / max liquid height)
103
+
-**Sensor Range**: The native measurement range (e.g., 0-5 PSI, 0-2 bar)
104
+
-`sensorRangeMin`: Minimum value (typically 0)
105
+
-`sensorRangeMax`: Maximum value (e.g., 5 for 0-5 PSI)
106
+
-`sensorRangeUnit`: Unit of measurement ("PSI", "bar", etc.)
107
+
-**Sensor Mount Height**: Height of sensor above tank bottom (usually 0-2 inches)
108
+
-**Max Value**: Maximum liquid height the sensor can measure (corresponds to 20mA)
109
+
110
+
**Example Configuration** (0-5 PSI sensor, 1 PSI per 2.3 ft of water):
111
+
- Sensor mounted 2 inches above tank bottom
112
+
- Max sensor range = 5 PSI = ~138 inches of water
113
+
- Tank height = 120 inches
114
+
- Configuration:
115
+
-`currentLoopType`: "pressure"
116
+
-`sensorRangeMin`: 0
117
+
-`sensorRangeMax`: 5
118
+
-`sensorRangeUnit`: "PSI"
119
+
-`sensorMountHeight`: 2.0
120
+
-`maxValue`: 118.0 (tank height minus mount height: 120 - 2 = 118 inches)
121
+
122
+
> **Note:** For pressure sensors, set `maxValue` to the tank's usable height minus the sensor mount height. The implementation adds `sensorMountHeight` to the measured value, so `maxValue` should represent the height of liquid *above* the sensor, not the total tank height.
123
+
124
+
#### Ultrasonic Sensor (Top-Mounted)
125
+
Used for sensors like the Siemens Sitrans LU240 mounted on top of the tank looking down.
126
+
127
+
-**Current Loop Type**: "ultrasonic"
128
+
-**How it works**: Measures the distance from the sensor to the liquid surface
129
+
- 4mA = Full tank (liquid close to sensor)
130
+
- 20mA = Empty tank (liquid far from sensor)
131
+
-**Sensor Range**: The native measurement range (e.g., 0-10 meters, 0-30 feet)
132
+
-`sensorRangeMin`: Minimum distance (typically 0)
133
+
-`sensorRangeMax`: Maximum distance (e.g., 10 for 0-10m)
134
+
-`sensorRangeUnit`: Unit of measurement ("m", "ft", "in", etc.)
135
+
-**Sensor Mount Height**: Distance from sensor to tank bottom when tank is empty
136
+
-**Max Value**: Maximum liquid height (tank capacity)
137
+
138
+
**Example Configuration** (ultrasonic sensor with 0-10m range on 10-foot tank):
139
+
- Sensor mounted 124 inches above tank bottom (tank is 120 inches + 4 inch clearance)
140
+
- Maximum tank fill level = 120 inches
141
+
- Configuration:
142
+
-`currentLoopType`: "ultrasonic"
143
+
-`sensorRangeMin`: 0
144
+
-`sensorRangeMax`: 10
145
+
-`sensorRangeUnit`: "m"
146
+
-`sensorMountHeight`: 124.0
147
+
-`maxValue`: 120.0
148
+
149
+
**Calibration Tips for 4-20mA Sensors:**
150
+
1. Record the actual mA output at known liquid levels (empty, half-full, full)
151
+
2. Verify sensor mount height is accurate
152
+
3. Enter the correct sensor native range (as specified in sensor datasheet)
153
+
4. Check for temperature effects on readings
154
+
5. Consider the specific gravity of the liquid (for pressure sensors)
155
+
92
156
### Float Switch Configuration (Digital Sensors)
93
157
Float switches can be configured as either normally-open (NO) or normally-closed (NC):
0 commit comments