You are here: Home
this is mt project for
“water level controller usnig two tank”
now we have done to make prograam in programming in C
but we not make in keil software bcz we dont know that
Descripation of project.
” here we have used two tank in
water level controller
now in there we have taked 4 level.
it is
a = lower tank low level
b = lower level high level
c = upper tank low level
d = upper tank high level
here,
condition
1=full tank,
0= empty tank
and we also used to
motor and alarm.
now my program is here
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,motor,alarm;
float 1=full, 0=empty;
clrscr();
printf(“/n motor on/off, alarm on/off”);
while
{
switch
case(1);
{
a=1,b=1,c=1,d=1;
motor(off);
alarm(off);
break;
}
case(2);
{
a=1,b=1,c=1,d=0;
motor(off);
alarm(off);
break;
}
case(3);
{
a=1,b=1,c=0,d=0;
motor(on);
alarm(off);
break;
}
case(4);
{
a=1,b=0,c=0,d=0;
motor(on);
alarm(off);
break;
}
case(5);
{
a=0,b=0,c=0,d=0;
motor(off);
alarm(on);
break;
}
default;
}
}
getch();
patel pranav v.
gov. polytechnic
rajkot
diploma in e.c.