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
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,12 +83,24 @@ The client creates a default configuration on first boot. You can update configu
83
83
-**High Alarm**: Threshold in inches for high level alert
84
84
-**Low Alarm**: Threshold in inches for low level alert
85
85
-**Analog Pin**: Arduino Opta analog input (A0-A7, I1-I8)
86
-
-**Sensor Type**: "voltage" (0-10V) or "current" (4-20mA)
86
+
-**Sensor Type**: "voltage" (0-10V), "current" (4-20mA), or "digital" (float switch)
87
87
-**Min Value**: Minimum sensor value (e.g., 0.0V or 4.0mA)
88
88
-**Max Value**: Maximum sensor value (e.g., 10.0V or 20.0mA)
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
+
### Float Switch Configuration (Digital Sensors)
93
+
Float switches can be configured as either normally-open (NO) or normally-closed (NC):
94
+
95
+
-**Digital Switch Mode**: "NO" (normally-open) or "NC" (normally-closed)
96
+
-**NO (Normally-Open)**: Switch is open by default, closes when fluid reaches the switch position
97
+
-**NC (Normally-Closed)**: Switch is closed by default, opens when fluid reaches the switch position
98
+
-**Digital Trigger**: When to trigger the alarm
99
+
- "activated": Alarm when switch is activated (fluid present)
100
+
- "not_activated": Alarm when switch is not activated (fluid absent)
101
+
102
+
**Wiring Note**: For both NO and NC float switches, connect the switch between the digital input pin and GND. The Arduino uses an internal pull-up resistor, and the software interprets the signal based on your configured switch mode. The wiring is the same for both modes - only the software interpretation changes.
<label class="field switch-mode-field" style="display: none;"><span>Switch Mode<span class="tooltip-icon" tabindex="0" data-tooltip="NO (Normally-Open): Switch is open by default, closes when fluid is present. NC (Normally-Closed): Switch is closed by default, opens when fluid is present. The wiring is the same - only the software interpretation changes.">?</span></span>
<label class="field height-field"><span><span class="height-label">Height (in)</span><span class="tooltip-icon height-tooltip" tabindex="0" data-tooltip="Maximum height or capacity of the tank in inches. Used to calculate fill percentage and set alarm thresholds relative to tank size.">?</span></span><input type="number" class="tank-height" value="120"></label>
735
741
</div>
736
742
737
743
<!-- Digital sensor info box (shown only for float switches) -->
<strong>Float Switch Mode:</strong> This sensor only detects whether fluid has reached the switch position. It does not measure actual fluid level. The alarm will trigger when the switch is activated (fluid present) or not activated (fluid absent).
745
+
<strong>Float Switch Mode:</strong> This sensor only detects whether fluid has reached the switch position. It does not measure actual fluid level. The alarm will trigger when the switch is activated (fluid present) or not activated (fluid absent).<br><br>
746
+
<strong>Wiring Note:</strong> For both NO and NC switches, connect the switch between the input pin and GND. The software uses an internal pull-up resistor and interprets the signal based on your selected switch mode.
heightTooltip.setAttribute('data-tooltip', 'Maximum height or capacity of the tank in inches. Used to calculate fill percentage and set alarm thresholds relative to tank size.');
0 commit comments