Professional Documents
Culture Documents
Audio and Video Capture Robot Using RF Comm.2003
Audio and Video Capture Robot Using RF Comm.2003
communication
CHAPTURE 1
INTRODUCTION
For many people robot is a machine that imitates a humanlike 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.
SW1
SW2
RF
Transmitter
STT - 433
RF Encoder
HT640
SW3
SW4
Step
down
T/F
Bridge
Rectifier
Filter
Circuit
Regulator
Power supply to all sections
RF Receiver
Geared
Motor - I
RF
Decoder
AT
89S52
MCU
HBridge
Geared
Motor - II
11.0592MHz
Crystal
Oscillator
Power On
Reset
Step
down
T/F
Bridge
Rectifier
Filter
Circuit
Regulator
Power supply to all sections
10
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
17
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 batterypowered applications.
The manufacturing-friendly SIP style package and low-cost make the STT-433
suitable for high volume applications.
18
Low Cost
1.5-12V operation
Small size
PIN DESCRIPTION:
GND
Transmitter ground. Connect to ground plane
DATA
Digital data input. This input is CMOS compatible and should be driven with CMOS
level inputs.
19
ENCODER HT640:
21
23
FLOWCHART:
24
25
26
27
28
Similarly, as the transmitter requires an encoder, the receiver module requires a decoder.
The decoder used is HT648L from HOLTEK SEMICONDUCTOR INC.
29
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.
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 18N bits of data.
31
32
33
34
LIMITING VALUES:
Table 2.3: limiting values
35
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
Step down
Bridge
transformer
Rectifier
Filter
Regulator
37
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:
Microprocessors and microcontrollers are widely used in embedded systems
products. Microcontroller is a programmable device. A microcontroller has a CPU in
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
independent manufacturers including Atmel, Infineon Technologies and Maxim
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 NVRAM.
The microcontroller used in this project is AT89S52. Atmel Corporation
introduced this 89C51 microcontroller. This microcontroller belongs to 8051 family. This
39
4.3 Description:
40
41
PIN DESCRIPTION:
42
43
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
referred to as a power-on reset.
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
that the code is stored externally.
PSEN (Program store enable)
This is an output pin.
ALE (Address latch enable)
This is an output pin and is active high.
Ports 0, 1, 2 and 3
45
Port 3
46
47
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
erased using the Chip Erase Mode.
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
following steps should be considered:
1. Input the desired memory location on the address lines.
2. Input the appropriate data byte on the data lines.
3. Activate the correct combination of control signals.
4. Raise EA/VPP to 12V for the high-voltage programming mode.
5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The bytewrite cycle is self-timed and typically takes no more than 1.5 ms.
49
50
51
CHAPTURE 5
which
depends
on
what
52
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
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.
56
1 0 0 1
Motor
moves
right
0 1 0 1 Motor brakes
PER CHANNEL
ENABLE FACILITY
OVERTEMPERATURE PROTECTION
6.4 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
57
BLOCK DIAGRAM:
58
PIN CONNECTIONS
CHAPTURE 7
59
WIRELESS CAMERA
A portable small-sized camera has a case having a ball-point pen appearance in a
portion thereof and a through hole in one side, and a camera circuit part built in the case
and for photographing an object through the through hole. The portable small-sized
camera has the ball-point pen appearance, photographing a particular location in secret is
possible without exposure to others. The camera circuit part is connected to a wireless
transmission device for outputting a signal by a cable. A wireless receiving device at a
remote location from the wireless transmission device receives a signal of the wireless
transmission device for outputting or recording. The portable camera further includes a
microphone and the transmission device transmits a voice signal.
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
62
CHAPTURE 9
9.2 Applications:
1) Industries are using RF solutions for monitoring, control, process, inventory tracking,
data links and bar code reading devices.
2) Commercial wireless applications such as door announcers, security and access
systems, gate control, remote activation, score board and paging systems.
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
This project presents a metal detecting robot using RF communication with
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:
BOOKS
8051
microcontroller and
Embedded system
8051
microcontroller and
architecture
Principle of
electronics
AUTHORS
PUBLICATIONS
YEAR
Mohd.Mazid
Pearson Education
2006
Kenneth J Ayala
Delimar cengage
learning
S.C Chand &
company Ltd
2003
V.K Mehtha
www.mitel.databook.com
2.
www.atmel.databook.com
3.
www.franklin.com
4.
www.keil.com
65
1980