Panier d’achat

Aucun produit dans le panier.

Capteur de niveau d’eau à flotteur vertical

30.00 د.م.

2 en stock

UGS : CM046 Catégories : , Étiquettes : , , , , , , , ,

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. Item Quantity
1 Arduino Uno 1
2 Breadboard 1
3 Magnetic Float Sensor 1
4 LED 1
5 Resistor 220 ohm 1
6 Male to Male jumper 4

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 *

Tous les résultats de recherche
×