[ Close ]
Username
Password


Forgotten your password?
 
Custom Search
Electrical, Electronics & Communication Projects
 Projects Q A, Guidance for your projects Projects Forum Electrical, Electronics & Communication Projects
Message Icon Topic: WATER LEVEL CONTROLLER using AT89C51 Post Reply Post New Topic
Found this useful? Give a +1   Add to Facebook: Add to Facebook
Free Project Downloads
Electronics Project Download
ECE Mini Project Downloads
Robotics Projects Downloads
Wireless Project Downloads
Space Project Downloads
Embedded Project Download
Microcontroller Downloads
Power Harvesting Projects
Project Topics
All Electronics Projects
ECE Project Topics
VLSI Projects List
Microcontroller Projects
DSP Project Topics
Other Electronics Projects
Electrical (EEE) Projects
Project Presentation Tips
How to choose Project Topic
Tips for Final Year Project
Steps for FYP, Mini Project
Preparing a Project Report
Problems faced in Projects
 
Get Free Electronics (ECE) / Electrical (EEE) Project Downloads:

Enter your email address:  

Author Message
femi
Newbie
Newbie


Joined: 28-Jun-2011
Online Status: Offline
Posts: 0
Quote femi Replybullet Topic: WATER LEVEL CONTROLLER using AT89C51
    Posted: 28-Jun-2011 at 7:35pm
PLS GIVE ME A CLUE ON HOW TO DESIGN AND CONSTRUCT WATER LEVEL CONTROLLER WITH LCD DISPLAY USING AT89C51.

 
IP IP Logged
PrashanthS
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 0
Quote PrashanthS Replybullet Posted: 08-Jul-2011 at 8:25pm
Hi femi,

Here is one to help you.

Water (any liquid) level alarm using 8051 microcontroller (AT89C51):

This article illustrates the construction and working of a liquid level indicator. Such an indicator is used in tanks to indicate the level of liquids and alert us when the tank is full. So by this circuit we can monitor the various levels of the tank and can avoid spillage of water and also we can configure our supplies according to the various levels of tank. Such module or circuit can be installed in big buildings where manual monitor of tanks is difficult and its indicator can be placed at some centralised place. (cont. below)

 
IP IP Logged
PrashanthS
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 0
Quote PrashanthS Replybullet Posted: 08-Jul-2011 at 8:32pm
IP IP Logged
PrashanthS
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 0
Quote PrashanthS Replybullet Posted: 08-Jul-2011 at 8:34pm
This circuit works on the principle that water conducts electricity. A wire connected to VCC and four other wires are dipped in tank at different levels namely quarter, half, three-fourth, full and their output are taken on pins P3.0, P3.1, P3.2, P3.3 via a transistor BC547. Port P2 is connected to data pins of LCD and P1.0, P1.1, P1.2 are respectively connected to RS, RW, and EN pins of LCD.

Initially when the tank is empty LCD will show the message VACANT. As the tank starts filling up wire at different levels get some positive voltage, due to conducting nature of water. This voltage is then fed to their corresponding pins on controller. When level reaches to quarter level, LCD displays the message QUARTER. On further rise of level, HALF and 3/4 QUARTER are displayed on LCD. When tank gets full LCD shows the message FULL CLOSE TAP. A buzzer is also provided to produce a alert the user when the tank gets filled. This buzzer can be made off by pressing the switch connected between pin 15 of controller and VCC. (cont. below)
IP IP Logged
PrashanthS
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 0
Quote PrashanthS Replybullet Posted: 08-Jul-2011 at 11:54pm
Code:

// Program to make a Liquid level indicator using LCD
#include<reg51.h>
sbit rs=P1^0; //register select pin
sbit rw=P1^1; //read/write pin
sbit e=P1^2; //enable pin
sbit quat=P3^0; //pin connected to quater level of tank
sbit half=P3^1; //pin connected to half level of tank
sbit quat_3=P3^2; //pin connected to three -fourth level of tank
sbit full=P3^3; //pin connected to full level of tank
sbit spkr_on=P3^4;
sbit spkr_off=P3^5; // pin to off speaker

void delay(int k) //delay function
{
int i,j;
for(i=0;i<k;i++)
for(j=0;j<1275;j++);
}

void write(int j) //write function
{
rs=1; //selecting command register
rw=0; //selecting to write
P2=j; //putting value on the pins
e=1; //strobe the enable pin
delay(1);
e=0;
return;
}

void cmd(int j) //command function
{
P2=j; //put the value on pins
rs=0; //selecting command register
rw=0; //selecting to write
e=1; //strobe enable pin
delay(1);
e=0;
return;
}

void puts(char *a) //puts function to print a string
{
unsigned int p=0;
for(;a

!=0;p++)
write(a

);
}

void lcd_init(void) // function to initialise the LCD
{
cmd(0x38); //setting 8-bit interface, 2 lines, 5*7 Pixels
delay(1);
cmd(0x0e); //turning on underline visible cursor
delay(1);     
cmd(0x01); //clearing screen
cmd(0x80); //moving cursor to the begining of line 1 of LCD
}

void main()
{
quat=half=quat_3=full=spkr_off=1; //configuring as input pins
quat=half=quat_3=full=spkr_off=0; //lowering input pins
spkr_on=1;    // making speaker on pin high,as it works on negative logic
while(1)
{
while(quat==0&&half==0&&quat_3==0&&full==0&&spkr_off==0)   //condition when tank is empty
{
   lcd_init();        // initialising LCD
   puts("VACANT");       //printing VACANT on lcd
}
while(quat==1&&half==0&&quat_3==0&&full==0&&spkr_off==0)     //condition when tank is quater
{
   lcd_init();
   puts("QUATER");      //printing QUATER on lcd
}
while(quat==1&&half==1&&quat_3==0&&full==0&&spkr_off==0)     //condition when tank is half
{
   lcd_init();     
   puts("HALF");      //printing HALF on lcd
}
while(quat==1&&half==1&&quat_3==1&&full==0&&spkr_off==0)     //condition when tank is three-fourth
{
   lcd_init();
   puts("3/4 FULL");     //printing 3/4 FULL on lcd
}
while(quat==1&&half==1&&quat_3==1&&full==1&&spkr_off==0)     //condition when tank is full
{
   lcd_init();
   puts("FULL;CLOSE TAP");     //printing FULL;CLOSE TAP on lcd
   spkr_on=0;// Enabling speaker
}
while(quat==1&&half==1&&quat_3==1&&full==1&&spkr_on==0&&spkr_off==1)//enabling high speaker_off pin
{
   spkr_on=1;//disabling speaker
}
}
}

IP IP Logged
femi
Newbie
Newbie


Joined: 28-Jun-2011
Online Status: Offline
Posts: 0
Quote femi Replybullet Posted: 11-Jul-2011 at 2:12pm
Thanks for ur concern.pls i want to know if this circuit has been tested>?
IP IP Logged
PrashanthS
Newbie
Newbie


Joined: 21-Sep-2008
Online Status: Offline
Posts: 0
Quote PrashanthS Replybullet Posted: 12-Jul-2011 at 11:25pm
why? do you get any issues with it?
IP IP Logged

 
Post Reply Post New Topic

Free Programming Courses in JAVA, .Net and PHP (Register Now!)

Java Free Online Course

.Net Free Online Course

PHP Free Online Course


 
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.017 seconds.
© ProjectsQA.com   |   Privacy policy