Professional Documents
Culture Documents
RF Technology 2020
RF Technology 2020
INTRODUCTION
For many people robot is a machine that imitates a human—like the androids in
Star Wars, Terminator and Star Trek: The Next Generation. However much these robots
capture our imagination, such robots still only inhabit Science Fiction. People still haven't
been able to give a robot enough 'common sense' to reliably interact with a dynamic
world.
The type of robots that you will encounter most frequently are robots that do work
that is too dangerous, boring, onerous, or just plain nasty. Most of the robots in the world
are of this type. They can be found in auto, medical, manufacturing and space industries.
In fact, there are over a million of these types of robots working for us today.
This robot is controlled by a RF remote. This can be moved forward and reverse direction
using geared motors of 60RPM. Also this robot can take sharp turnings towards left and
right directions. This project uses AT89S52 MCU as its controller. Simultaneously the
images around the robot will be transmitted to remote place. User can monitor the images
and metal detection alarms on Television.
The RF modules used here are STT-433 MHz Transmitter, STR-433 MHz
Receiver, HT640 RF Encoder and HT648 RF Decoder. The three 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 9V battery. This project is much useful for detection and
surveillance applications.
1
1.1 Block Diagram:
SW1
SW2
RF
Transmitter
RF Encoder
STT - 433
HT640
SW3
2
Geared
RF Receiver Motor - I
RF
Decoder
AT H-
89S52 Bridge
MCU
Geared
Motor - II
11.0592MHz
Crystal
Oscillator
Power – On
Reset
3
1.2 Introduction of Embedded System:
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
4
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.
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),
5
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
6
lives depend upon three system's proper execution, engineering calculations and
descriptive paperwork.
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
7
powerful and carry out many interesting and complicated tasks such as hardware
assembly.
8
Mobile communication infrastructure such as base station controllers, mobile switching
centers are also powerful embedded systems.
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
9
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!
10
Fig 1.3: embedded system
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
11
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 minimized.
12
1.7 Conclusions:
Embedded Systems plays a vital role in our day today life. They are used for
household appliances like microwave oven to the satellite applications. They provide
good man to machine interface.
Automation is the further step in the world of Embedded Systems, which includes
the elimination of the human being in the mundane applications. They are cost effective,
accurate and can work in any conditions and round the clock.
13
CHAPTURE 2
14
ULF 300 to 3000 Hz
100 km to 1,000 km
directly audible when converted to sound, communication with mines
Low frequency
LF 30 to 300 kHz
1 km to 10 km
AM broadcasting, navigational beacons, lowFER
Medium frequency
MF 300 to 3000 kHz
100 m to 1 km
navigational beacons, AM broadcasting, maritime and aviation communication
High frequency
HF 3 to 30 MHz
10 m to 100 m
Shortwave, amateur radio, citizens' band radio
15
2.4 Brief Description Of RF:
Radio frequency (abbreviated RF) is a term that refers to alternating current (AC)
having characteristics such that, if the current is input to an antenna, an electromagnetic
(EM) field is generated suitable for wireless broadcasting and/or communications. These
frequencies cover a significant portion of the electromagnetic radiation spectrum,
extending from nine kilohertz (9 kHz),the lowest allocated wireless communications
frequency (it's within the range of human hearing), to thousands of gigahertz(GHz).
s = 300/f
Many types of wireless devices make use of RF fields. Cordless and cellular
telephone, radio and television broadcast stations, satellite communications systems, and
two-way radio services all operate in the RF spectrum. Some wireless devices operate at
IR or visible-light frequencies, whose electromagnetic wavelengths are shorter than those
of RF fields. Examples include most television-set remote-control boxes Some cordless
computer keyboards and mice, and a few wireless hi-fi stereo headsets.
The RF spectrum is divided into several ranges, or bands. With the exception of
the lowest-frequency segment, each band represents an increase of frequency
16
corresponding to an order of magnitude (power of 10). The table depicts the eight bands
in the RF spectrum, showing frequency and bandwidth ranges. The SHF and EHF bands
are often referred to as the microwave spectrum.
RF Advantages:
1. No line of sight is needed.
2. Not blocked by common materials: It can penetrate most solids and pass through
walls.
3. Longer range.
4. It is not sensitive to the light;.
5. It is not much sensitive to the environmental changes and weather conditions.
RF Disadvantages:
1. Interference: communication devices using similar frequencies - wireless phones,
scanners, wrist radios and personal locators can interfere with transmission
2. Lack of security: easier to "eavesdrop" on transmissions since signals are spread
out in space rather than confined to a wire
3. Higher cost than infrared
4. Federal Communications Commission(FCC) licenses required for some products
5. Lower speed: data rate transmission is lower than wired and infrared transmission
17
2.5 RF Transmitter Stt-433mhz:
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.
18
Features
PIN DESCRIPTION:
GND
DATA
Digital data input. This input is CMOS compatible and should be driven with CMOS
level inputs.
19
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:
20
microcontroller, process it in the range of radio frequency range and then send it to the
transmitter. Thus, an encoder is used.
ENCODER HT640:
21
PIN DESCRIPTION:
Table 2.1: pin description(transmitter)
22
Address/data programming (preset)
The status of each address/data pin can be individually preset to logic high, logic
low, or floating. If a transmission enable signal is applied, the encoder scans and
transmits the status of the 18 bits of address/data serially in the order A0 to AD17.
23
FLOWCHART:
24
Why is this graph required?
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.
25
BASIC APPLICATION CIRCUIT OF HT640 ENCODER:
26
DEMO CIRCUIT: Transmission Circuit
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.
27
The data is received by the RF receiver from the antenna pin and this data is
available on the data pins. Two Data pins are provided in the receiver module. Thus, this
data can be used for further applications
.
PINOUT:
VCC (5V)
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
Digital data output. This output is capable of driving one TTL or CMOS load. It is
a CMOS compatible output.
28
Similarly, as the transmitter requires an encoder, the receiver module requires a decoder.
29
PIN DESCRIPTION:
Features
Operating voltage: 2.4V~12V.
Low power and high noise immunity CMOS technology.
Low standby current.
Capable of decoding 18 bits of information.
Pairs with HOLTEK’s 318 series of encoders.
8~18 address pins.
0~8 data pins.
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.
30
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.
31
FLOW CHART:
32
BASIC APPLICATION CIRCUIT OF HT648L DECODER:
33
DEMO CIRCUIT: Reception circuit
34
FEATURES
· Low current (max. 100 mA)
· Low voltage (max. 65 V).
APPLICATIONS
· General purpose switching and amplification
LIMITING VALUES:
35
BC 557 PNP Transistor acts as a switch is used in this project.
CHAPTURE 3
POWER SUPPLY:
36
Introduction:
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
50Hz D.C
Output
Transformer:
37
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.
Filter:
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.
38
CHAPTURE 4
MICROCONTROLLERS
4.1 Introduction:
addition to a fixed amount of RAM, ROM, I/O ports and a timer embedded all on a single
chip. The fixed amount of on-chip ROM, RAM and number of I/O ports in
microcontrollers makes them ideal for many applications in which cost and space are
critical.
The Intel 8051 is a Harvard architecture, single chip microcontroller (µC) which
was developed by Intel in 1980 for use in embedded systems. It was popular in the 1980s
and early 1990s, but today it has largely been superseded by a vast range of enhanced
devices with 8051-compatible processor cores that are manufactured by more than 20
Integrated Products.
8051 is an 8-bit processor, meaning that the CPU can work on only 8 bits of data
at a time. Data larger than 8 bits has to be broken into 8-bit pieces to be processed by the
CPU. 8051 is available in different memory types such as UV-EPROM, Flash and NV-
RAM.
introduced this 89C51 microcontroller. This microcontroller belongs to 8051 family. This
39
microcontroller had 128 bytes of RAM, 4K bytes of on-chip ROM, two timers, one serial
port and four ports (each 8-bits wide) all on a single chip. AT89S52 is Flash type 8051.
The present project is implemented on Keil U vision. In order to program the device,
proload tool has been used to burn the program onto the microcontroller.
The features, pin description of the microcontroller and the software tools used are
4.3 Description:
40
The AT89S52 is a low-voltage, high-performance CMOS 8-bit microcomputer
industry-standard MCS-51 instruction set. By combining a versatile 8-bit CPU with Flash
In addition, the AT89S52 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving modes. The Idle Mode
stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system
to continue functioning.
41
Fig 4.2 : MC Block diagram
PIN DESCRIPTION:
42
Vcc
Pin 40 provides supply voltage to the chip. The voltage source is +5V.
GND
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier that
can be configured for use as an on-chip oscillator, as shown in Figure 11. Either a quartz
crystal or ceramic resonator may be used. To drive the device from an external clock
source, XTAL2 should be left unconnected while XTAL1 is driven, as shown in the
below figure. There are no requirements on the duty cycle of the external clock signal,
since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but
minimum and maximum voltage high and low time specifications must be observed.
43
Fig4.3: Oscillator Connections
44
RESET
Pin9 is the reset pin. It is an input and is active high. Upon applying a high pulse
to this pin, the microcontroller will reset and terminate all the activities. This is often
EA (External access)
Pin 31 is EA. It is an active low signal. It is an input pin and must be connected to
either Vcc or GND but it cannot be left unconnected. The 8051 family members all come
with on-chip ROM to store programs. In such cases, the EA pin is connected to Vcc. If
the code is stored on an external ROM, the EA pin must be connected to GND to indicate
Ports 0, 1, 2 and 3
45
The four ports P0, P1, P2 and P3 each use 8 pins, making them 8-bit ports. All
the ports upon RESET are configured as input, since P0-P3 have value FFH on them.
Port 0(P0)
Port 0 is also designated as AD0-AD7, allowing it to be used for both address and
data. ALE indicates if P0 has address or data. When ALE=0, it provides data D0-D7, but
when ALE=1, it has address A0-A7. Therefore, ALE is used for demultiplexing address
to a 10K-ohm pull-up resistor. This is due to the fact that P0 is an open drain. With
external pull-up resistors connected to P0, it can be used as a simple I/O, just like P1 and
P2. But the ports P1, P2 and P3 do not need any pull-up resistors since they already have
pull-up resistors internally. Upon reset, ports P1, P2 and P3 are configured as input ports.
With no external memory connection, both P1 and P2 are used as simple I/O.
With external memory connections, port 2 must be used along with P0 to provide the 16-
bit address for the external memory. Port 2 is designated as A8-A15 indicating its dual
function. While P0 provides the lower 8 bits via A0-A7, it is the job of P2 to provide bits
Port 3
46
Port 3 occupies a total of 8 pins, pins 10 through 17. It can be used as input or
output. P3 does not need any pull-up resistors, the same as port 1 and port 2. Port 3 has an
The CPU takes a certain number of clock cycles to execute an instruction. In the
8051 family, these clock cycles are referred to as machine cycles. The length of the
machine cycle depends on the frequency of the crystal oscillator. The crystal oscillator,
along with on-chip circuitry, provides the clock source for the 8051 CPU.
47
The frequency can vary from 4 MHz to 30 MHz, depending upon the chip rating
and manufacturer. But the exact frequency of 11.0592 MHz crystal oscillator is used to
make the 8051 based system compatible with the serial port of the IBM PC.
In the original version of 8051, one machine cycle lasts 12 oscillator periods.
Therefore, to calculate the machine cycle for the 8051, the calculation is made as 1/12 of
The assembly language program is written and this program has to be dumped
into the microcontroller for the hardware kit to function according to the software. The
microcontroller. Before that, this Flash memory has to be programmed and is discussed
The AT89S52 is normally shipped with the on-chip Flash memory array in the
erased state (that is, contents = FFH) and ready to be programmed. The programming
signal. The low-voltage programming mode provides a convenient way to program the
AT89S52 inside the user’s system, while the high-voltage programming mode is
compatible with conventional third party Flash or EPROM programmers. The AT89S52
is shipped with either the high-voltage or low-voltage programming mode enabled. The
respective top-side marking and device signature codes are listed in the following table.
48
The AT89S52 code memory array is programmed byte-byte in either programming mode.
To program any nonblank byte in the on-chip Flash Memory, the entire memory must be
Programming Algorithm:
Before programming the AT89S52, the address, data and control signals should
be set up according to the Flash programming mode table. To program the AT89S52, the
5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte-
write cycle is self-timed and typically takes no more than 1.5 ms.
49
Repeat steps 1 through 5, changing the address and data for the entire array or until the
Data Polling:
The AT89S52 features Data Polling to indicate the end of a write cycle. During a
write cycle, an attempted read of the last byte written will result in the complement of the
written datum on PO.7. Once the write cycle has been completed, true data are valid on
all outputs, and the next cycle may begin. Data Polling may begin any time after a write
Ready/Busy:
output signal. P3.4 is pulled low after ALE goes high during programming to indicate
BUSY. P3.4 is pulled high again when programming is done to indicate READY.
Chip Erase:
The entire Flash array is erased electrically by using the proper combination of
control signals and by holding ALE/PROG low for 10 ms. The code array is written with
all “1”s. The chip erase operation must be executed before the code memory can be re-
programmed.
50
Reading the Signature Bytes:
The signature bytes are read by the same procedure as a normal verification of
locations 030H, 031H, and 032H, except that P3.6 and P3.7 must be pulled to a logic low.
Programming Interface:
Every code byte in the Flash array can be written and the entire array can be
erased by using the appropriate combination of control signals. The write operation cycle
is self timed and once initiated, will automatically time itself to completion. All major
programming vendors offer worldwide support for the Atmel microcontroller series.
51
CHAPTURE 5
5.1 Introduction:
Light-emitting diodes are elements for light signalization in electronics. They are
manufactured in different shapes, colors and sizes. For their low price, low consumption
and simple use, they have almost completely pushed aside other light sources- bulbs at
first place. They perform similar to common diodes with the difference that they emit
light when current flows through them.
It is important to know that each diode will be immediately destroyed unless its
current is limited. This means that a
conductor must be connected in parallel
to a diode. In order to correctly determine
value of this conductor, it is necessary to
know diode’s voltage drop in forward
direction, which depends on what
material a diode is made of and what
52
colour it is. Values typical for the most frequently used diodes are shown in table below:
As seen, there are three main types of LEDs. Standard ones get ful brightness at current
of 20mA. Low Current diodes get ful brightness at ten times lower current while Super
Bright diodes produce more intensive light than Standard ones.
Since the 8051 microcontrollers can provide only low input current and since their
pins are configured as outputs when voltage level on them is equal to 0, direct connecting
to LEDs is carried out as it is shown on figure (Low current LED, cathode is connected to
output pin).
There is nothing simpler than this! This is the simplest way of controlling
appearance of some voltage on microcontroller’s input pin. There is also no need for
additional explanation of how these components operate.
53
fig 5.3: led interfacing2
The simplest solution is to connect simple RC circuit which will “suppress” each
quick voltage change. Since the bouncing time is not defined, the values of elements are
not strictly determined. In the most cases, the values shown on figure are sufficient.
If complete safety is needed, radical measures should be taken! The circuit, shown
on the figure (RS flip-flop), changes logic state on its output with the first pulse triggered
by contact bounce. Even though this is more expensive solution (SPDT switch), the
problem is definitely resolved! Besides, since the condensator is not used, very short
pulses can be also registered in this way. In addition to these hardware solutions, a simple
software solution is commonly applied too: when a program tests the state of some input
pin and finds changes, the check should be done one more time after certain time delay. If
the change is confirmed it means that switch (or pushbutton) has changed its position.
The advantages of such solution are obvious: it is free of charge, effects of disturbances
are eliminated too and it can be adjusted to the worst-quality contacts.
54
CHAPTURE 6
THEORY OF DC MOTOR
6.1 Introduction:
The speed of a DC motor is directly proportional to the supply voltage, so if we
reduce the supply voltage from 12 Volts to 6 Volts, the motor will run at half the speed.
How can this be achieved when the battery is fixed at 12 Volts? The speed controller
works by varying the average voltage sent to the motor. It could do this by simply
adjusting the voltage sent to the motor, but this is quite inefficient to do. A better way is
to switch the motor's supply on and off very quickly. If the switching is fast enough, the
motor doesn't notice it, it only notices the average effect.
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
55
6.2 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.
Fig 6.1: H-Bridge
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
56
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.
Table 6.1: H-Bridge operation
S1 S2 S3 S4 Result
Motor moves
1 0 0 1
right
0 1 0 1 Motor brakes
6.4 Description:
57
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 solenoids, 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
package which has 4 center pins connected together and used for heat sinking The
L293DD is assembled in a 20 lead surface mount which has 8 center pins connected
together and used for heat sinking.
BLOCK DIAGRAM:
58
PIN CONNECTIONS
CHAPTURE 7
59
WIRELESS CAMERA
CHAPTURE 8
60
PROJECT CODE
Code:
#include<reg52.h>
#define rfdata P1
void stop(void);
void forward(void);
void left(void);
void right(void);
void backward(void);
void main()
{
rfdata=0xff;
P0=0;
P3=0;
while(1)
{
if(rfdata==0x0f)
{
while(rfdata==0x0f)
{
stop();
}
}
if(rfdata==0x0e)
{
while(rfdata==0x0e)
{
forward();
}
}
if(rfdata==0x0d)
{
while(rfdata==0x0d)
{
left();
}
}
if(rfdata==0x0b)
61
{
while(rfdata==0x0b)
{
right();
}
}
if(rfdata==0x07)
{
while(rfdata==0x07)
{
backward();
}
}
}
}
void stop(void)
{
P0=0x00;
P3=0x00;
}
void forward(void)
{
P0=0xCA;
P3=0;
}
void left(void)
{
P0=0x42;
//P3=0x42;
}
void right(void)
{
P0=0x88;
// P3=0x88;
}
void backward(void)
{
P3=0xCA;
P0=0;
}
62
CHAPTURE 9
9.1 Advantages:
1. Not line of sight
2. Not blocked by common materials: can penetrate most solids and pass through
walls
3. Longer range
4. Not light sensitive
5. Not as sensitive to weather/environmental conditions
9.2 Applications:
1) Industries are using RF solutions for monitoring, control, process, inventory tracking,
data links and bar code reading devices.
3) Automotive compa nies employing RF for wireless remote control, remote keyless
entry and safety applications.
4) Consumer products including electronic toys, home security, gate and garage door
openers, Intercom, fire and safety systems, and irrigation controllers.
5) Medical products like patient call and monitoring, handicap assistance device, surgery
Communication system, remote patient data logging and ECG monitor.
63
CONCLUSION
wireless audio and video transmission and it is designed and implemented with Atmel
89S52 MCU in embedded system domain. The robot is moved in particular direction
using switches and the images are captured along with the audio and images are watched
on the television .Experimental work has been carried out carefully. The result shows that
higher efficiency is indeed achieved using the embedded system. The proposed method is
verified to be highly beneficial for the security purpose and industrial purpose.
64
BIBILOGRAPHY
REFERENCES:
1. www.mitel.databook.com
2. www.atmel.databook.com
3. www.franklin.com
4. www.keil.com
65