[b] [/b]Hi I am Min, I would like to get details on assembly language program for 8051 microcontroller of water level indicator. I need to do a project about this title, can u help me?can u send the assembly code and circuit to me ?
tq
Posts: 14,118
Threads: 61
Joined: Oct 2014
A water level controller using 8051 is shown in this article. A lot of water level controller projects have been posted on this website, but this is the first one based on a microcontroller. This water level controller monitors the level of the overload tank and automatically turns on the water pump when the level is below a preset limit. The upper tank level is indicated by using 5 LED's and the pump is turned off when the top tank is full. The pump can not 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 is lowered during a pumping cycle.
Circuit diagram
The core of this project is the AT89C51 microcontroller. The water level probes are connected to the P3.0, P3.1, P3.2 and P3.3 through the transistors. The P2 port connected to the LCD data pins and the RS, RW and EN control pins of the LCD are connected to the P1.0, P1.1 and P1.2, respectively.
Initially when the tank is empty, the LCD will display the EMPTY message and the engine will run automatically. When the water level reaches the level of a room, the LCD shows QUARTER and the engine continues to operate. For more levels, LCD displays HALF and ¾ FULL messages.
When the tank is full, the LCD shows FULL and the motor stops automatically. Once again the engine runs when the tank is empty.
Algorithm for water level controller circuit:
• First configure the controller inputs P3.0, P3.1, P3.2 and P3.3 as inputs and P3.4 as output.
• Now initialize the LCD screen.
• Check the water level input pins P3.0, P3.1, P3.2 and P3.3 continuously.
• If all the pins are low, then the display tank is empty on the LCD and the P3.4 pin high to run the motor automatically.
• High push on pin P3.0 indicates room level, display the same on the LCD.
• If P3.1 is high then the water level is half.
• Pulse high at P3.2 indicates 3 / 4th filled tank.
• If P3.3 is high then the tank is full, now make P3.4 low pins to turn off the engine automatically.