Stufin
Home Quick Cart Profile

Steel Float Switch

Buy Now on Stufin

Pin Configuration

  • Steel Float Switch Documentation
  • Overview
  • The Steel Float Switch is a type of level sensor used to detect the liquid level in a tank or container. It consists of a stainless steel stem and a float that rises or falls with the liquid level, triggering a switch when the desired level is reached.
  • Pin Description
  • The Steel Float Switch has three pins, each serving a specific purpose in the circuit. Below is a detailed explanation of each pin:
  • 1. Normally Open (NO) Pin
  • Pin Label: NO
  • Function: The normally open pin is connected to the load or device that needs to be controlled when the liquid level reaches the desired point.
  • Description: When the float rises or falls to the set level, the switch closes, connecting the NO pin to the Common (COM) pin, allowing current to flow to the load.
  • 2. Common (COM) Pin
  • Pin Label: COM
  • Function: The common pin is the reference point for the switch and provides a connection to the power source.
  • Description: The COM pin is connected to the power source (e.g., +VCC) and serves as a reference point for the switch. It is connected to the NO pin when the switch is closed.
  • 3. Normally Closed (NC) Pin
  • Pin Label: NC
  • Function: The normally closed pin is connected to the load or device that needs to be controlled when the liquid level is below the desired point.
  • Description: When the float is below the set level, the switch is closed, connecting the NC pin to the COM pin, allowing current to flow to the load. When the float rises to the set level, the switch opens, disconnecting the NC pin from the COM pin.
  • Connection Structure
  • To connect the Steel Float Switch, follow these steps:
  • Connect the power source (+VCC) to the COM pin.
  • Connect the load or device to be controlled to the NO pin.
  • Connect the load or device to be controlled to the NC pin (optional, depending on the application).
  • Example Connection Diagram
  • Here's an example connection diagram for a simple on/off control system:
  • ```
  • +VCC
  • |
  • |
  • v
  • COM --+-----+
  • | |
  • | Steel |
  • | Float |
  • | Switch |
  • | |
  • v v
  • NO ---+-----+--- LOAD/DEVICE
  • | |
  • v v
  • NC ---+-----+--- LOAD/DEVICE (optional)
  • ```
  • In this example, when the liquid level reaches the set point, the switch closes, connecting the NO pin to the COM pin, allowing current to flow to the load/device. When the liquid level is below the set point, the switch opens, disconnecting the NO pin from the COM pin, and connecting the NC pin to the COM pin (if used).

Code Examples

Steel Float Switch Documentation
Overview
The Steel Float Switch is a type of sensor used to detect the level of liquids in a tank or container. It consists of a steel rod and a float that rises or falls with the liquid level, triggering a switch when a certain level is reached. The switch is typically normally open (NO) or normally closed (NC), depending on the application.
Pinout
The Steel Float Switch typically has three pins:
VCC (power supply, usually 5V or 12V)
 GND (ground)
 OUT (output signal, typically a digital signal)
Code Examples
### Example 1: Basic Liquid Level Detection using Arduino
In this example, we'll use the Steel Float Switch to detect the liquid level in a tank and turn on an LED when the level reaches a certain point.
Hardware Requirements:
Steel Float Switch
 Arduino Board (e.g., Arduino Uno)
 LED
 Resistor (1 k)
 Breadboard and jumper wires
Code:
```c++
const int floatSwitchPin = 2;  // Output pin of the Steel Float Switch
const int ledPin = 13;       // Pin for the LED
void setup() {
  pinMode(floatSwitchPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  int switchState = digitalRead(floatSwitchPin);
  if (switchState == HIGH) {
    digitalWrite(ledPin, HIGH);  // Turn on the LED when the liquid level is high
  } else {
    digitalWrite(ledPin, LOW);  // Turn off the LED when the liquid level is low
  }
  delay(50);
}
```
### Example 2: Tank Level Monitoring using Raspberry Pi and Python
In this example, we'll use the Steel Float Switch to monitor the tank level and send notifications when the level reaches a certain point.
Hardware Requirements:
Steel Float Switch
 Raspberry Pi Board
 Breadboard and jumper wires
Code:
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
float_switch_pin = 17  # Output pin of the Steel Float Switch
GPIO.setup(float_switch_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
    if GPIO.input(float_switch_pin):
        print("Liquid level is high!")
        # Send notification using email or SMS API
    else:
        print("Liquid level is low!")
    time.sleep(1)
```
### Example 3: Industrial Automation using PLC and Ladder Logic
In this example, we'll use the Steel Float Switch to control a pump in an industrial automation system.
Hardware Requirements:
Steel Float Switch
 Programmable Logic Controller (PLC)
 Pump
Ladder Logic Diagram:
```
  +---------------+
  |               |
  |  Steel Float   |
  |  Switch (NC)  |
  +---------------+
           |
           |
           v
  +---------------+
  |               |
  |  Pump          |
  |  (Start/Stop)  |
  +---------------+
           |
           |
           v
  +---------------+
  |               |
  |  Timer (TON)   |
  |  (Delay 10s)  |
  +---------------+
           |
           |
           v
  +---------------+
  |               |
  |  Pump          |
  |  (Start)       |
  +---------------+
```
In this example, the Steel Float Switch is connected to the PLC input, and the pump is connected to the PLC output. When the liquid level reaches a certain point, the switch triggers the pump to start. The timer is used to introduce a delay of 10 seconds before the pump starts.
Note: The above diagram is a simplified representation of the ladder logic diagram and may vary depending on the specific PLC model and programming software used.