automation of waterpump using 8051 microcontroller

17
AUTOMATION OF WATER PUMP USING 8051 PROJECT MEMBERS 1.JOSHI PARTH S. [090340109038] 2.MALVI ANKIT M. [090340109003] 3.SHAH MIHIR M. [090340109022] 4.PATEL PARTH B. [090340109034] Guided by-> Mr. MAULIK SHAH

description

useful for automation based on microcontroller

Transcript of automation of waterpump using 8051 microcontroller

Page 1: automation of waterpump using 8051 microcontroller

AUTOMATION OF WATER PUMP USING 8051

PROJECT MEMBERS

1.JOSHI PARTH S. [090340109038] 2.MALVI ANKIT M. [090340109003]

3.SHAH MIHIR M. [090340109022] 4.PATEL PARTH B. [090340109034]

Guided by-> Mr. MAULIK SHAH

Page 2: automation of waterpump using 8051 microcontroller

Apparatus-:1.Watertank2.8051 microconteroller3.Spdt relay4.Capacitors5.Resistor6.Crystal7.Magnetic sensor8.motor+pump9.Rectifier circuit10.BC547 transistor11.Transformer12.AN7805 voltage regulator

Page 3: automation of waterpump using 8051 microcontroller

STARTSTART

-> ASK THE USER FOR SELECTING THE MODE-> ASK THE USER FOR SELECTING THE MODE

-> COMPILER WILL JUMP TO THE SELSECTED MODE-> COMPILER WILL JUMP TO THE SELSECTED MODE

AUTOMATIC ON/OFF MODE

AUTOMATIC ON/OFF MODE

PUMP WILL AUTOMATICALLY ON/OFF.IF LEVEL GOES DOWN->PUMP ONIF LEVEL IS FULL ->PUMP OFF

PUMP WILL AUTOMATICALLY ON/OFF.IF LEVEL GOES DOWN->PUMP ONIF LEVEL IS FULL ->PUMP OFF

MODE1MODE1 MODE2MODE2 MODE3MODE3

USER DEFINED ON/OFF MODE

USER DEFINED ON/OFF MODE

COMPENSATION MODECOMPENSATION MODE

USER WILL TURN MANUALLY ON/OFF THE PUMP

USER WILL TURN MANUALLY ON/OFF THE PUMP

CONTROLLER WILL KEEP AUTOMATICALLY COMPANSATE A SPECIFIC WATER LEVEL.

CONTROLLER WILL KEEP AUTOMATICALLY COMPANSATE A SPECIFIC WATER LEVEL.

Page 4: automation of waterpump using 8051 microcontroller

Controll Circuit Diagram

Page 5: automation of waterpump using 8051 microcontroller

PROGRAMMINGorg 0000hmov a,#00mov p0,amov p1,a set ‘0’ to all the pinsmov p2,amov p3,a setb p1.0 ;switch1setb p1.1 ;switch2setb p1.2 ;switch3setb p1.3 ;switch4 switch:jnb p1.0,mode1 ;mode1=manual on off mode use on off switch switch 5 and switch 6jnb p1.1,mode2 ;mode2=automatic on off mode , use sensor upper and sensor lowerjnb p1.2,mode3 ;mode3=compansating mode use middle sensor5

sjmp switchmode1: setb p1.4 ; switch5 to on the motor

Page 6: automation of waterpump using 8051 microcontroller

setb p1.5 ;switch6 for off the motorjb p1.4,mode1motoron: setb p2.0 ;on the motorjb p1.5,motoron ;motor on till off presed

clr p2.0 ;stop the motorclr p1.4clr p1.5sjmp mode1 mode2: setb p0.2 ;upper level sensorsetb p0.3 ;middle level sensorsetb p0.4 ;lover level sensor here: jnb p0.4,here ;monitor lower level sensorsetb p2.0 ;start the motorhere1:jb p0.2,here1 ;monitor upper sensorclr p2.0 ;stop the motorclr p0.2clr p0.3clr p0.4sjmp mode2

Page 7: automation of waterpump using 8051 microcontroller

clr p2.0 ;stop the motorclr p1.4clr p1.5sjmp mode1 mode2: setb p0.2 ;upper level sensorsetb p0.3 ;middle level sensorsetb p0.4 ;lover level sensor here: jnb p0.4,here ;monitor lower level sensorsetb p2.0 ;start the motorhere1:jb p0.2,here1 ;monitor upper sensorclr p2.0 ;stop the motorclr p0.2clr p0.3clr p0.4sjmp mode2

Page 8: automation of waterpump using 8051 microcontroller

mode3:setb p0.3 ;set middle level sensor

here2:jnb p0.3,here2 ;monitor middle sensor setb p2.0 ;start the motor

here3: jb p0.3,here3 ;monitor middle sensor clr p2.0 clr p0.3 sjmp mode3

end

Page 9: automation of waterpump using 8051 microcontroller

HARDWARE DESIGN OVERVIEW

Page 10: automation of waterpump using 8051 microcontroller

PROGRAMMING in KEIL

Page 11: automation of waterpump using 8051 microcontroller

Our device Price estimation

No. Elements Price(Rs.)1. Microcontroller AT89c2051 Controller 402. Rectifier and Voltage Regulator 503. Relay (220 v A.C.) 45

4. Current amplifier I.C.(ULN 2308) 15

5. Magnetic proximity sensors (3) 406. Switches , cable and L.E.D.s,plug points 30

7. P.C.B. 1208. Man effort cost 80

9. Extra duties and charges 50

TOTAL 470

Page 12: automation of waterpump using 8051 microcontroller

LOGIC IC

Page 13: automation of waterpump using 8051 microcontroller

DESCRIPTION OF CIRCUIT & COMPONENTS

1.Transformer-: To step down voltage from 230v to 12v(A.C).2.Rectifier-: Bridge rectifier is used to convert 12v ac into

D.C.3.capacitor-: To filter the rectifier output supply.4.AN7805-: To get regulated 5v dc supply for controller.5.8051(microcontroller)-: to sence the position of magnetic

sensor.6.crystal-: it is use for controller operation.7.Magnetic sensor-: It is just a switch . When magnet comes

near it, the sensor switch will be close.

Page 14: automation of waterpump using 8051 microcontroller

8.BC547(transistor)-: it will give the 12v d.c. current to the relay when it gets the signal from microcontroller.9.SPDT relay-: It will switch the motor when it gets the power from transistor.10.resistor-: to limit the base current of BC547.11.motor+pump-: to suck the water from the ground and send it for fill the watertank.

Page 15: automation of waterpump using 8051 microcontroller

Application-:

1.This system can be used anywhere ,where water pump are used to fill the watertank.

For example-:-residential buildings-Municipality water supply service-industries

Page 16: automation of waterpump using 8051 microcontroller

Advantages-:

1.Fully automatic service , so there is no need of mankind.

2.Low power consuption circuit.3.Easy to construct.4.Low coast.5.Reliability6.Less chances of failure

Page 17: automation of waterpump using 8051 microcontroller

THANK YOU