Reliable Water Level Monitoring with Wireless Water-Tank Level Meter with Alarm

13 May 2023 Balmiki Mandal 0 µC - µP

Wireless Water-Tank Level Meter With Alarm

Do you have a water tank that needs to be monitored and alarmed when levels become critical? The Wireless Water-Tank Level Meter with Alarm is the perfect solution for you. This cost-effective and reliable system comes pre-assembled and ready to install, making it easy for you to get up and running in no time.

Benefits of Wireless Water-Tank Level Meter with Alarm

The Wireless Water-Tank Level Meter with Alarm offers a number of benefits for those who need to monitor and alarm when levels become critical. The system offers:

  • Real-time remote monitoring.
  • Easy installation and setup.
  • Cost-effective.
  • Highly accurate readings.
  • Alarm alert when levels become critical.

With the Wireless Water-Tank Level Meter with Alarm, you can rest assured your water levels are being monitored and alarm will sound when they become critical.

How it Works

The Wireless Water-Tank Level Meter with Alarm uses ultrasonic sensors to measure the water level in a tank. The system then sends data to a cloud-based server so you can remotely monitor and control water levels in the tank from anywhere. If the level falls below a predetermined threshold, the system triggers an alarm so you are alerted immediately.

The Wireless Water-Tank Level Meter with Alarm is easy to setup and maintain, making it a perfect solution for anyone who needs to monitor and alarm when levels become critical.

Here's a basic overview of how to build a wireless water tank level meter with an alarm using Arduino:

Materials:

  • Arduino board (e.g. Arduino Uno)
  • HC-SR04 ultrasonic sensor
  • NRF24L01+ wireless module
  • Buzzer or alarm
  • 9V battery and battery connector
  • Jumper wires
  • Breadboard or perfboard
  • Water tank

Steps:

  1. Set up the hardware components on the breadboard or perfboard. Connect the VCC and GND pins of the HC-SR04 sensor to the 5V and GND pins of the Arduino board, respectively. Connect the trigger and echo pins of the sensor to any digital pins of the Arduino board. Connect the VCC and GND pins of the NRF24L01+ module to the 3.3V and GND pins of the Arduino board, respectively. Connect the CE, CSN, SCK, MOSI, and MISO pins of the NRF24L01+ module to any digital pins of the Arduino board. Connect the buzzer or alarm to any digital pin of the Arduino board.

  2. Upload the following code to the Arduino board:

#include <SPI.h>
#include <RF24.h>

const uint64_t pipe = 0xE8E8F0F0E1LL;

RF24 radio(7, 8);

const int trigPin = 9;
const int echoPin = 10;
const int alarmPin = 11;

void setup() {
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  pinMode(alarmPin, OUTPUT);
  radio.begin();
  radio.openWritingPipe(pipe);
  radio.setPALevel(RF24_PA_MIN);
  radio.stopListening();
}

void loop() {
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  float duration = pulseIn(echoPin, HIGH);
  float distance = duration * 0.034 / 2;
  if (distance <= 10) {
    digitalWrite(alarmPin, HIGH);
    delay(1000);
    digitalWrite(alarmPin, LOW);
    radio.write(&distance, sizeof(distance));
  } else {
    digitalWrite(alarmPin, LOW);
  }
  delay(1000);
}
  1. Power the Arduino board using the 9V battery and battery connector. Place the HC-SR04 sensor at the top of the water tank and connect the wireless module to another Arduino board or a computer.

  2. Open the Arduino IDE serial monitor or the serial monitor of the receiver Arduino board or computer. The distance measurements and alarm status should be displayed in the monitor. If the water level is less than or equal to 10 cm, the alarm will sound and a message containing the distance measurement will be sent wirelessly to the receiver.

Note: This is just a basic example and can be customized further based on your specific needs, such as adding a display to show the water level, increasing the wireless range, or using a different type of sensor.

 

BY: Balmiki Mandal

Related Blogs

Post Comments.

Login to Post a Comment

No comments yet, Be the first to comment.