EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Replies / this is  mt project

this is  mt project

|

Microcontroller › AVR › water level controller › this is  mt project

August 17, 2011 at 8:04 am #6609
pranav patel
Participant

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.

 

 

 

 

RSS Recent Posts

  • Neon Transformers for sale August 9, 2022
  • Can I use an SPDT 5 wire Relay in reverse? August 9, 2022
  • Add a low power indicator LED August 9, 2022
  • LTSpice DC-AC August 9, 2022
  • Is there a discord for this forum? August 9, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools