Automatic Water Level Control And Real Time Monitoring







Automatic Water Level Control And Real Time Monitoring


Description

This project will control the water level and keep the level between two predefined upper and lower positions. Any sensors can be used for this project, condition is only that it should give an active low output when activated by water. Sensors are simply water activated switches which is connected to ground.

I personally prefer read switch-magnet arrangement. Read switches are fixed on water tank wall at desired positions, and magnet is fixed on a thermocol sheet which floats in water. Modify this idea by experimenting, for an accurate result.

The designing of sensor arrangement is shown above. Sensors are read switches connected between PORT pins and ground. There is a magnet fixed on a thermocol which floats on water. Thermocol is free to move up and down through the string with the water level. When the thermocol reaches predefined water-levels the magnet and read switch come in contact and the read switch is activated and water level is detected. This is not an ultimate design, but just a design idea.












Code

/**********************************************/
/*

 http://www.facebook.com/EmbeddedProjects

 http://microcontrollerprojects00.blogspot.in/

 Author: Vishal K M

 uC:AT89S52
 Compiler: mikroC
 Crystal freq: 12MHz


                                                                                            */
/**********************************************/

extern sfr sbit motor;
sbit LCD_RS at P1_0_bit;
sbit LCD_EN at P1_1_bit;

sbit LCD_D4 at P1_2_bit;
sbit LCD_D5 at P1_3_bit;
sbit LCD_D6 at P1_4_bit;
sbit LCD_D7 at P1_5_bit;
sbit motor at P0_0_bit;

char txt1[] = "Water Level";
char txt2[] = "FULL";
char txt3[] = "MEDIUM";
char txt4[] = "LOW";
char txt5[] = "EMPTY";
 //unsigned int data;


void main() {

P2=0XFF;
P1=0x00;
//P0=0x00;
  Lcd_Init();




while(1)
{
while(P2.F2==1)
{
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(1,1,txt1);

motor=1;                             //motor off
switch(~P2)
{
case 0: Lcd_Out(2,6,txt5); break;
case 1:Lcd_Out(2,6,txt4); break;
case 3: Lcd_Out(2,6,txt3); break ;

default: ;

}
Delay_ms(500);
                           //motor on

}   motor=0;

 }

}

0 comments:

Post a Comment

 
Copyright Electronics Projects And Details All Rights Reserved
ProSense theme created by Dosh Dosh and The Wrong Advices.
Blogerized by Alat Recording Studio Rekaman.