Академический Документы
Профессиональный Документы
Культура Документы
Title Page
College Certificate
Acknowledgement
Declaration
Abstract
Block Diagram
Introduction to project
Advantages
Applications
Conclusion
Reference
A PROJECT REPORT ON
BACHELOR OF TECHNOLOGY
IN
____________________________________ ENGINEERING
SUBMITTED BY
-------------------- (-------------)
--------------------- (-------------)
--------------------- (------------)
__________COLLEGE OF ENGINEERING
________________ ____________
______________
(External Examiner)
DECLARATION
We, the undersigned, declare that the project entitled RF BASED FARMER FRIENDLY
AGRICULTURAL ROBOT WITH MOTORIZED SHOVEL CONTROL
SYSTEM WITH AUTOMATIC SEED DISPENSING SYSTEM , being submitted
in partial fulfillment for the award of Bachelor of Engineering Degree in Electronics and Communication
Engineering, affiliated to _________ University, is the work carried out by us.
Domain : Embedded
DC Geared Motors : 4
H-Bridge : L293D
Crystal : 11.0592MHz
ABSTRACT
ABSTRACT:
Many advances in technology have made the agriculture business a much less labor
intensive industry to be a part of. If we think back even only 50 years, farmers were just
beginning to incorporate technologies into their farming techniques. It has been said that
individuals that are involved in the farming industry are some of the least susceptible to change.
They are very set in the ways of those came before them. When we take a look at the farming
industry now, we can see that this is rapidly changing. Farmers are looking for new ways to
implement technology to cut costs and reduce labor hours.
One of the ways that farmers are beginning to explore new technologies in farming come
from the autonomous tractor. The RF based tractor is something that is very new to the
agriculture industry, but is quickly gaining popularity from agriculture research companies
around the United States. These tractors are described by Farm Industry News as a tractor that
drives its solve with a computer in control. Although still in the research phase of development,
autonomous tractors are rapidly becoming more of a reality than an idea.
The RF modules used here are STT-433 MHz Transmitter, STR-433 MHz Receiver,
HT12E RF Encoder and HT12D RF Decoder. The Control switches are interfaced to the RF
transmitter through RF Encoder. The encoder continuously reads the status of the switches,
passes the data to the RF transmitter and the transmitter transmits the data.
This project uses regulated 5V, 750mA power supply. 7805 three terminal voltage regulator is
used for voltage regulation. Bridge type full wave rectifier is used to rectify the ac out put of
secondary of 230/18V step down transformer.
BLOCK DIAGRAM
Block Diagram: Transmitter:
Power Supply
Control
RF Encoder RF
HT12E Transmitter
Switch Array
AT89S52
STT - 433
Reset
Crystal
Geared
Motor -
I
H-
Bridge
RF
Geared
Receiver
Motor -
RF II
Decoder
AT89S52 Water
Relay
Sprinkler
Automatic
ploughing
Geared
Motor - Gearing
I Mechanism
H-
Bridge
Geared
Motor -
II
Automatic
seeder
Encoders are used to translate rotary or linear motion into a digital signal. Usually this is for the
purpose of monitoring or controlling motion parameters such as speed, rate, direction, distance or
position. When applying encoders, selecting the optimum model and specifying the appropriate
configuration are critical for success. Proper encoder selection begins by understanding the role
of the encoder in the motion control system.
To assist you with encoder selection, we’ve compiled a library of typical applications and
categorized them by both type and industry. These application examples represent a significant
portion of encoders used throughout the industrial marketplace.
RF Reciever:
An RF receiver module receives the modulated RF signal, and demodulates it. There are two
types of RF receiver modules: super heterodyne receivers and super-regenerative receivers.
Super-regenerative modules are usually low cost and low power designs using a series of
amplifiers to extract modulated data from a carrier wave. Super-regenerative modules are
generally imprecise as their frequency of operation varies considerably with temperature and
power supply voltage.[citation needed] Superheterodyne receivers have a performance advantage over
super-regenerative; they offer increased accuracy and stability over a large voltage and
temperature range. This stability comes from a fixed crystal design which in the past tended to
mean a comparatively more expensive product. However, advances in receiver chip design now
mean that currently there is little price difference between superheterodyne and super-
regenerative receiver modules.
GSM
GSM (Global System for Mobile Communications, originally Groupe Spécial Mobile), is a
standard developed by the European Telecommunications Standards Institute (ETSI).
It was created to describe the protocols for second-generation (2G) digital cellular networks used
by mobile phones and is now the default global standard for mobile communications – with over
90% market share, operating in over 219 countries and territories.
The basic heartbeat sensor consists of a light emitting diode and a detector like a light detecting
resistor or a photodiode. The heart beat pulses causes a variation in the flow of blood to
different regions of the body. When a tissue is illuminated with the light source, i.e. light emitted
by the led, it either reflects (a finger tissue) or transmits the light (earlobe). Some of the light is
absorbed by the blood and the transmitted or the reflected light is received by the light detector.
The amount of light absorbed depends on the blood volume in that tissue. The detector output is
in form of electrical signal and is proportional to the heart beat rate.
This signal is actually a DC signal relating to the tissues and the blood volume and the AC
component synchronous with the heart beat and caused by pulsatile changes in arterial blood
volume is superimposed on the DC signal. Thus the major requirement is to isolate that AC
component as it is of prime importance.
H bridge :
Though the load can in theory be anything you want, by far the most
pervasive application if H-bridges is with a brushed DC or bipolar stepper
motor (steppers need two H-bridges per motor) load. In the following I will
concentrate on applications as a brushed DC motor driver.
Motor :
INTRODUCTION TO PROJECT
Agricultural robots are the fastest growing technology developed to perform
various complex tasks that are difficult for humans to achieve. Recent news claims that the
Japanese government has taken an initiative to use robotic operators in lands swamped by March
2011 tsunami. This “Dream project” was planned to involve unmanned tractors working in the
farm on the disaster site. The robotic farmers are capable of cultivating vegetables, fruits,
soybeans, wheat and rice, which are then packed in boxes and shipped across the country by this
robotic technology. This process is accompanied by recycling of carbon dioxide using machinery
in an attempt to reduce the use of fertilizers.
A single solution to implement precision agriculture is the development of a single gantry robot
that can perform several precision agriculture related operations. The main objective of this
system is to implement soil monitoring and precision irrigation on each crop, perform de-
weeding and design a cultivated field using accurate robotic crop planning.
The idea of robotic agriculture (agricultural environments serviced by smart machines) is not a
new one. Many engineers have developed driverless tractors in the past but they have not been
successful as they did not have the ability to embrace the complexity of the real world. Most of
them assumed an industrial style of farming where everything was known before hand and the
machines could work entirely in predefined ways – much like a production line. The approach is
now to develop smarter machines that are intelligent enough to work in an unmodified or semi
natural environment. These machines do not have to be intelligent in the way we see people as
intelligent but must exhibit sensible behavior in recognized contexts. In this way they should
have enough intelligence embedded within them to behave sensibly for long periods of time,
unattended, in a semi-natural environment, whilst carrying out a useful task. One way of
understanding the complexity has been to identify what people do in certain situations and
decompose the actions into machine control. This is called behavioral robotics and a draft
method for applying this approach to agriculture is given in Blackmore.
The approach of treating crop and soil selectively according to their needs by small
autonomous machines is the natural next step in the development of Precision Farming (PF) as it
reduces the field scale right down to the individual plant or Phytotechnology (Shibusawa 1996).
One simple definition of PF is doing the right thing in the right place at the right time with the
right amount. This definition not only applies to robotic agriculture (RA) and Phytotechnology
but it also implies a level of automation inherent in the machines. Automatic sensing and control
(on-the-go) for each task is also important and many research papers have shown that these
systems are feasible but most are too slow, and hence not economically viable, to be operated on
a manned tractor. Once these systems are mounted on an autonomous vehicle, they may well
suddenly become commercially viable.
INTRODUCTION TO EMBEDDED SYSTEMS
Embedded Systems Overview:
This is in direct contrast to the personal computer in the family room. It too is comprised
of computer hardware and software and mechanical components (disk drives, for example).
However, a personal computer is not designed to perform a specific function rather; it is able to
do many different things. Many people use the term general-purpose computer to make this
distinction clear. As shipped, a general-purpose computer is a blank slate; the manufacturer does
not know what the customer will do wish it. One customer may use it for a network file server
another may use it exclusively for playing games, and a third may use it to write the next great
American novel.
At the possible risk of confusing you, it is important to point out that a general-purpose
computer is itself made up of numerous embedded systems. For example, my computer consists
of a keyboard, mouse, video card, modem, hard drive, floppy drive, and sound card-each of
which is an embedded system. Each of these devices contains a processor and software and is
designed to perform a specific function. For example, the modem is designed to send and receive
digital data over analog telephone line. That's it and all of the other devices can be summarized
in a single sentence as well.
If an embedded system is designed well, the existence of the processor and software
could be completely unnoticed by the user of the device. Such is the case for a microwave oven,
VCR, or alarm clock. In some cases, it would even be possible to build an equivalent device that
does not contain the processor and software. This could be done by replacing the combination
with a custom integrated circuit that performs the same functions in hardware. However, a lot of
flexibility is lost when a design is hard-cooled in this way. It is mush easier, and cheaper, to
change a few lines of software than to redesign a piece of custom hardware.
Given the definition of embedded systems earlier is this chapter; the first such systems
could not possibly have appeared before 1971. That was the year Intel introduced the world's
first microprocessor. This chip, the 4004, was designed for use in a line of business calculators
produced by the Japanese Company Busicom. In 1969, Busicom asked Intel to design a set of
custom integrated circuits-one for each of their new calculator models. The 4004 was Intel's
response rather than design custom hardware for each calculator, Intel proposed a general-
purpose circuit that could be used throughout the entire line of calculators. Intel's idea was that
the software would give each calculator its unique set of features.
The microcontroller was an overnight success, and its use increased steadily over the
next decade. Early embedded applications included unmanned space probes, computerized traffic
lights, and aircraft flight control systems. In the 1980s, embedded systems quietly rode the
waves of the microcomputer age and brought microprocessors into every part of our kitchens
(bread machines, food processors, and microwave ovens), living rooms (televisions, stereos, and
remote controls), and workplaces (fax machines, pagers, laser printers, cash registers, and credit
card readers).
It seems inevitable hat the number of embedded systems will continue to increase rapidly.
Already there are promising new embedded devices that have enormous market potential; light
switches and thermostats that can be central computer, intelligent air-bag systems that don't
inflate when children or small adults are present, pal-sized electronic organizers and personal
digital assistants (PDAs), digital cameras, and dashboard navigation systems. Clearly, individuals
who possess the skills and desire to design the next generation of embedded systems will be in
demand for quite some time.
The issue of what if a deadline is missed is a crucial one. For example, if the real-time
system is part of an airplane's flight control system, it is possible for the lives of the passengers
and crew to be endangered by a single missed deadline. However, if instead the system is
involved in satellite communication, the damage could be limited to a single corrupt data packet.
The more severe the consequences, the more likely it will be said that the deadline is "hard" and
thus, the system is a hard real-time system. Real-time systems at the other end of this discussion
are said to have "soft" deadlines.
All of the topics and examples presented in this book are applicable to the designers of
real-time system who is more delight in his work. He must guarantee reliable operation of the
software and hardware under all the possible conditions and to the degree that human lives
depend upon three system's proper execution, engineering calculations and descriptive
paperwork.
Application Areas
Nearly 99 per cent of the processors manufactured end up in embedded systems. The
embedded system market is one of the highest growth areas as these systems are used in very
market segment- consumer electronics, office automation, industrial automation, biomedical
engineering, wireless communication, data communication, telecommunications, transportation,
military and so on.
Consumer appliances:
At home we use a number of embedded systems which include digital camera, digital
diary, DVD player, electronic toys, microwave oven, remote controls for TV and air-conditioner,
VCO player, video game consoles, video recorders etc. Today’s high-tech car has about 20
embedded systems for transmission control, engine spark control, air-conditioning, navigation
etc. Even wristwatches are now becoming embedded systems. The palmtops are powerful
embedded systems using which we can carry out many general-purpose tasks such as playing
games and word processing.
Office automation:
The office automation products using em embedded systems are copying machine, fax
machine, key telephone, modem, printer, scanner etc.
Industrial automation:
Today a lot of industries use embedded systems for process control. These include
pharmaceutical, cement, sugar, oil exploration, nuclear energy, electricity generation and
transmission. The embedded systems for industrial use are designed to carry out specific tasks
such as monitoring the temperature, pressure, humidity, voltage, current etc., and then take
appropriate action based on the monitored levels to control other devices or to send information
to a centralized monitoring station. In hazardous industrial environment, where human presence
has to be avoided, robots are used, which are programmed to do specific jobs. The robots are
now becoming very powerful and carry out many interesting and complicated tasks such as
hardware assembly.
Medical electronics:
Telecommunications:
Wireless technologies:
Advances in mobile communications are paving way for many interesting applications
using embedded systems. The mobile phone is one of the marvels of the last decade of the 20th
century. It is a very powerful embedded system that provides voice communication while we are
on the move. The Personal Digital Assistants and the palmtops can now be used to access
multimedia services over the Internet. Mobile communication infrastructure such as base station
controllers, mobile switching centers are also powerful embedded systems.
Insemination:
Testing and measurement are the fundamental requirements in all scientific and
engineering activities. The measuring equipment we use in laboratories to measure parameters
such as weight, temperature, pressure, humidity, voltage, current etc. are all embedded systems.
Test equipment such as oscilloscope, spectrum analyzer, logic analyzer, protocol analyzer, radio
communication test set etc. are embedded systems built around powerful processors. Thank to
miniaturization, the test and measuring equipment are now becoming portable facilitating easy
testing and measurement in the field by field-personnel.
Security:
Security of persons and information has always been a major issue. We need to protect
our homes and offices; and also the information we transmit and store. Developing embedded
systems for security applications is one of the most lucrative businesses nowadays. Security
devices at homes, offices, airports etc. for authentication and verification are embedded systems.
Encryption devices are nearly 99 per cent of the processors that are manufactured end up in~
embedded systems. Embedded systems find applications in every industrial segment- consumer
electronics, transportation, avionics, biomedical engineering, manufacturing, process control and
industrial automation, data communication, telecommunication, defense, security etc. Used to
encrypt the data/voice being transmitted on communication links such as telephone lines.
Biometric systems using fingerprint and face recognition are now being extensively used for user
authentication in banking applications as well as for access control in high security buildings.
Finance:
Financial dealing through cash and cheques are now slowly paving way for transactions
using smart cards and ATM (Automatic Teller Machine, also expanded as Any Time Money)
machines. Smart card, of the size of a credit card, has a small micro-controller and memory; and
it interacts with the smart card reader! ATM machine and acts as an electronic wallet. Smart card
technology has the capability of ushering in a cashless society. Well, the list goes on. It is no
exaggeration to say that eyes wherever you go, you can see, or at least feel, the work of an
embedded system!
Unit (CPU). This hardware also contains memory chips onto which the software is loaded. The
software residing on the memory chip is also called the ‘firmware’. The embedded system
architecture can be represented as a layered architecture as shown in Fig.
The operating system runs above the hardware, and the application software runs above
the operating system. The same architecture is applicable to any computer including a desktop
computer. However, there are significant differences. It is not compulsory to have an operating
system in every embedded system. For small appliances such as remote control units, air
conditioners, toys etc., there is no need for an operating system and you can write only the
software specific to that application. For applications involving complex processing, it is
advisable to have an operating system. In such a case, you need to integrate the application
software with the operating system and then transfer the entire software on to the memory chip.
Once the software is transferred to the memory chip, the software will continue to run for a long
time you don’t need to reload new software.
Now, let us see the details of the various building blocks of the hardware of an embedded
system. As shown in Fig. the building blocks are;
· Input Devices
· Output devices
· Communication interfaces
· Application-specific circuitry
The Central Processing Unit (processor, in short) can be any of the following:
microcontroller, microprocessor or Digital Signal Processor (DSP). A micro-controller is a low-
cost processor. Its main attraction is t2hat on the chip itself, there will be many other components
such as memory, serial communication interface, analog-to digital converter etc. So, for small
applications, a micro-controller is the best choice as the number of external components required
will be very less. On the other hand, microprocessors are more powerful, but you need to use
many external components with them. D5P is used mainly for applications in which signal
processing is involved such as audio and video processing.
Memory:
The memory is categorized as Random Access Memory (RAM) and Read Only Memory
(ROM). The contents of the RAM will be erased if power is switched off to the chip, whereas
ROM retains the contents even if the power is switched off. So, the firmware is stored in the
ROM. When power is switched on, the processor reads the ROM; the program is program is
executed.
Input devices:
Unlike the desktops, the input devices to an embedded system have very limited
capability. There will be no keyboard or a mouse, and hence interacting with the embedded
system is no easy task. Many embedded systems will have a small keypad-you press one key to
give a specific command. A keypad may be used to input only the digits. Many embedded
systems used in process control do not have any input device for user interaction; they take
inputs from sensors or transducers 1’fnd produce electrical signals that are in turn fed to other
systems.
Output devices:
The output devices of the embedded systems also have very limited capability. Some
embedded systems will have a few Light Emitting Diodes (LEDs) to indicate the health status of
the system modules, or for visual indication of alarms. A small Liquid Crystal Display (LCD)
may also be used to display some important parameters.
Communication interfaces:
The embedded systems may need to, interact with other embedded systems at they may
have to transmit data to a desktop. To facilitate this, the embedded systems are provided with one
or a few communication interfaces such as RS232, RS422, RS485, Universal Serial Bus (USB),
IEEE 1394, Ethernet etc.
Application-specific circuitry:
Sensors, transducers, special processing and control circuitry may be required fat an
embedded system, depending on its application. This circuitry interacts with the processor to
carry out the necessary work. The entire hardware has to be given power supply either through
the 230 volts main supply or through a battery. The hardware has to design in such a way that the
power consumption is minimize
EXPLANATION OF EACH BLOCK
Power Supply Design
POWER SUPPLY:
The input to the circuit is applied from the regulated power supply. The a.c. input i.e.,
230V from the mains supply is step down by the transformer to 12V and is fed to a rectifier. The
output obtained from the rectifier is a pulsating d.c voltage. So in order to get a pure d.c voltage,
the output voltage from the rectifier is fed to a filter to remove any a.c components present even
after rectification. Now, this voltage is given to a voltage regulator to obtain a pure constant dc
voltage.
230V AC
D.C
50Hz Output
Usually, DC voltages are required to operate various electronic equipment and these
voltages are 5V, 9V or 12V. But these voltages cannot be obtained directly. Thus the a.c input
available at the mains supply i.e., 230V is to be brought down to the required voltage level. This
is done by a transformer. Thus, a step down transformer is employed to decrease the voltage to a
required level.
Rectifier:
The output from the transformer is fed to the rectifier. It converts A.C. into pulsating D.C.
The rectifier may be a half wave or a full wave rectifier. In this project, a bridge rectifier is used
because of its merits like good stability and full wave rectification.
The Bridge rectifier is a circuit, which converts an ac voltage to dc voltage using both
half cycles of the input ac voltage. The Bridge rectifier circuit is shown in the figure. The circuit
has four diodes connected to form a bridge. The ac input voltage is applied to the diagonally
opposite ends of the bridge. The load resistance is connected between the other two ends of the
bridge.
For the positive half cycle of the input ac voltage, diodes D1 and D3 conduct, whereas
diodes D2 and D4 remain in the OFF state. The conducting diodes will be in series with the load
For the negative half cycle of the input ac voltage, diodes D2 and D4 conduct whereas,
D1 and D3 remain OFF. The conducting diodes D2 and D4 will be in series with the load
resistance RL and hence the current flows through RL in the same direction as in the previous half
Capacitive filter is used in this project. It removes the ripples from the output of rectifier
and smoothens the D.C. Output received from this filter is constant until the mains voltage and
load is maintained constant. However, if either of the two is varied, D.C. voltage received at this
point changes. Therefore a regulator is applied at the output stage.
Voltage regulator:
As the name itself implies, it regulates the input applied to it. A voltage regulator is an
electrical regulator designed to automatically maintain a constant voltage level. In this project,
power supply of 5V and 12V are required. In order to obtain these voltage levels, 7805 and 7812
voltage regulators are to be used. The first number 78 represents positive supply and the numbers
05, 12 represent the required output voltage levels. The L78xx series of three-terminal positive
regulators is available in TO-220, TO-220FP, TO-3, D2PAK and DPAK packages and several
fixed output voltages, making it useful in a wide range of applications. These regulators can
provide local on-card regulation, eliminating the distribution problems associated with single
point regulation. Each type employs internal current limiting, thermal shut-down and safe area
protection, making it essentially indestructible. If adequate heat sinking is provided, they can
deliver over 1 A output current. Although designed primarily as fixed voltage regulators, these
devices can be used with external components to obtain adjustable voltage and currents.
STT-433 MHz TRANSMITTER
The STT-433 is ideal for remote control applications where low cost and longer range is
required.
The transmitter operates from a1.5-12V supply, making it ideal for battery-powered
applications.
The transmitter employs a SAW-stabilized oscillator, ensuring accurate frequency control
for best range performance.
The manufacturing-friendly SIP style package and low-cost make the STT-433 suitable
for high volume applications.
Features
PIN DESCRIPTION:
GND
DATA
Digital data input. This input is CMOS compatible and should be driven with CMOS level
inputs.
VCC
Operating voltage for the transmitter. VCC should be bypassed with a .01uF ceramic
capacitor and filtered with a 4.7uF tantalum capacitor. Noise on the power supply will degrade
transmitter noise performance.
ANT
50 ohm antenna output. The antenna port impedance affects output power and harmonic
emissions. Antenna can be single core wire of approximately 17cm length or PCB trace antenna.
APPLICATION:
The typical connection shown in the above figure cannot work exactly at all times because there
will be no proper synchronization between the transmitter and the microcontroller unit. i.e.,
whatever the microcontroller sends the data to the transmitter, the transmitter is not able to accept
this data as this will be not in the radio frequency range. Thus, we need an intermediate device
which can accept the input from the microcontroller, process it in the range of radio frequency
range and then send it to the transmitter. Thus, an encoder is used.
The HT 12E Encoder ICs are series of CMOS LSIs for Remote Control system applications.
They are capable of Encoding 12 bit of information which consists of N address bits and 12-N
data bits. Each address/data input is externally trinary programmable if bonded out.
ENCODER HT12E:
PIN DESCRIPTION:
PIN DESCRIPTION:
Information word
IfL/MB=1 the device is in the latch mode(for use with the latch type of
d a t a d e c o d e r s ) . W h e n t h e t r a n s - mission enable is removed during a transmission, the
DOUT pin outputs a complete word and then s t o p s . O n t h e o t h e r h a n d , i f L / M B = 0 t h e
d e v i c e i s i n t h e m o m e n t a r y m o d e ( f o r u s e w i t h t h e m o m e n t a r y type of data
decoders). When the transmission enable is removed during a transmission, the DOUT outputs a
complete word and then adds 7 words all with the “1” data code.
Each programmable address/ data can be externally set to one of the following two logic states as
shown below
Transmission enable
For the TE trigger type of encoders, transmission is enabled by applying a high signal to the TE
pin. But for the Data trigger type of encoders, it is enabled by applying a high signal to one of the
data pins D12~D17.
FLOWCHART:
The graph shown above decides the resistance value to be connected to the oscillator pins of the
encoder. The oscillator resistance will have an effect on startup time and steady state amplitude.
For the data communication at a particular frequency in the RF range, both the transmitter and
receiver should be set to a particular frequency. The exact setting of the frequency can be
obtained in the encoder and decoder circuits. The frequency value can be set using the graph.
The operating voltage of encoder and decoder is 5V. Thus looking at the graph at 5V VDD, if we
select the frequency in the range of 1.25 and 1.50 we are selecting 220k resistance.
The data sent from the microcontroller is encoded and sent to RF transmitter. The data is
transmitted on the antenna pin. Thus, this data should be received on the destination i.e, on RF
receiver.
PINOUT:
ANT
Antenna input.
GND
VCC pins are electrically connected and provide operating voltage for the receiver. VCC can be
applied to either or both. VCC should be bypassed with a .1μF ceramic capacitor. Noise on the
power supply will degrade receiver sensitivity.
DATA
This output is capable of driving one TTL or CMOS load. It is a CMOS compatible output.
Similarly, as the transmitter requires an encoder, the receiver module requires a decoder.
The decoder used is HT12D from HOLTEK SEMICONDUCTOR INC.
Features
The 3^18 decoders are a series of CMOS LSIs for remote control system applications.
They are paired with the 3^18 series of encoders.
For proper operation, a pair of encoder/decoder pair with the same number of address and
data format should be selected.
The 3^18 series of decoders receives serial address and data from that series of encoders
that are transmitted by a carrier using an RF medium.
A signal on the DIN pin then activates the oscillator which in turns decodes the
incoming address and data.
It then compares the serial input data twice continuously with its local address.
If no errors or unmatched codes are encountered, the input data codes are decoded and
then transferred to the output pins.
The VT pin also goes high to indicate a valid transmission. That will last until the address
code is incorrect or no signal has been received.
The 3^18 decoders are capable of decoding 18 bits of information that consists of N bits
of address and 18–N bits of data.
Oscillator frequency versus supply voltage
fosc
FLOW CHART:
BASIC APPLICATION CIRCUIT OF HT12D DECODER:
DEMO CIRCUIT: Reception circuit
1. The data transmitted into the air is received by the receiver. The received data is taken
from the data line of the receiver and is fed to the decoder .The output of decoder is given
to microcontroller and then data is processed according to the applications.
BC 557 TRANSISTOR:
APPLICATIONS
TRANSMITTER CIRCUIT:
Sprinkler Specifications
Product Description
Descriptions
Functions
Power: Electric
Type: Diaphragm Pump
Duty Cycle: Working Intermittent
Certifications: CE, RoHS, ISO9001: 2000
Voltage: 12vdc & 115V AC( Consult Factory for
Other Voltage
Soil Moisture Sensor
Soil Moisture Sensor (Order Code SMS-BTA) The Soil Moisture Sensor is used to measure the
volumetric water content of soil. This makes it ideal for performing experiments in courses such as soil
science, agricultural science, environmental science, horticulture, botany, and biology
How the Soil Moisture Sensor Works The Soil Moisture Sensor uses capacitance to measure dielectric
permittivity of the surrounding medium. In soil, dielectric permittivity is a function of the water content.
The sensor creates a voltage proportional to the dielectric permittivity, and therefore the water content of
the soil. The sensor averages the water content over the entire length of the sensor. There is a 2 cm zone
of influence with respect to the flat surface of the sensor, but it has little or no sensitivity at the extreme
edges. The figure above shows the electromagnetic field lines along a cross-section of the sensor,
illustrating the 2 cm zone of influence.
What is Zigbee Technology?
Zigbee Modem
Zigbee is low-cost and low-powered mesh network widely deployed for controlling and
monitoring applications where it covers 10-100 meters within the range. This communication
system is less expensive and simpler than the other proprietary short-range wireless sensor
networks as Bluetooth and Wi-Fi.
Zigbee supports different network configurations for master to master or master to slave
communications. And also, it can be operated in different modes as a result the battery power is
conserved. Zigbee networks are extendable with the use of routers and allow many nodes to
interconnect with each other for building a wider area network.
Zigbee Architecture
Zigbee protocol architecture consists of a stack of various layers where IEEE 802.15.4 is defined
by physical and MAC layers while this protocol is completed by accumulating Zigbee’s own
network and application layers.
In a beacon mode, when there is no data communication from end devices, then the routers and
coordinators enter into sleep state. Periodically this coordinator wakes up and transmits the
beacons to the routers in the network. These beacon networks are work for time slots which
means, they operate when the communication needed results in lower duty cycles and longer
battery usage. These beacon and non-beacon modes of Zigbee can manage periodic (sensors
data), intermittent (Light switches) and repetitive data types.
Data transfer
The data is transferred in packets. These have a maximum size of 128 bytes, allowing for a
maximum payload of 104 bytes. Although this may appear low when compared to other systems,
the applications in which 802.15.4 and ZigBee are likely to be used should not require very high
data rates.
The standard supports 64 bit IEEE addresses as well as 16 bit short addresses. The 64 bit
addresses uniquely identify every device in the same way that devices have a unique IP address.
Once a network is set up, the short addresses can be used and this enables over 65000 nodes to
be supported.
It also has an optional superframe structure with a method for time synchronisation. In addition
to this it is recognised that some messages need to be given a high priority. To achieve this, a
guaranteed time slot mechanism has been incorporated into the specification. This enables these
high priority messages to be sent across the network as swiftly as possible.
MICROCONTROLLER OVERVIEW
Microcontroller Microprocessor
It is built with CMOS technology, which requires less power to Its power
operate. consumption is
high because it
has to control the
entire system.
Types of Microcontrollers
Microcontrollers are divided into various categories based on memory,
architecture, bits and instruction sets. Following is the list of their types −
Bit
Based on bit configuration, the microcontroller is further divided into three
categories.
Memory
Based on the memory configuration, the microcontroller is further divided
into two categories.
External memory microcontroller − This type of microcontroller is designed
in such a way that they do not have a program memory on the chip. Hence, it is
named as external memory microcontroller. For example: Intel 8031
microcontroller.
Instruction Set
Based on the instruction set configuration, the microcontroller is further
divided into two categories.
CISC − CISC stands for complex instruction set computer. It allows the user to
insert a single instruction as an alternative to many simple instructions.
RISC − RISC stands for Reduced Instruction Set Computers. It reduces the
operational time by shortening the clock cycle per instruction.
Applications of Microcontrollers
Microcontrollers are widely used in various different devices such as −
8051
8051 microcontroller is designed by Intel in 1981. It is an 8-bit
microcontroller. It is built with 40 pins DIP (dual inline package), 4kb of
ROM storage and 128 bytes of RAM storage, 2 16-bit timers. It consists of
are four parallel 8-bit ports, which are programmable as well as addressable
as per the requirement. An on-chip crystal oscillator is integrated in the
microcontroller having crystal frequency of 12 MHz.
Let us now discuss the architecture of 8051 Microcontroller.
In the following diagram, the system bus connects all the support devices to
the CPU. The system bus consists of an 8-bit data bus, a 16-bit address bus
and bus control signals. All other devices like program memory, ports, data
memory, serial interface, interrupt control, timers, and the CPU are all
interfaced together through the system bus.
Pin 9 − It is a RESET pin, which is used to reset the microcontroller to its initial
values.
Pins 10 to 17 − These pins are known as Port 3. This port serves some
functions like interrupts, timer input, control signals, serial communication
signals RxD and TxD, etc.
Pins 18 & 19 − These pins are used for interfacing an external crystal to get
the system clock.
Pin 29 − This is PSEN pin which stands for Program Store Enable. It is used to
read a signal from the external program memory.
Pin 30 − This is EA pin which stands for External Access input. It is used to
enable/disable the external memory interfacing.
Pin 31 − This is ALE pin which stands for Address Latch Enable. It is used to
demultiplex the address-data signal of port.
Pins 32 to 39 − These pins are known as Port 0. It serves as I/O port. Lower
order address and data bus signals are multiplexed using this port.
Pin configuration, i.e. the pin can be configured as 1 for input and 0 for output
as per the logic state.
o When the external memory is used then the lower address byte
(addresses A0A7) is applied on it, else all bits of this port are configured
as input/output.
Output Configuration
When the pin is configured as an output, then it acts as an “open drain”. By
applying logic 0 to a port bit, the appropriate pin will be connected to
ground (0V), and applying logic 1, the external output will keep on
“floating”.
Port 1
P1 is a true I/O port as it doesn’t have any alternative functions as in P0,
but this port can be configured as general I/O only. It has a built-in pull-up
resistor and is completely compatible with TTL circuits.
Port 2
P2 is similar to P0 when the external memory is used. Pins of this port
occupy addresses intended for the external memory chip. This port can be
used for higher address byte with addresses A8-A15. When no memory is
added then this port can be used as a general input/output port similar to
Port 1.
Port 3
In this port, functions are similar to other ports except that the logic 1 must
be applied to appropriate bit of the P3 register.
When these pins are configured as inputs (i.e. logic 1), then built-in pull-up
resistors provide very weak current, but can activate up to 4 TTL inputs of LS
series.
If all 8 bits of a port are active, then the total current must be limited to 15mA
(port P0: 26mA).
If all ports (32 bits) are active, then the total maximum current must be limited
to 71mA.
Interrupts are the events that temporarily suspend the main program, pass
the control to the external sources and execute their task. It then passes
the control to the main program where it had left off.
8051 has 5 interrupt signals, i.e. INT0, TFO, INT1, TF1, RI/TI. Each
interrupt can be enabled or disabled by setting bits of the IE register and
the whole interrupt system can be disabled by clearing the EA bit of the
same register.
A low priority interrupt can only be interrupted by the high priority interrupt, but
not interrupted by another low priority interrupt.
If the requests of the same priority levels are received simultaneously, then the
internal polling sequence determines which request is to be serviced.
TCON Register
TCON register specifies the type of external interrupt to the microcontroller.
DC GEARED MOTORS
DC motor
A DC motor is an electric motor that runs on direct current (DC) electricity.
DC Motor Connections
Figure shows schematically the different methods of connecting the field and armature circuits in
a DC Motor. The circular symbol represents the armature circuit, and the squares at the side
of the circle represent the brush commutator system. The direction of the arrows indicates the
direction of the magnetic fields.
THEORY OF DC MOTOR
When you watch a film in the cinema, or the television, what you are actually seeing is a
series of fixed pictures, which change rapidly enough that your eyes just see the average effect -
movement. Your brain fills in the gaps to give an average effect.
Now imagine a light bulb with a switch. When you close the switch, the bulb goes on and
is at full brightness, say 100 Watts. When you open the switch it goes off (0 Watts). Now if you
close the switch for a fraction of a second, then open it for the same amount of time, the filament
won't have time to cool down and heat up, and you will just get an average glow of 50 Watts.
This is how lamp dimmers work, and the same principle is used by speed controllers to drive a
motor. When the switch is closed, the motor sees 12 Volts, and when it is open it sees 0 Volts. If
the switch is open for the same amount of time as it is closed, the motor will see an average of 6
Volts, and will run more slowly accordingly. The graph below shows the speed of a motor that is
being turned on and off.
Principles of operation
In any electric motor, operation is based on simple electromagnetism. A current-carrying
conductor generates a magnetic field; when this is then placed in an external magnetic field, it
will experience a force proportional to the current in the conductor, and to the strength of the
external magnetic field. As you are well aware of from playing with magnets as a kid, opposite
(North and South) polarities attract, while like polarities (North and North, South and South)
repel. The internal configuration of a DC motor is designed to harness the magnetic interaction
between a current-carrying conductor and an external magnetic field to generate rotational
motion.
Let's start by looking at a simple 2-pole DC electric motor (here red represents a magnet or
winding with a "North" polarization, while green represents a magnet or winding with a "South"
polarization).
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator, commutator, field
magnet(s), and brushes. In most common DC motors (and all that Beamers will see), the external
magnetic field is produced by high-strength permanent magnets. The stator is the stationary part
of the motor -- this includes the motor casing, as well as two or more permanent magnet pole
pieces. The rotor (together with the axle and attached commutator) rotates with respect to the
stator. The rotor consists of windings (generally on a core), the windings being electrically
connected to the commutator. The above diagram shows a common motor layout -- with the rotor
inside the stator (field) magnets.
The geometry of the brushes, commutator contacts, and rotor windings are such that when power
is applied, the polarities of the energized winding and the stator magnet(s) are misaligned, and
the rotor will rotate until it is almost aligned with the stator's field magnets. As the rotor reaches
alignment, the brushes move to the next commutator contacts, and energize the next winding.
Given our example two-pole motor, the rotation reverses the direction of current through the
rotor winding, leading to a "flip" of the rotor's magnetic field, driving it to continue rotating.
In real life, though, DC motors will always have more than two poles (three is a very common
number). In particular, this avoids "dead spots" in the commutator. You can imagine how with
our example two-pole motor, if the rotor is exactly at the middle of its rotation (perfectly aligned
with the field magnets), it will get "stuck" there. Meanwhile, with a two-pole motor, there is a
moment where the commutator shorts out the power supply (i.e., both brushes touch both
commutator contacts simultaneously). This would be bad for the power supply, waste energy, and
damage motor components as well. Yet another disadvantage of such a simple motor is that it
would exhibit a high amount of torque "ripple" (the amount of torque it could produce is cyclic
with the position of the rotor).
So since most small DC motors are of a three-pole design, let's tinker with the workings of one
via an interactive animation.
You'll notice a few things from this -- namely, one pole is fully energized at a time (but two
others are "partially" energized). As each brush transitions from one commutator contact to the
next, one coil's field will rapidly collapse, as the next coil's field will rapidly charge up (this
occurs within a few microsecond). We'll see more about the effects of this later, but in the
meantime you can see that this is a direct result of the coil windings' series wiring:
The use of an iron core armature (as in the Mabuchi, above) is quite common, and has a number
of advantages. First off, the iron core provides a strong, rigid support for the windings -- a
particularly important consideration for high-torque motors. The core also conducts heat away
from the rotor windings, allowing the motor to be driven harder than might otherwise be the
case. Iron core construction is also relatively inexpensive compared with other construction
types.
But iron core construction also has several disadvantages. The iron armature has a relatively high
inertia which limits motor acceleration. This construction also results in high winding
inductances which limit brush and commutator life.
In small motors, an alternative design is often used which features a 'coreless' armature winding.
This design depends upon the coil wire itself for structural integrity. As a result, the armature is
hollow, and the permanent magnet can be mounted inside the rotor coil. Coreless DC motors
have much lower armature inductance than iron-core motors of comparable size, extending brush
and commutator life.
DC motor behavior
High-speed output
This is the simplest trait to understand and treat -- most DC motors run at very high output
speeds (generally thousands or tens of thousands of RPM). While this is fine for some BEAM
bots (say, photo poppers or solar rollers), many BEAM bots (walkers, heads) require lower
speeds -- you must put gears on your DC motor's output for these applications.
H-BRIDGE:
An H-bridge is an electronic circuit which enables DC electric motors to be run forwards or
backwards. These circuits are often used in robotics. H-bridges are available as integrated
circuits, or can be built from discrete components.
The two basic states of a H-bridge. The term "H-bridge" is derived from the typical
graphical representation of such a circuit. An H-bridge is built with four switches (solid-state or
mechanical). When the switches S1 and S4 (according to the first figure) are closed (and S2 and
S3 are open) a positive voltage will be applied across the motor. By opening S1 and S4 switches
and closing S2 and S3 switches, this voltage is reversed, allowing reverse operation of the motor.
Using the nomenclature above, the switches S1 and S2 should never be closed at the same
time, as this would cause a short circuit on the input voltage source. The same applies to the
switches S3 and S4. This condition is known as shoot-through.
Operation
The H-Bridge arrangement is generally used to reverse the polarity of the motor, but can also be
used to 'brake' the motor, where the motor comes to a sudden stop, as the motors terminals are
shorted, or to let the motor 'free run' to a stop, as the motor is effectively disconnected from the
circuit. The following table summarizes operation.
S1 S2 S3 S4 Result
0 1 0 1 Motor brakes
H-Bridge Driver:
The switching property of this H-Bridge can be replace by a Transistor or a Relay or a Mosfet or even by
an IC. Here we are replacing this with an IC named L293D as the driver whose description is as given
below.
Features:
DESCRIPTION
The Device is a monolithic integrated high voltage, high current four channel driver designed to accept
standard DTL or TTL logic levels and drive inductive loads (such as relays solenoides, DC and stepping
motors) and switching power transistors. To simplify use as two bridges each pair of channels is equipped
with an enable input. A separate supply input is provided for the logic, allowing operation at a lower
voltage and internal clamp diodes are included. This device is suitable for use in switching applications at
frequencies up to 5 kHz. The L293D is assembled in a 16 lead plastic packaage which has 4 center pins
connected together and used for heatsinking The L293DD is assembled in a 20 lead surface mount which
has 8 center pins connected together and used for heatsinking.
BLOCK DIAGRAM:
ABSOLUTE MAXIMUM RATINGS
PIN CONNECTIONS
BATTERY
Battery (electricity), an array of electrochemical cells for electricity storage, either individually
linked or individually linked and housed in a single unit. An electrical battery is a combination of
one or more electrochemical cells, used to convert stored chemical energy into electrical energy.
Batteries may be used once and discarded, or recharged for years as in standby power
applications. Miniature cells are used to power devices such as hearing aids and wristwatches;
larger batteries provide standby power for telephone exchanges or computer data centers.
Fig: Various batteries (top-left to bottom-right): two AA, one D, one handheld ham radio battery,
two 9-volt PP3, two AAA, one C, one camcorder battery, one cordless phone battery.
How batteries work
A battery is a device that converts chemical energy directly to electrical energy. It consists of a
number of voltaic cells; each voltaic cell consists of two half cells connected in series by a
conductive electrolyte containing anions and cations. One half-cell includes electrolyte and the
electrode to which anions (negatively-charged ions) migrate, i.e. the anode or negative electrode;
the other half-cell includes electrolyte and the electrode to which cations (positively-charged
ions) migrate, i.e. the cathode or positive electrode. In the redox reaction that powers the battery,
reduction (addition of electrons) occurs to cations at the cathode, while oxidation (removal of
electrons) occurs to anions at the anode. The electrodes do not touch each other but are
electrically connected by the electrolyte. Many cells use two half-cells with different electrolytes.
In that case each half-cell is enclosed in a container, and a separator that is porous to ions but not
the bulk of the electrolytes prevents mixing.
Each half cell has an electromotive force (or emf), determined by its ability to drive electric
current from the interior to the exterior of the cell. The net emf of the cell is the difference
between the emfs of its half-cells, as first recognized by Volta. Therefore, if the electrodes have
emfs E1 and E2 and , then the net emf is E2 - E1 ; in other words, the net emf is the difference
between the reduction potentials of the half-reactions.
The electrical driving force or across the terminals of a cell is known as the terminal
voltage (difference) and is measured in volts. The terminal voltage of a cell that is neither
charging nor discharging is called the open-circuit voltage and equals the emf of the cell.
Because of internal resistance, the terminal voltage of a cell that is discharging is smaller in
magnitude than the open-circuit voltage and the terminal voltage of a cell that is charging
exceeds the open-circuit voltage. An ideal cell has negligible internal resistance, so it would
maintain a constant terminal voltage of until exhausted, then dropping to zero. If such a cell
maintained 1.5 volts and stored a charge of one Coulomb then on complete discharge it would
perform 1.5 Joule of work. In actual cells, the internal resistance increases under discharge, and
the open circuit voltage also decreases under discharge. If the voltage and resistance are plotted
against time, the resulting graphs typically are a curve; the shape of the curve varies according to
the chemistry and internal arrangement employed.
As stated above, the voltage developed across a cell's terminals depends on the energy release of
the chemical reactions of its electrodes and electrolyte. Alkaline and carbon-zinc cells have
different chemistries but approximately the same emf of 1.5 volts; likewise NiCd and NiMH
cells have different chemistries, but approximately the same emf of 1.2 volts. On the other hand
the high electrochemical potential changes in the reactions of lithium compounds give lithium
cells emfs of 3 volts or more.
SWITCH INTERFACING:
CPU accesses the switches through ports. Therefore these switches are connected to a
microcontroller. This switch is connected between the supply and ground terminals. A single
microcontroller (consisting of a microprocessor, RAM and EEPROM and several ports all on a single
chip) takes care of hardware and software interfacing of the switch.
These switches are connected to an input port. When no switch is pressed, reading the input port
will yield 1s since they are all connected to high (Vcc). But if any switch is pressed, one of the input port
pins will have 0 since the switch pressed provides the path to ground. It is the function of the
microcontroller to scan the switches continuously to detect and identify the switch pressed.
The switches that we are using in our project are 4 leg micro switches of momentary type.
Vcc
P2.0
Gnd
2. When the switch is closed i.e., when it is pressed, the total supply path is provided to ground.
Thus the voltage value at the port pin P2.0 will be zero.
P2.0 = 0
By reading the pin status, the microcontroller identifies whether the switch is pressed or not.
When the switch is pressed, the corresponding related to this switch press written in the program will be
executed.
Software Tools
KEIL SOFTWARE:
Keil compiler is a software used where the machine language code is written and
compiled. After compilation, the machine source code is converted into hex code which is to be
dumped into the microcontroller for further processing. Keil compiler also supports C language
code.
2. After installation, an icon will be created with the name “Keil uVision3”. Just drag this icon onto
the desktop so that it becomes easy whenever you try to write programs in keil.
7. A small window with the title bar “Create new project” opens. The window asks the user to give
the project name with which it should be created and the destination location. The project can be
created in any of the drives available. You can create a new folder and then a new file or can
create directly a new file.
8. After the file is saved in the given destination location, a window opens where a list of vendors
will be displayed and you have to select the device for the target you have created.
9. The most widely used vendor is Atmel. So click on Atmel and now the family of microcontrollers
manufactured by Atmel opens. You can select any one of the microcontrollers according to the
requirement.
10. When you click on any one of the microcontrollers, the features of that particular microcontroller
will be displayed on the right side of the page. The most appropriate microcontroller with which
most of the projects can be implemented is the AT89S52. Click on this microcontroller and have a
look at its features. Now click on “OK” to select this microcontroller.
11. A small window opens asking whether to copy the startup code into the file you have created just
now. Just click on “No” to proceed further.
12. Now you can see the TARGET and SOURCE GROUP created in the project workspace.
13. Now click on “File” and in that “New”. A new page opens and you can start writing program in it.
14. After the program is completed, save it with any name but with the .asm extension. Save the
program in the file you have created earlier.
15. You can notice that after you save the program, the predefined keywords will be highlighted in
bold letters.
16. Now add this file to the target by giving a right click on the source group. A list of options open
and in that select “Add files to the source group”. Check for this file where you have saved and
add it.
17. Right click on the target and select the first option “Options for target”. A window opens with
different options like device, target, output etc. First click on “target”.
18. Since the set frequency of the microcontroller is 11.0592 MHz to interface with the PC, just enter
this frequency value in the Xtal (MHz) text area and put a tick on the Use on-chip ROM. This is
because the program what we write here in the keil will later be dumped into the microcontroller
and will be stored in the inbuilt ROM in the microcontroller.
19. Now click the option “Output” and give any name to the hex file to be created in the “Name of
executable” text area and put a tick to the “Create HEX file” option present in the same window.
The hex file can be created in any of the drives. You can change the folder by clicking on “Select
folder for Objects”.
20. Now to check whether the program you have written is errorless or not, click on the icon exactly
below the “Open file” icon which is nothing but Build Target icon. You can even use the shortcut
key F7 to compile the program written.
21. To check for the output, there are several windows like serial window, memory window, project
window etc. Depending on the program you have written, select the appropriate window to see
the output by entering into debug mode.
22. The icon with the letter “d” indicates the debug mode.
23. Click on this icon and now click on the option “View” and select the appropriate window to
check for the output.
24. After this is done, click the icon “debug” again to come out of the debug mode.
25. The hex file created as shown earlier will be dumped into the microcontroller with the help of
another software called Proload.
PROLOAD:
Proload is a software which accepts only hex files. Once the machine code is converted
into hex code, that hex code has to be dumped into the microcontroller placed in the programmer
kit and this is done by the Proload. Programmer kit contains a microcontroller on it other than the
one which is to be programmed. This microcontroller has a program in it written in such a way
that it accepts the hex file from the keil compiler and dumps this hex file into the microcontroller
which is to be programmed. As this programmer kit requires power supply to be operated, this
power supply is given from the power supply circuit designed above. It should be noted that this
programmer kit contains a power supply section in the board itself but in order to switch on that
power supply, a source is required. Thus this is accomplished from the power supply board with
an output of 12volts or from an adapter connected to 230 V AC.
4. Now place the microcontroller in the GIF socket provided in the programmer kit.
5. Click on the Proload icon in the PC. A window appears providing the information like
Hardware model, com port, device type, Flash size etc. Click on browse option to select
the hex file to be dumped into the microcontroller and then click on “Auto program” to
program the microcontroller with that particular hex file.
6. The status of the microcontroller can be seen in the small status window in the bottom of
the page.
7. After this process is completed, remove the microcontroller from the programmer kit and
place it in your system board. Now the system board behaves according to the program
written in the microcontroller.
ADVANTAGES:
Sophisticated security
Monitors all hazards and threats
APPLICATIONS:
Security purpose
Remote monitoring,
Agricultural applications
CONCLUSION
In This Project We Have Studied and Implemented A RF Based farmer friendly Agricultural
Robot with motorized shovel control System with automatic seed dispensing system for
REFERENCES
1. WWW. howstuffworks.com
4. Magazines
6. Electrikindia.
7. WWW.google.com
8. WWW.Electronic projects.com