Project Report On Repaired)
Project Report On Repaired)
Project Report On Repaired)
“ AUTOMATIC PLANT
IRRIGATOR”
A MINOR PROJECT UNDER
MR. D.K.RAHEJA
(LECTURER,DEPTT OF ECE,AIT)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
ENGINEERING
AMBEDKAR INSTITUTE OF
TECHNOLOGY,DELHI
SUBMITTED BY :-
RITESH BATRA
(0571012806)
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
1
RAMESHWAR SHARMA
(0471012806)
VINOD CHATURVEDI
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
2
CONTENTS OF
REPORT
1. CERTIFICATE
2. INTRODUCTION
3. PROJECT IMPLEMENTATION
4. OVERALL BLOCK DIAGRAM
5. MICROCONTROLLER BLOCK
6. DTMF BLOCK
7. OP AMP BLOCK(SENSOR)
8. RELAY AND OPTOCOUPLER
BLOCK
9. OTHER REQUIREMENTS
10.SOFTWARE REQUIREMENTS
11.FLOW CHART
12.ASM FILE
13.HEX CODE
14.REFERENCES
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
3
CERTIFICATE
THIS IS TO CERTIFY THAT RITESH
BATRA (0571012806),RAMESHWAR
SHARMA(0471012806),VINOD
CHATURVEDI(0751012806) STUDENTS
OF 7TH SEMESTER,ECE HAS
COMPLETED “AUTOMATIC PLANT
CONTROLLER” PROJECT UNDER MY
GUIDANCE.I WISH THEM SUCCESS
THROUGHOUT THEIR LIVES.
(D.K.RAHEJA,LECTURER,DEPTT. OF ECE,AIT)
ACKNOWLEDGEM
ENT
INTRODUCTIO
N
IN THIS FAST PACED WORLD,HUMAN BEINGS REQUIRE
EVERYTHING TO BE AUTOMATED.OUR LIFESTYLE
DEMANDS EVERYTHING TO BE REMOTE
CONTROLLED.APART FROM FEW THINGS MAN HAS MADE
HIS LIFE AUTOMATED.AND WHY NOT? IN THIS WORLD OF
ADVANCE ELECTRONICS,LIFE OF HUMAN BEINGS SHOULD
BE SIMPLER.
HENCE,TO MAKE LIFE MORE SIMPLER AND
CONVINIENT,WE HAVE MADE “AUTOMATIC PLANT
IRRIGATOR”,A MODEL OF CONTROLLING IRRIGATION
FACILITIES TO HELP MILLIONS OF PEOPLE.
THIS MODEL USES ADVANCED DTMF
TECHNIQUES,SENSOR TECHNOLOGY WITH
MICROCONTROLLER TO MAKE A SMART SWITCHING
DEVICE.
PROJECT
IMPLEMENTATION
BLOCK
DIAGRAM MCU
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
7
BLOCK
MOT
R1
MOT
RELAY R2
SENSOR AND
BLOCK(LM324) OPTOCOU
MOTR
PLOR 3
SOIL DTMF
MOTR
4
BLOCK
6- MOTOR3-ON 7- MOTOR3-OFF
789
MCU
DTMF
BLOCK
BLOCK
VCC
Supply voltage-5V
GND
Ground.
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pullups.Port 1 also
receives the low-order address bytes during Flash programming and
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pullups. Port 2
emits the high-order address byte during fetches from external program
memory and during accesses to external data memory that use 16-bit
addresses (MOVX @ DPTR). In this applICation, it uses strong internal
pull-ups when emitting 1s.During accesses to external data memory that
use 8-bit addresses (MOVX @ RI),
Port 2 emits the contents of the P2 Special Function Register. Port 2 also
receives the high-order address bits and some control signals during
Flash programming and verifICation.
Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pullups.we have
used port 3 for interrupt as our sensor will continuosly sense the
moisture present and it will give control signal to p3.3 whICh is an
external interrupt enable pin,i.e. INT1. Port 3 also receives some control
signals for Flash programming and verifICation Port 3 also serves the
functions of various special features of the AT89C52 as listed below:
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the
program pulse input (PROG) during Flash programming. In normal
operation ALE is emitted at a constant rate of 1/6 the oscillator
frequency, and may be used for external timing or clocking purposes.
Note, however, that one ALE pulse is skipped during each access to
external Data Memory. If desired, ALE operation can be disabled by
setting bit 0 of SFR location 8EH. With the bit set, ALE is active only
during a MOVX or MOVC instruction. Otherwise, the pin is
weakly pulled high. Setting the ALE-disable bit has no effect if the
mICrocontroller is in external execution mode.
PSEN
Program Store Enable is the read strobe to external program memory.
When the AT89C52 is executing code from external program memory,
PSEN is activated twICe each machine cycle, except that two PSEN
activations are skipped during each access to external data memory.
EA/VPP
External Access Enable. EA must be strapped to GND in order to enable
the devICe to fetch code from external program memory locations
starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is
programmed, EA will be internally latched on reset. EA should be
strapped to VCC for internal program executions. This pin also
receives the 12-volt programming enable voltage (VPP) during Flash
programming, for parts that require 12-volt VPP.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
XTAL2
Output from the inverting oscillator amplifier.
697 Hz 1 2 3
770 Hz 4 5 6
852 Hz 7 8 9
941 Hz * 0 #
Block Diagram
Filter
The low and high group tones are separated by applying the dual-tone
signal to the inputs of two 6th order switched capacitor bandpass filters
with bandwidths that correspond to the bands enclosing the low and high
group tones. The filter also incorporates notches at 350 and 440 Hz,
providing excellent dial tone rejection. Each filter output is followed by
a single-order switched capacitor section that smooths the
Decoder
The M-8870 decoder uses a digital counting technique to determine the
frequencies of the limited tones and to verify that they correspond to
standard DTMF frequencies. A complex averaging algorithm is used to
protect against tone simulation by extraneous signals (such as voICe)
while tolerating small frequency variations. The algorithm ensures an
optimum combination of immunity to talkoff and tolerance to interfering
signals (third tones) and noise. When the detector recognizes the
simultaneous presence of two valid tones (known as signal condition), it
raises the Early Steering flag (ESt). Any subsequent loss of signal
condition will cause ESt to fall.
RELAY AND
OPTOCOUPLER UNIT
This unit provides the actual switching of appliances.the
mechanical on off is done by this unit only.The overall
relay and optocoupler board consists of
1.RELAY(JQC-3FC(T73)DC 12V.
2.OPTOCOUPLER(VT 38T Q5627)
3.DIODES AND TRANSISTORS
OVERALL WORKING OF
PROJECT.
P3
1. AT89S52 Microcontroller
2. Port 0 Connector
3. Port 1 Connector
4. Port 2 Connector
5. Port 3 Connector
6. 5V Power Supply Connector
7. 5V Power Supply Connector
8. Black Wire points to the LSB of each Port
9. EEPROM 24Cxx (optional)
10.LCD (optional)
11.5V Power Supply Connector
12.9 pin D-Shell Female Connector to get the input from
the controller to the computer.
13.MAX 232 for serial communication with PC ( optional )
14.25 pin D-Shell male connector to transfer the HEX
code from PC to the microcontroller
15.DC Jack for 12V Power supply
16.Power Indication LED
17.Buffer IC to toggle between the Programming mode
and the Run mode
18.Jumper
19.LED that signifies whether the Jumper is connected or
not
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
38
How to make the connections?
• Seven Segment
• LCD (Liquid Crystal Display)
• LED (Light Emitting Diode)
• Actuators (along with their driver circuitry like H-
Bridge)
• DC Motor
• Stepper Motor
• Limit Switch
• ADC (Analog to Digital Converter)
• DAC (Digital to Analog Converter)
• Proximity Sensors
• Metal Proximity Sensor
• Infra-Red Proximity Sensor
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
39
• Magnetic Proximity Sensor
• Ultrasonic Proximity Sensor
• DTMF (Dual Tone Multiple Frequency) Decoder- used
especially for wireless control
• Matrix Keyboard
• Any electrical home appliances to be switched ON/OFF
Troubleshooting
FLOWCHART
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
41
ASM FILE
ORG 0000H ;ORIGIN
MAIN1:
MOV IE,#10000100B ;ENABLING
INT1
HEX FILE
:03000000020030CB
:02002300FA22BF
:
1000300075A884E590B4F1020162B4F20201
66B4DD
:
10004000F302016AB4F402016EB4F5020182
B4F65F
:
10005000020176B4F7020172B4F802017EB4
F9D05D
:
10006000017AD2800130C2800130D2810130
C28158
:
100070000130D2820130C2820130D2830130
C2838A
:0C0080000130D280D281D282D2830130C4
DEPARTMENT OF ELECTRONICS & COMMUNICATION,AITPage
46
:00000001FF
REFERENCES
1.WWW.PLCIE.COM
2.WWW.8051PROJECTS.COM
3.WWW.PROJECTREPORTS.COM
4.MICROCONTROLLERS-
MAZZIDI
5.WWW.8052PROJECTS.COM
6.WWW.RICKEYSWORLD.COM
7.WWW.ATMEL.COM