Automatic water level control with indicators for Water tank | Aqua Tech  Technologies

Описание к видео Automatic water level control with indicators for Water tank | Aqua Tech  Technologies

Automatic water level control for Water tank

Here's a simple and effective way to implement an automatic water level control system with indicators:

Components

1. *Float Switch*: A float switch is used to detect the water level.
2. *Relay Module*: A relay module is used to control the water pump.
3. *Microcontroller*: A microcontroller (e.g., Arduino) is used to read the float switch state and control the relay module.
4. *LED Indicators*: LED indicators are used to show the water level status.
5. *Water Pump*: A water pump is used to fill or empty the tank.

Circuit Diagram

Here's a simplified circuit diagram:
```
+---------------+
| Float Switch |
+---------------+
|
|
v
+---------------+
| Microcontroller |
| (e.g., Arduino) |
+---------------+
|
|
v
+---------------+
| Relay Module |
+---------------+
|
|
v
+---------------+
| Water Pump |
+---------------+
|
|
v
+---------------+
| LED Indicators |
| (e.g., Red, |
| Yellow, Green) |
+---------------+
```
Code

Here's an example Arduino code:
```
c++
const int floatSwitchPin = 2; // Float switch pin
const int relayPin = 3; // Relay module pin
const int ledRedPin = 4; // Red LED pin
const int ledYellowPin = 5; // Yellow LED pin
const int ledGreenPin = 6; // Green LED pin

void setup() {
pinMode(floatSwitchPin, INPUT);
pinMode(relayPin, OUTPUT);
pinMode(ledRedPin, OUTPUT);
pinMode(ledYellowPin, OUTPUT);
pinMode(ledGreenPin, OUTPUT);
}

void loop() {
int floatSwitchState = digitalRead(floatSwitchPin);

if (floatSwitchState == HIGH) { // Water level is high
digitalWrite(relayPin, LOW); // Turn off water pump
digitalWrite(ledRedPin, HIGH); // Turn on red LED
digitalWrite(ledYellowPin, LOW);
digitalWrite(ledGreenPin, LOW);
} else if (floatSwitchState == LOW) { // Water level is low
digitalWrite(relayPin, HIGH); // Turn on water pump
digitalWrite(ledRedPin, LOW);
digitalWrite(ledYellowPin, HIGH); // Turn on yellow LED
digitalWrite(ledGreenPin, LOW);
} else { // Water level is medium
digitalWrite(relayPin, LOW); // Turn off water pump
digitalWrite(ledRedPin, LOW);
digitalWrite(ledYellowPin, LOW);
digitalWrite(ledGreenPin, HIGH); // Turn on green LED
}

delay(1000);
}
```
How it Works

1. The float switch detects the water level and sends a signal to the microcontroller.
2. The microcontroller reads the float switch state and controls the relay module accordingly.
3. The relay module turns the water pump on or off based on the microcontroller's signal.
4. The LED indicators show the water level status:
Red LED: Water level is high
Yellow LED: Water level is low
Green LED: Water level is medium

This system ensures automatic water level control and provides visual indicators for easy monitoring.

#stater
#techiconplus
#automaticwaterlevelcontrol
#Automaticstarter
#Automatic
#waterlevelcontrol

Комментарии

Информация по комментариям в разработке