Tank Motor Controller


The microcontroller(AT89C2051) used here is the brain of the circuit controlles all the desired function.It receives the signal of water sensing at pin no. 8(P3.4) from the IC 4049.Power supply is provided through a 12V/500mA transformer regulated for 5V by using IC7805.

Tank motor controller using MCU

Whenever the switch(SW) is pressed,buzzor produces sounds for 2 seconds & the relay energizes makes the whole circuit to a closed loop system until the water in the tank is not filled fully.During water filling LED blinks continuously.At last when water reaches to the top full level,the buzzor produces frequently generated sound about 20 times & motor goes switch-off.Vary the preset 470kΩ for better sensitivity of water.Two NPN transistors(BC548) are stand;one to drive the relay & another for buzzor.


Tank motor controller


The program is written as follows :

 Project : Tank Motor Controller
 Writer : Sameer Gupta
 Date : June 2012
 MCU : AT89C2051, XL : 12MHz */
sbit motor at P1.B7;
sbit buzzor at P1.B5;
sbit LED at P1.B3;
sbit signal at P3.B4;
unsigned short i;

void main()
{
P3=255;
P1=255;
motor=1;
buzzor=1;
LED=0;
delay_ms(2200);
buzzor=0;
LED=1;

while(1){
if(signal==1)
{
for(i=0;i<3;i++)
{
LED=0;
delay_ms(100);
LED=1;
delay_ms(2000);
}
}
if(signal==0)
{
LED=0;
delay_ms(3500); //3.5 Seconds signal receiving delay
for(i=0;i<20;i++)
{
buzzor=1;
LED=0;
delay_ms(150);
buzzor=0;
LED=1;
delay_ms(80);
}
motor=0;
delay_ms(5000);
}
}
}        //End

Download the code.

 

 

Add comment

Security code
Refresh

Comments  

work out world
#9 work out world 2014-07-24 19:23
Thanks for finally writing about >Tank Motor Controller
temple run 3ds
#8 temple run 3ds 2014-07-19 13:32
Hello my loved one! I wish to say that this article is awesome, nice written and include almozt alll important infos.
I'd like to peer extra posts like this .
penyakit vertigo
#7 penyakit vertigo 2014-07-16 15:01
Awesome things here. I'm very satisfied to see your article.
Thanks a lot and I am having a look ahead to touch you.
Will you please drop me a mail?
sinusitis
#6 sinusitis 2014-07-16 05:15
WOW just what I was looking for. Came here by searching for microcontroller
leisure
#5 leisure 2014-07-13 14:31
Good day very nice blog!! Man .. Excellent ..
Wonderful .. I will bookmark your web site and take the feeds also?
I am satisfied to find so many helpful info here in the put up, we'd like
develop extra strategies in this regard, thank you for sharing.

. . . . .
how to cure insomnia
#4 how to cure insomnia 2014-07-12 12:59
I like what you guys are up too. Such clever work and reporting!
Keep up the amazing works guys I've included you guys to our
blogroll.
service dog training
#3 service dog training 2014-07-11 14:30
Ahaa, its pleasant discussion on the topic of this piece of writing at this place at this
blog, I have read all that, so now me also commenting at this place.
xbox live gold
#2 xbox live gold 2014-07-11 02:06
It's in reality a nice and useful piece of info. I am satisfied that you shared this useful information with
us. Please stay us up to date like this.
Thank you for sharing.
official Magic
#1 official Magic 2014-07-10 04:26
Hello everyone, it's my first go to see at this web page, and paragraph is truly fruitful designed for me, keep up
posting these articles.
Amount:


1.png8.png2.png8.png2.png1.png
Visitors Today137
Visitors Yesterday132

  • Your IP Address : 172.18.210.22

1
Online

SG Templetes by Sameer Gupta