Water Level Controller using 8051

admin May 12, 2017 166 Comments

Water level controller using 8051.

A water level controller  using 8051 is shown in this article. A lot of water level controller projects have been published in this website but this is the first one based on a microcontroller. This water level controller monitors the level of the over head tank  and automatically switches on the water pump when ever the level goes below a preset limit. The level of the over head tank is indicated using 5 LED’s and the pump is switched OFF when the over head tank is full. The pump is not allowed to start if the water level in the sump tank is low and also the pump is switched OFF when the level inside the sump tank goes low during a pumping cycle.

Note:- We are selling a Project Kit for this Water Level Controller which can be bought from our Online Store. The project kit is a modified version of the project shown above. This Water Level Controller project kit uses 4 float switches to measure water level. The status of water level in the tank and status of the motor is displayed using an LCD module. This system monitors the water level of the tank and automatically switches ON the motor whenever tank is empty. The motor is switched OFF when the overhead tank or container is FULL.

Water Level Controller Project KitThe use of float switches makes the circuit rugged and ensures a maintenance free operation over a very long period of time.The project kit is available in plug and play form and do it yourself form. A 12-0-12 mains transformer is also available with the kit and it is not shown in the figure below.Water Level Indicator Project Kit

Main article continues…………….

The level sensor probes for the overhead tank are interfaced to the port 2 of the microcontroller through transistors. Have a look at the sensor probe arrangement for the overhead tank in Fig1. A positive voltage supply probe goes to the down bottom of the tank. The probes for sensing 1/4, 1/2, 3/4 and FULL levels are placed with equal spacing one by one above the bottom positive probe. Consider the topmost (full level) probe, its other end is connected to the base of transistor Q4 through resistor R16. Whenever water rises to the full level current flows into the base of transistor Q4 which makes it ON and so its collector voltage goes low. The collector of Q4 is connected to P2.4 and a low voltage at  P2.4 means the over head tank is not FULL. When water level goes below the full level probe, the base of Q2 becomes open making it OFF. Now its collector voltage goes high and high at P2.4 means the tank is not full. The same applies to other sensor probes (3/4, 1/2, 1/4) and the microprocessor understands the current level by scanning the port pins P2.4 ,P2.5, P2.6 and P2.7. All these port pin are high (all sensor probes are open) means the tank is empty.

Port pin P0.5 is used to control the pump. When ever it is required start pumping, the controller makes P0.5 low which makes transistor Q6 ON which in turn activates the relay K1 that switches the pump. Also the LED d6 glows indicating the motor is ON. LED D7 is the low sump indicator. When the water level in the sump tank goes low, the controller makes P0.7 low which makes LED D7 to glow. The circuit diagram of the water level controller is shown in the figure below.

Circuit diagram.

water level controller using 8051

Water level controller using 8051

Program.

MOV P2,#11111111B // initiates P2 as sensor input
MOV P0,#11111111B // initiates P2 as the output port
MOV A,#00000000B
MAIN:ACALL SMPCK // checks the level of the sump tank
MOV A,P2 // moves the current status of P2 to A
CJNE A,#11110000B,LABEL1 // checks whether tank is full
SETB P0.1
SETB P0.2
SETB P0.3
SETB P0.4
CLR P0.0 // glows full level LED
SETB P0.5
LABEL1:MOV A,P2
CJNE A,#11111000B,LABEL2 // checks whether tank is 3/4
SETB P0.0
SETB P0.2
SETB P0.3
SETB P0.4
CLR P0.1 // glows 3/4 level LED
LABEL2:MOV A,P2
CJNE A,#11111100B,LABEL3 // checks whether tank is 1/2
SETB P0.0
SETB P0.1
SETB P0.3
SETB P0.4
CLR P0.2 // glows 1/2 level LED
LABEL3:MOV A,P2
CJNE A,#11111110B,LABEL4 // checks whether tank is 1/4
SETB P0.0
SETB P0.1
SETB P0.2
SETB P0.4
CLR P0.3 // glows 1/4 level LED
JB P0.6,LABEL4
CLR P0.5 // switches motor ON
LABEL4:MOV A,P2
CJNE A,#11111111B,MAIN // checks whether tank is empty
SETB P0.0
SETB P0.1
SETB P0.2
SETB P0.3
CLR P0.4 // glows EMPTY LED
JB P0.6,MAIN // checks whether sump is low
CLR P0.5 // switches motor ON
SJMP MAIN
SMPCK:JB P0.6,LABEL5 // checks whether sump is low
SETB P0.7 // extinguishes the sump low indicator LED
SJMP LABEL6
LABEL5:SETB P0.5 // switches the pump OFF
CLR P0.7 // glows sump low indicator LED
LABEL6:RET
END

Related Projects

Moisture Sensing Automatic Plant Watering System – is an interesting project for hobbyists and students alike. This project is designed as a DIY automatic plant watering system based on soil moisture. Soil moisture is sensed using YL69 moisture sensor and 8051 microcontroller is used to interpret the sensor data and turn ON/OFF a motor pump for watering.

Comments
  • June 27, 2016

    Dear Sir , Kindly inform me how can I use the project kit without Sump Tank.
    Waiting for your replay

  • April 22, 2015

    SIR I HAVE IMPLEMEMNTED THE CIRCUIT BUT WE CANT GET OUTPUT . PLEAS HELP ME OUT. I THINK THERE IS A AN ERROR IN PROGRAMME.

  • Rohith N
    April 19, 2015

    sir instead of 80s51 shall we use at89s52 sir i kindly requesting to you please send at89s52 ic program for this water level controller project

  • ayush
    April 3, 2015

    can we use 89c52 instead of 89s51….

  • Rohith N
    March 27, 2015

    sir I want lcd indication program

  • DEBOJYOTI
    February 3, 2015

    Sir i do automatic water level controller Using 8052 (at89s52) as per ur circuite but program is not working,Please help me and send me correct program.

  • nikshep
    January 19, 2015

    everything is correct but the sensor is 2.0,2.1,2.2,2.3

  • nikshep
    January 19, 2015

    this program is not working

  • Aidil Malek
    December 18, 2014

    the program using C+ or C++. Thanks

    • Aidil Malek
      December 18, 2014

      Sorry. Actually, I’m asking not informing 🙂

  • nikshep
    December 5, 2014

    sir i want diy kit of this model

  • suresh
    December 2, 2014

    hi sir your automatic water level controller program not executed in programmer it`s says errors in your program

    Please send me correct program for automatic water level control using AT89S51. micro controller
    Thank you sir

  • suresh
    November 29, 2014

    Sir i want to do automatic water level controller Using 8051 (at89s51)
    Please help me and send me program

  • Jac_eX
    November 17, 2014

    Hi,

    Just me going through the diagram thought to myself that it could be useful to get a list of components with exact details, am new to it so quite challenging that is for me now, for example that X1 is 11.2MHz its only specification ?
    And one more thing, does the relay has to be 200ohms ? hard to find one, biggest I seen in this voltage is 170 and out of stock at the moment, available 67ohm, is there way around, let me know ASAp please.

    Jac

    • Mr
      December 3, 2014

      X1 is a crystal component

  • Areeb
    November 1, 2014

    Can anyone tell me how does this motor works ?

    • November 17, 2014

      Hi areeb to know complete process of automatic water level controller process visit my link

  • October 30, 2014

    Sir, I constructed this circuit and its working fine. But I am worried about power supply circuit, will it be able to work 24×7 the whole year? And which is better, using a transformer or a smps power supply along with voltage regulator?

    • pradeep
      February 26, 2015

      Hiii can you plz send me full details about this project,especially the program to burn..plzzz

  • Siddhi
    October 8, 2014

    Hello can you please mail me the perfect code with the output.Thanks

  • chinedu
    July 10, 2014

    Pls,i want to carry out this project help me with materials.Thank you,Sir.

  • imam
    June 4, 2014

    Hello….
    I’m newbie in microcntrol.
    I using reads51.
    Why that program is not correct?
    Always at ” MOV P0,#11111111B // initiates P2 as the output port “.

  • Revrooo
    June 4, 2014

    i will like to carry out this project myself,please can i get more matrials this.thanks

  • AD
    May 3, 2014

    can u provide me with matlab code. send to my email thank u 🙂

  • Sajib
    April 30, 2014

    can u send me the proteus view of this circuit? plz.

  • Hiren
    April 6, 2014

    Can anyone plzz send me the correct program file for this project because given program is not working.
    Thanks,
    Hiren

  • gragn
    March 19, 2014

    i need afull project on this title with a ckt diagram

  • kumara raja
    March 14, 2014

    sir making total kit all are ok sump,motor,leds,and relay but
    over head tank sensors,leds not working
    pls give me solutions pls sir
    pls give me reply

  • kumara raja
    March 11, 2014

    pls sir i have make total kit but not responding over head tank
    xtal 11.0592 pls rectify this

  • March 9, 2014

    sir yours 8051 projects are very nice. But i have some doubt. How to program my microcontroller plz rly answer

    • October 30, 2014

      you need a programmer to program the microcontroller

  • rajana
    March 4, 2014

    By setting P0 to 11111111B, the cathode of LED is floating (high impedance). This is open drain configuration?

  • rajanna
    March 4, 2014

    respected sir

    i want wire less water level controller project circuit diagram with detail and using 8051 water level controller details &pcb layout

  • March 3, 2014

    Can somebody convert the program to C language, i cant understand assembly language, tnx 🙂

    • Nili
      March 26, 2014

      Can anyone plzz send me the c language program of this water level project as i hav to merge it to control gate.

  • nyilae
    February 22, 2014

    Can you please send the whole code/program( in C language if possible) and flowchart? Thank you.

  • raja raja cholan
    February 18, 2014

    please send me the whole program and working on the basis of block diagram and all the details of water level controller using 8051…plzzzz sir

  • MAHESHPAWAR
    February 7, 2014

    sir send me more information about this project.

  • supriya singh
    February 6, 2014

    please send me the whole program and working on the basis of block diagram and all the details of water level controller using 8051…plzzzz sir

  • February 5, 2014

    Please send to my mail with complete report of the project with manual “ON

  • saranya
    February 1, 2014

    RESPECTED SIR,
    can you send me the full program and PCB layout of this circuit

  • karthik
    January 31, 2014

    Dear sir,

    REQUEST:::::

    Please give me a circuit with manual “ON”……

    Please send to my mail with complete report of the project with manual “ON”

  • anjali
    January 29, 2014

    Sir, this project is nice,I want to make it as a hobby project.. can you please send some more information on this,.. pleasing you,send some more information

  • anjali
    January 29, 2014

    Sir could u please send me more theory and progrm for my email…thanks for the advance..

  • NG
    December 21, 2013

    hello sir,could you please send me full program on above 8051 water level sensor?
    thanks in advanced

  • Meliza Dsilva
    December 14, 2013

    hello sir,
    plz..do send me more information on this.

  • kishorekumar
    December 10, 2013

    hello sir,
    I want to more information about water level controller using 8051 pls sir send me full program n more information of this project

  • Naeem
    December 9, 2013

    Dear

    Please send me hex file of water lever controller on my email address I am very thankful to you.

  • November 27, 2013

    We are interested in doing this project on water level indicator using 8051 micro controller…Sir can u please send further details and much more information about this very topic.

  • November 16, 2013

    I am very surprised with your circuit posted; but how we can change the programming language used here to c-language program ?

    In addition i need help concerning brief explanation

    10 Q 4 ur consideration!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • sushil
    November 13, 2013

    Hello kalpesh sir
    I want to review ur program plz send me ur program & I want to know that did u any change made in this circuit?

  • Dilkhush
    October 24, 2013

    Sir,can you give more detail about circuit diagram and how should we connect motor.or can you give simple circuit diagram to connect i/p and o/p in microcontroller and water tank and motor.

  • uthaya kumar
    October 18, 2013

    sir i want to know about this project.please send me the detailed explanation about it.

  • Brandon
    October 9, 2013

    Dear Friend , Can i have the full program for this “Water level Controller using 8051” . can i have it sent to my email . Thank you very much please .

  • September 20, 2013

    hello sir,
    I want to more information about water level controller using 8051 pls sir send me info. to my mail. Thanks….

  • pavan
    September 15, 2013

    sir what type of software was used for this program.

  • prakash
    September 7, 2013

    nice info.. thank you for such regarding content..

  • Nana Rey
    August 21, 2013

    hello sir… I need a full program n more information of this project… Thank you so much :))

    • khalid
      September 11, 2013

      after burning this code output never toggle’s with change is input is there any correction in code??
      pls help

  • vahid
    July 28, 2013

    hi. i need full program level controller using 8051 . so will u plz send to my mail id.

    • kaichun
      December 21, 2013

      hi bro…did u get any full program from admin?
      if yes pls send me the program..much appreciate
      !!

  • July 28, 2013

    I want to make project on water level measuring , monitoring & controlling.so please give me more information about it.

  • July 19, 2013

    I wanna make automatic water
    level controller .please send me
    relevant information ,procedure
    circuit ,pics ,videos expecting
    ur cooperation. Can anyone please tell me the
    connection of relay with the
    motor if it is to operate at
    220/240 V ?
    thank u
    Reply

    • SRIRAM
      August 22, 2015

      u need to give connection to a step up transformer in order to run the motor.

  • s.keerthiga
    July 19, 2013

    Hi ……I need ful information ab water level controller using 8051…..so will u plz send 2 my mail ID

  • Miss Hussain
    July 17, 2013

    Hello.can I please gt a complete report on how to make the water level controller?
    I m very new to the concept of microprocesormand microcontroller.can I please now wht exactly are sensors?
    Thank u

  • Kiran biradar
    July 11, 2013

    I want 2 know the detail information about ‘water pump operated on mobile’ for my project, pls snd it on my mail.

  • jothi
    July 9, 2013

    i want more project details about 8051.ple send my mail

  • devipriya
    June 22, 2013

    i need more information.so can you send to my mail pls…

  • Gimba Yaqubo
    June 12, 2013

    Can anyone please tell me the connection of relay with the motor if it is to operate at 220/240 V ?

  • Sam Victor
    June 1, 2013

    Pls attach a document on this project and send to me am ready to pay. I want to do it in my final year project. Thanks

  • Murali krishna
    May 15, 2013

    I wanna make automatic water level controller .please send me relevant information ,procedure circuit ,pics ,videos expecting ur cooperation
    thank u.

  • Murali krishna
    May 15, 2013

    I wanna make automatic water level controller .please send me relevant information ,procedure circuit ,pics ,videos expecting ur cooperation
    thank u

  • Murali krishna
    May 15, 2013

    I wanna make automatic water level controller .please send me relevant information ,procedure circuit ,pics ,videos
    thank u

  • victor lab
    May 14, 2013
  • victor lab
    May 14, 2013

    KALPESH CHHABHAIYA
    Pls can you snd a display pix of urs to my mail. Pls apart from d code modification, wht other modification did u do?

  • Sai Krishna
    May 14, 2013

    Sir,
    Can u please send me a detailed report on this project… i would like to undertake this project…. i would really appreciate it if you could do it at the earliset

  • Chandasaheb Patel
    April 22, 2013

    Hey i need full report on the water level controlling using 8051

  • Mehul
    April 18, 2013

    Hi kalpesh
    can you send me the true program?

  • sathya
    April 12, 2013

    sir,
    please provide me more information about water level sensing and how probes does the job in sensing the water. Please explain the principle of sensing the water level at various level.
    thank you,
    sathya.

  • shaikh b.d,
    April 10, 2013

    sir i need to know which program assemble to generate hex code,plz give me idea

  • apoorv jain
    March 18, 2013

    sir i want to know that can i use pic c compiler for this coding . if not which compiler i can use for generating its hex code or else u provide me the hex code.

  • nandhakumar
    March 14, 2013

    Hai

  • krishan
    March 7, 2013

    kaya hum at89s51 ki jagah per at89c51 use kar sakte h please reply my gmail id krishank652@gmail.com

  • panaqta
    March 1, 2013

    Respected sir, This circuit is very very good but i want to use this circuit with main water line (when the water is available in a line . the motor will start automatically?
    is it possible ????
    Best Regards
    M.saleem
    panaqta

  • Pradip
    February 27, 2013

    Dear Sir/Madam,
    I have convert program in to hex file & load it, but it’s not working. So if you give me hex file for the same ckt than it will helpful to me.
    Thank you

  • Yesse
    February 24, 2013

    Hi
    if i use this program to picaxe as it is . will it work.

  • Yesse
    February 24, 2013

    Hello sir
    is there any problem if i use picaxe instead of microcontrolle.

  • sarfraz
    February 21, 2013

    can we get 8051 microcontroller with allready programmed or we have to construct the ckt and then we have to programmed it using all the option of tank full or empety so on please let me know

  • M.saleem
    February 7, 2013

    can you do the addission

    • panaqta
      March 1, 2013

      Sir I cant

  • M.saleem
    February 7, 2013

    Hi,
    this water level circuit 8051 is very good.
    can you add under ground water pipe line water sensor. when the water comes in the under ground main pipe line. the moter will start automatically.

  • `JOSEPH MATHEW
    February 1, 2013

    how much it cost? 🙂

  • `JOSEPH MATHEW
    February 1, 2013

    can i get the embedded c program for this water level controller?

  • demz
    January 31, 2013

    can i used a at89s52 instead of at89s51?
    is the program working?
    i want to implement this diagram

  • santosh jha
    January 31, 2013

    i need help ….. i want pcb layout please anyone can help me
    contact no 9664531396

  • Haroon
    January 20, 2013

    hello,i need the complete procedure in implementing water level indicator using 8051 with Multisim software.

  • panaqta
    January 11, 2013

    your circuit is very good. but i have three questions
    .1. cant we use two motors One for upper Tank and other for sump tank. (how can)
    2. if the water is not in the line the sum pump stop, (is it possible)
    3. when the water in the line it will star automatically

    • M.saleem
      February 7, 2013

      waiting for the reply

  • chinmay
    January 5, 2013

    hello sir,
    would u plz let me know what short of precaution need to be taken for the water taken for use from the over head tank, as it is holding continous +5dc supply. also getting trouble in connecting the relay & the motor.
    waiting for yor reply.

  • $oham
    January 4, 2013

    hello jojo,
    can u plz tell what will be the changes in this project if we use 2 sump tank instead of 1

  • khajjoo
    January 1, 2013

    hello jojo
    i use this circuit to do my project,my problem is : if i do it in simulation what i put instead of water ?? thank you

  • khajjoo
    December 31, 2012

    hello,
    i have some questions : 1- are the sensors are copper wire with 2.2k ohm?
    2- i use proteus program designer which require hex file and when i put the code in compiler there are many errors???
    3- in the simulation (proteus)what i put instead of water ??

  • Akshay
    December 24, 2012

    Months ago, i tried this kind of concept, which senses the water level and controls the motor etc, the prototype worked very well, but the reason i ceased the actual implementation of the prototype was that i had a doubt about the risk of electric shock !!! When i googled about the minimum current that can be fatal, the results were shocking as well ! So please, guide me through this. i have completely working hardware (similar to yours) and software ready to be implemented…

  • Dhanasekaran
    December 15, 2012

    there is a mistake in your code the second line of the code..

    to initiates P0 as the output port you had moved MOV P0,#11111111B

    this should be MOV P0,#00000000B I do not no exactly this is a mistake or

    not kindly check it back & reply with your comment.

    any hot the design is good.

  • S.Priyadharhini
    December 10, 2012

    sir I am very interested in doing projects related to 8051. I have learnt it only in book I dont hav any idea abt the s/w used. can I get the compiler online give me advice to start a good poject. I am a beginer so help me

  • purnendu
    December 9, 2012

    i am unable to convert c file to hex file plz tell me procedures to convert in MIDE5 compiler, also send me a good c program for water level controller
    MY email is purnendukumar50@gmail.com

    • jojo
      December 9, 2012

      Hello Purnendu,

      We have lots of time constraints! I will definitely write an article on how to use MIDE 51. The assembly program for “water level controller” is quiet easy to understand. You just try reading it again and again (after having a good understanding of the instructions used)

  • abdul
    December 8, 2012

    than you
    if I change 8051 with pic 16f84a is there any change in code

    • jojo
      December 9, 2012

      Hello Abdul, you just cant replace 8051 with PIC or any other micro controller like AVR. The reason is difference in “hardware architecture”. You can consider replacing the AT89S51 (from Atmel) microcontroller we have used in the circuit with other controllers of similar architecture – say AT89c52 or some other controllers. The controller must be compatible with MCS-51 instruction set too. If you are planning to use PIC, you can do so by rewiring the circuit in accordance with PIC architecture. You will also have to rewrite the codes based on PIC instruction set.

    • suhail
      February 1, 2013

      ya, there is a change in writing program

  • purnendu
    December 8, 2012

    ould you pls explain to me that where do we connect the -ve terminals. and i am also confused abt the connection of the motor which pumps the water.
    i will be eagerly waiting for your reply.

    • jojo
      December 9, 2012

      @ Purnendu,

      Your doubts are not that clear! Can you be more specific ? If you are talking abt the “ground” terminal, then all terminals with a standard “ground symbol”, can be wired together as a common ground.

      • purnendu
        December 11, 2012

        i mean how to connect motor and relay and how do i generate -ve voltage for starting microcontroller. plz explain in detail.

  • purnendu
    December 8, 2012
  • purnendu
    December 8, 2012

    plz send me hex code for AT89S51 for this water level controller circuit
    http://www.circuitstoday.com/wp-content/uploads/2012/08/water-level-controller-8051.png

    its very urgent, i need it today

  • purnendu
    December 8, 2012

    plz send me hex code for AT89S51 for this water level controller circuit
    http://www.circuitstoday.com/wp-content/uploads/2012/08/water-level-controller-8051.png

    • jojo
      December 9, 2012

      Hello Purnendu,

      You can make the hex code yourself using a compiler software – like MIDE 51. You can download it from http://www.opcube.com/home.html#MIDE51

      • purnendu
        December 9, 2012

        I am a new user. what are the procedures for converting c file to hex file using MIDE 51 . tell me in detail.

  • Kaguai George
    December 4, 2012

    I didn’t manage to program the AT89S51,but was able to connect all other components. Can you please assist with the one you have already programmed and worked for you?
    You can reach me via my email.
    My email address is engeorgekkll@yahoo.com
    Reply

  • Ankit
    November 22, 2012

    hello sir,
    this is very interesting. thank you for sharing this with all of us.
    unfortunately i am still in my freshman year of college and have not studied micro-controllers in so much depth.
    could you pls explain to me that where do we connect the -ve terminals. and i am also confused abt the connection of the motor which pumps the water.
    i will be eagerly waiting for your reply.
    thank you 🙂

  • Manikanta Kumar
    November 11, 2012

    hi, can u post “Remote Controlling of Home Appliances using GSM (SMS Technology)” project??

  • October 13, 2012

    Its simple and easy….i took Rs 400 for me to construct this project….love it…thanks….

    • mus
      October 17, 2012

      hi.im from kenya and an engineering student i wanna kw more abt this project..can we be in touch personally.my email is musti786110@hotmail.com..ur rep will be much appreciated.thanks!!

    • pankaj
      December 31, 2012

      hi Santosh can you give your contact details…I need help to make it.

      TIA
      pankaj

    • pradeep
      February 26, 2015

      can you plz send me the program to burn…plz

    • juhi
      March 9, 2015

      can u please tell me the c code for this

  • kamesh
    October 11, 2012

    how much the components costs in south india

    • Jojo
      October 11, 2012

      Less than 300 INR for sure 🙂

  • October 11, 2012

    need clear explination about project

  • Morea
    October 6, 2012

    If i use IO card for input to the circuit or check the conditions then which type of IO card i should use i.e pull up (active high) or pull down (active low).

  • vivek
    September 25, 2012

    Great nice design tell me one more think,
    It is possible to use ULN2003 IC in the place of the transistors i think by using this ic we don’t have to use resistance and with the help of it circuit will became compact & more easy , is i am thinking write ? please tell me sir/mamm and can we also use a LCD screen to display the levels of water in the tank and when the tank is FULL will display on screen then a alarm will also run. what u think please tell me.

    • jojo
      September 25, 2012

      Hello Vivek,

      Its possible to use an LCD display for the purpose, You need to modify the program accordingly. Refer this article:- http://www.circuitstoday.com/interfacing-16×2-lcd-with-8051

      • vivek
        September 26, 2012

        Sir,
        i have no problem to use LCD for display the water level of tank i know its interfacing as well as programing with controller. but the real problem is how to USE IC ULN2003 at the place of transistors.and i think by useing this IC ULN2003 the circuit became more compact and cheaper. Is i am thinking right please tell me.

      • vivek
        September 26, 2012

        Sir,
        Please try to think this circuit with IC ULN2003.

    • Bharath K
      March 19, 2013

      hi vivek,

      we can use ULN2003 instead of transistors no problem with it. if you use ULN2003 the pull-up resistors are not required.

      Regard’s
      Bharath K

  • meher
    September 16, 2012

    thank u very much.

  • September 13, 2012

    i need a c program code for these abive assembly language program

  • vijay kumar
    September 13, 2012

    pls giv the other app of this project.

  • riksha
    September 10, 2012

    i need clear explanation of this project…. can u tell me clearly…

  • Yesse
    August 29, 2012

    Great!
    I real like this project .I want to conect this circuit to the screan for display will u tell me how should i coentct it

  • pirti notani
    August 20, 2012

    admin…. if u have its connection on pcb can u upload it plz… i need it

  • Kaguai George
    August 8, 2012

    Great,
    What is that component,X1 11.2MHZ? And do i use IC used in the circuit diagram ie IC1 AT89S51 OR 8051,what the difference? want to be sure before purchasing one. Please also assist me on how to instal program in an IC. If need be,you can use my email.
    Most obliged.

    • jojo
      August 8, 2012

      @Kaguai George – X1 is the crystal used – this article may be of some help – http://mihirknows.blogspot.in/2008/06/microcontroller-crystals-basic.html

      8051 is the first micro controller developed by Intel, where as AT89S51 is a version of 8051 (with many advanced features) from Atmel. You may refer data sheets of AT89S51 and 8051 to know differences between both. I would recommend to buy AT89S51 (because you can use it for a wide variety of applications compared to 8051).

      You can program AT89S51 using an In System Programmer (ISP).

      • Kaguai George
        November 10, 2012

        I didn’t manage to program the AT89S51,but was able to connect all other components. Can you please assist with the one you have already programmed and worked for you?
        You can reach me via my email.
        My email address is engeorgekkll@yahoo.com

    • admin
      August 8, 2012

      X1 is a crystal , it is used for generating the clock pulse for 8051.
      8051 is a general name and there are a large number of controllers belonging to this family.
      AT89S51 is one specific IC belonging to this family.You can use AT89S51, AT89C51 or anything like that. Go through the datasheets of these ICs for better understanding.

      • Kaguai George
        November 10, 2012

        I didn’t manage to program the AT89S51,but was able to connect all other components. Can you please assist with the one you have already programmed and worked for you?
        You can reach me via my email.
        My email address is engeorgekkll@yahoo.com

  • August 7, 2012

    AND YA u may forgot to connect all 2.2k (R9,R10,R11,R12) to connect at Vcc +5 AT Upper terminal which is floating right now……….

    • admin
      August 7, 2012

      you are right that was a drawing mistake and i have corrected it. Now its fine

  • August 7, 2012

    Hello Admin

    I have doubt about CJNE A,#11110000B,CJNE A,#11111000B,CJNE A,#11111100B,CJNE A,#11111110B.I think it should be like CJNE A,#00001111B,CJNE A,#00001111B,CJNE A,#00111111B,CJNE A,#01111111B.As we selected D7 TO D4, PLZ clear my doubt … 🙂

    • admin
      August 7, 2012

      There is no problem in using CJNE A,#11110000B,CJNE A,#11111000B,CJNE A,#11111100B,CJNE A,#11111110B. when touches a particular probe, the corresponding transistor goes ON and the corresponding input port pin goes low.

      Your approach will also work, but the transistor interface between port 2 and the sensor probes should be modified so that the corresponding input port pin become high when the water touches the corresponding probe

      • August 8, 2012

        But bro i as we connected the sensor to pin P2.7 TO P2.4 so when we checking the statues then 11110000B will indicate that P2.0=0, P2.1=0, P2.2=0, P2.3=0, P2.4=1, P2.5=1, P6.1=1, P2.7=1 BUT actually we want to do reverse of it ……….. I think u may be able to understand what i want to explain we . 00001111B will indicate that P2.0=1, P2.1=1, P2.2=1, P2.3=1, P2.4=0, P2.5=0, P6.1=0, P2.7=0 …

        • admin
          August 8, 2012

          I cannot fully understand what you mean. Is your doubt related to input interface or the comparison logic using CJNE. Pls make it clear. Any way i have again tested the circuit in real world and it works fine.

          Firstly 1s are written to all Port 2 pins.
          Suppose there is 3/4 level in the tank, then the condition of the port2 will be surely P2.0=1, P2.1=1, P2.2=1, P2.3=1, P2.4=1 and the rest will be zeros.

          • August 15, 2012

            Hello Admin

            I maid this project for my home automatic water level detector and maintainer.but your code have mistake as i already told you. you should have to check it one again. i changed it and my project is running now success full at my home ……… so plz take a note of it.

            kalpesh chhabhaiya
            (always with u)

          • Prudhvi
            February 27, 2013

            hi kalpesh. can u send me the correct program for this circuit. plese its urgent i have review tomorrow, please help me

          • prudhvi
            February 28, 2013

            hiii kalpesh. i need the working program for this project. please help me in it. i have a display tomorrow. please mail me the program its urgent

          • Mehul
            April 18, 2013

            Hello sir
            is this program running without error?
            Means true?
            And i want to know about connection of motor with relay.
            Plz sir reply me

        • jacob
          April 1, 2013

          you are correct. i obtained the output by doing as you mentioned

          • April 5, 2013

            this system is very good and i will try to develop it
            plz send me full c code for this system instead of assembly

          • Ilham Khrisna Nugraha
            April 7, 2013

            hello KALPESH CHHABHAIYA can u send me yr program? cause i have some problem with you,
            you can send me yr hex code or yr program listing

      • April 30, 2013

        smart ideas sir .can i use atmega16 instead 0f 8051.please advice through .and can i use AVR Studio to write the c program or send me the c program please

        • dholi
          July 28, 2013

          please tell me this application ,advantage or disadvantage

          • OMER
            October 5, 2013

            plese send me full program on my mail id

Leave a Reply

Your email address will not be published. Required fields are marked *