Saturday, May 19, 2018

Project - Automated Water Control System

This project I done in year 2013 for a University student for his final year project for Bachelor of Engineering (Hons.) in Electrical and Electronic Engineering.
I did only the hardware part, no report writing.

This project is to monitor and record water level of over head tank while controlling of water pump to pump water if necessary. the system include security measures to stop pumping is sump tank is empty. also the system include LCD display which displays current status of system. recorded data is to be send to a PC for further analysis if necessary via a USB connection. 

The system include a microcontroller, ultrasonic range finder, an EEPROM, a Real Time Clock with Calendar and character LCD display.

Microchip Microcontroller PIC18F2550 was used as microcontroller in the system. The microcontroller include USB connectivity therefore it was selected among available chips in the market.

 
PIC18F2550


ultrasound ranger finder used in the project is SRF02. connectivity of the sensor is I2C. The sensor is responsible for measure distance upon request and provide the distance in either centimetres or inches. Accuracy of measurement is higher when compared with other similar range finders in the market. Also the advantage of using SRF02 is the process of measuring and calculating of range is off the processor.

SRF02 Ultrasonic Range Finder


The EEPROM used in the system is AT24C32 manufactured by Atmel. The chip include memory space of 32768bits arranged as 8bit registers of 4098. The water level logging required only 5 memory spaces ( MM DD(WL) ) . The program is written to logging in every 5 minutes. Therefore the chip is capable of holding 800 records spanning 66 hours and 30 minutes. This is sufficient enough to hold logging before connecting and downloading data to a PC. 

Real Time Clock used in the project is DS1307. The chip has clock and calender with leap year correction. Also the chip has back up power input. with connected back up power CR2032 button cell, the chip could continue to run clock for more than 10 years.


DS1307
The LCD display used in this project is 16 x 2 character LCD. This type of LCDs come with a LED back light in several colours. Therefore power requirement of the LCD is low. The data connectivity required 6 lines. 4 for data and 2 for control.

16 x 2 Character Display

A relay is used to switch water pump. And two electrodes were used to check water level of sump tank. if the water level drooped predefined level in sump tank the operation of water pump stopped, but it continue other functions.
Following is the schematic of system. Followed by PCB layout.
Schematic of System
PCB layout of system
Following are the pictures taken during system testing.



Firmware for the system written using C language.

The Firmware Code : Water_Level_Meter.txt
LCD Driver library : flex_lcd.txt


මෙම ලිපියෙහි සිංහල පරිවර්තනය සඳහා පිවිසෙන ඉලෙක්ට්‍රොනික ලෝකය  

2 comments:

  1. The use of tank level sensors for tank level monitoring and reduces the distribution cost and develop better client service. By using the liquid level sensor in a tank you can reduce the use of man power and amount of waste.
    Tank monitoring system using telemetry level sensor

    ReplyDelete
  2. Icon Process Controls offer the industries best Telemetry Tank Level Sensor which can mount directly at the top of the tank facing down toward the liquid surface. By measuring the distance to the liquid, and knowing the tank height and geometry, the level or volume is calculated. Tanks can have a nitrogen blanket or be open top. The sensors typically thread into a tank fitting, and can connect to other equipment by analog or serial data means. They can also identify full, empty or reorder levels. A wireless connection can also be provided to access local tank data without installing conduit or power at the tanks.

    ReplyDelete