Capteur de niveau d’eau à flotteur vertical

30.00 د.م.

Rupture de stock

UGS : CM046 Catégorie : Étiquettes : , , , , , , , ,
Partagez votre amour

Tutorial : FLOAT SENSOR WITH ARDUINO


Float sensor is working on the same concept as reed switch, but one more question might be arising. In reed switch we are using magnet but how can we get magnet in water tank? Right! We don’t need to worry about it because float sensor is being designed in that manner magnet is already presents there.

When we outfit sensor in an empty tank the switch position is at bottom but as water starts filling up switch position rises up which generates magnetic field for the reed switch. So simply, when water level goes down sensor break the circuit and series led connected will turned off, while when level goes up sensor make the circuit and series led connected will turned on.


REQUIRED HARDWARE

S.No.ItemQuantity
1Arduino Uno1
2Breadboard1
3Magnetic Float Sensor1
4LED1
5Resistor 220 ohm1
6Male to Male jumper4

CIRCUIT DIAGRAM – INTERFACING OF FLOAT SWITCH WITH ARDUINO

Make the following connections with Arduino

float sensor with arduino


FLOAT SENSOR ARDUINO CODE

int FloatSensor = 2;
int led = 13;
int buttonState = 1; //reads pushbutton status

void setup() {
  Serial.begin(9600);
  pinMode(FloatSensor, INPUT_PULLUP);
  pinMode (led, OUTPUT);
}

void loop() {
  buttonState = digitalRead(FloatSensor);

  if (buttonState == HIGH) {
    digitalWrite(led, LOW);
    Serial.println("WATER LEVEL - LOW");
  }
  else {
    digitalWrite(led, HIGH);
    Serial.println("WATER LEVEL - HIGH");
  }
  delay(1000);
}

OUTPUT

After uploading the code successfully, you can see when water level goes up led attached will get turn on and when water level goes down led will get turn off.


Plus d’information visite notre page Facebook.


Avis

Il n’y a pas encore d’avis.

Soyez le premier à laisser votre avis sur “Capteur de niveau d’eau à flotteur vertical”

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *