Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION
This unit is helpful and useful for surveillance of an area in defence grounds for
enemy, spying purpose where the human reach is not recommended or avoided. The unit
is small handy portable and can reach places easily.
1. Effective in implementation
2. Low power consumption and compact size.
3. Long control range due the usage of RF devices.
4. Robot monitored from a remote area (no need of 'line-of-sight’ arrangement).
5. Maneuvering its path avoiding obstacles by own
6. Land mine detection
7. Wireless video surveillance
1.2 THE SIMPLIFIED BLOCK DIAGRAM
IR
MICRO SENSORS
CONTROLLER
DC RF
MOTOR RECEIVER
CIRCUIT
RF
KEYPAD TRANSMITTER
CIRCUIT
IR 555
SENSORS Triggering
M LEFT
Circuit DC
O
MOTOR
T U
O L
MICROCONTROLLER R N
AT89S52
D 2 RELAYS
R 8
I 0
V 3
E RIGHT
HT 648 R DC
RF MOTOR
RECEIVER DECODER
IR MINE
Fig. 2.1 BLOCKS DIAGRAM OF RECEIVER WIRELESS
EMITTERS BATTERY DETECTOR CAMERA
In the above block diagram we are used 89S52 microcontrollers which are a 40
Pin 8-bit, 32 I/O lines. This is the brain of the whole circuit. The robot system consists of
RF receiver 433MHZ to receive the commands from the remote. Here the received data
will be in RF signal where it is converted to digital data by RF receiver and input to
HT648 decoder which decodes(demux) the digital data and input to microcontroller port1.
And astable multivibrator, to generate 38 kHz square wave for the IR transmitter and
monostable multivibrator to receive the signal from the TSOP to sense the obstacle on its
way and IC ULN2803 driver with an electromagnetic relay to control the DC motor .The
port 2 of microcontroller is used to control the direction(CLK/ANTCLK) and ON/OFF
condition of two DC motor. Port 0 is used to receive signal from 555 monostable circuit
which is triggered by TSOP 1738.a brief description of all the blocks explained below.
This is like brain of the robot which operates the robot according to the user
command. 40 pin Integrated Circuit and 8bit operation which receives the signals from 4
ports. It is programmed so to operate by receiving signal from RF receiver circuit through
port 1.0 to port 1.4, and from 555 monostable circuit which is triggered by TSOP 1738 IR
sensor through port 0.0 to port 0.2.and drives the motor through ULN2803 using port 2.0
to port 2.3.
2.1.3 Relay
A relay is an electrical switch that opens and closes under the control of another
electrical circuit. In the original form, the switch is operated by an electromagnet to open
or close one or many sets of contacts. Here relay is driven by ULN2803 from
microcontroller. This is used to switch the DC motor to ON/OFF or to rotate in different
directions clock wise and anti clockwise.
2.1.4 Gear DC Motor
A DC motor works by converting electric power into mechanical work. This is
accomplished by forcing current through a coil and producing a magnetic field that spins
the motor. Gear DC Motor is used to drive the robot which is connect to wheel of the
robot this motor is called as gear motor because this has a specific number of RPM based
on the combination of gears connected to the shaft of dc motor.
2.1.5 IR Sensors
The sensor used is the TSOP1738. It only senses the signal of frequency 38 kHz. This
sensor is used to avoid the reception of signals from other sources. The 38 kHz signal is
only used by TSOP1738 so, it can be horizontally mounted. It senses the reflected IR rays
from 38 kHz IR source to detect any obstacle on its way.
2.1.7 RF Receiver
433 MHz RF receiver is used having 8 pin. This receives the RF signal transmitted
and converts it in to digital data signal. And these have a range of up to 100 meters with
no line of sight.
2.1.9 Battery
Rechargeable Lead acid battery is used. This is the main power supply for the whole
robot provides 12 Volts and a max current of up to 1.2A.Which is further regulated to
5volts for digital circuit operation. A charger circuitry is used to charge the battery.
2.1.10 IR Emitters
A 555 timer is used to generate the signal of frequency 38 kHz. The 555 timer is
configured in astable mode. The output of this timer is given to an IR emitter. This signal
is emitted by the emitter which is mounted horizontally at the front of the robot.
HT640 RF
ENCODER TRANSMITTER
KEYPAD
2.2.1 Keypad
By using this we are giving command to the robot this is in the remote side this
has 5 keys with different operations
2.2.3 RF Transmitter
433 MHz RF transmitter is used having 4 pin. This transmits the RF signal
by using ASK. The range is up to 100 meters with no line of sight.
CHAPTER 3
CIRCUIT DIAGRAM AND DESCRIPTION
Depend upon the circuit diagram this system is divided into following stages:
Also 10K sip is used as pull up resistor, where it will not allows port to enter the
tristate. This is to have constant voltage. Microcontroller controls the relay using driver
circuit Output data of port 2 is given to ULN2803 IC which is of 8 bit. If the active low
input is given relay will ON else it OFF. Then according to the inputs to relay the
corresponding actions takes.
The movements of gear motors can be achieved as follows by switching the relays
through ULN 2803.
0 IR SENSOR RIGHT
1 IR SENSOR CENTRE
2 IR SENSOR LEFT
3 NO CONNECTION
P-0
4 NO CONNECTION
5 NO CONNECTION
6 NO CONNECTION
7 NO CONNECTION
0 RF DATA OUT 1
1 RF DATA OUT 2
2 RF DATA OUT 3
3 RF DATA OUT 4
P-1
4 RF DATA OUT 5
5 NO CONNECTION
6 NO CONNECTION
7 NO CONNECTION
Table 3.1
PORT NUMBER BIT CONNECTION
0 RELAY 1
1 RELAY 2
2 RELAY 3
3 RELAY 4
P-2
4 NO CONNECTION
5 NO CONNECTION
6 NO CONNECTION
7 NO CONNECTION
0 NO CONNECTION
1 NO CONNECTION
2 NO CONNECTION
3 NO CONNECTION
P-3
4 NO CONNECTION
5 NO CONNECTION
6 NO CONNECTION
7 NO CONNECTION
Table 3.2
3.2 RF RECEIVER CIRCUIT
This is the radio frequency receiver circuit. The circuit contains mainly two
components RF receiver module which is embedded circuit, and decoder IC HT648. Data
output from the RF module is given to pin 9 of HT648 which is data in of decoder. The
decoded data output from the HT6498 is given to port 1 of microcontroller 89S52.
3.3 RF TRANSMITTER AND KEYPAD CIRCUIT
This is the radio frequency Transmitter circuit. The circuit contains mainly two
components RF transmitter module which is embedded circuit, and encoder IC HT640.
Keypad is connected to 5 data pins of encoder IC when key is pressed data pin gets logic
high signal that is vcc +5v.So this 8 bit data is encoded in to single data and transmitted
via RF Tx module as radio frequency signal.
3.4 555 ASTABLE (38 KHZ IR EMITTER) CIRCUIT
BC547
A 555 timer is used to generate the signal of frequency 38 kHz. The 555 timer is
configured in astable mode. The output of this timer is given to an IR LED as emitter.
This signal is emitted by the emitter which is mounted horizontally at the front of the
robot. Here we are using three IR LED connected parallel to the output of astable multi
vibrator circuit. They are mounted in left, right and centre of robot front.
The astable multivibrator is a 555 timer 8 pin device. Pin 4 is reset, Pin 5 is
threshold connected to 0.01muf capacitor another 0.01muf capacitor is connected to pin 2
and GND. Pin 6 & 7 is connected to designed value resistor & capacitor to generate the
desired frequency. Here we are used to generate 38 kHz square wave Pin3 of 555 timer is
connected to BC547 transistor base to drive the LED without any loss. BC-547 is a 3Pin
device collector, emitter & base and is a NPN transistor. The collector pin is connected to
IR LED through 3.9k resistor. To avoid the max current flow this can damage the device.
IR LED is a 2 pin device anode and cathode commonly used in remote controls.
The sensor used is the TSOP1738. It only senses the signal of frequency 38 kHz.
This sensor is used to avoid the reception of signals from other sources. The 38 kHz
signal is only used by TSOP1738 so, it can be horizontally mounted.
Monostable vibrator is an 8 pin 555 timer Ic.Pin1 is GND, Pin2 is trigger, Pin3
output, Pin4 reset, Pin5 threshold, Pin6 & 7 is used to design the ON/OFF time and Pin8
is vcc. The output pin of TSOP1738 is connected to trigger pin of monostable circuit
whenever TSOP senses the 38 KHz IR signal sensor output pin goes low. This triggers
the 555 circuit which in turn generates a high frequency pulse at pin 3. This is the input
for microcontroller port 0.
3.6 MINE DETECTOR
This circuit most useful for safety checking. To check any land mines on its way.
.
The Mine detector can be used to detect the land mines composed of metallic
substance. It uses a sensing coil. This coil should be kept near metallic objects for
detection. Input of circuit is a weak colpitt’s R.F. range oscillator. Sensing coil forms
parts of tuned oscillator.
When coil is brought near a metallic object magnetic energy is absorbed and
oscillator fails to work. Then final transistor conducts and buzzer is activated. Use a 9
volts battery. After connecting battery, adjust the 4.7K preset till circuit just stops
sounding
3.7 COMPONENTS USED
SEMICONDUCTORS SPECIFICATION
Microcontroller 89S52 1
Driver ULN 2803 1
Timer 555 4
Encoder HT 640 1
Decoder HT 648 1
Transistors BC 547 5
Diodes IN 4148 4
RF Tx Rx Module 433 MHz 1 pair
Regulator 7805 1
IR Sensor TSOP 1738 3
IR LED 3
LED
PASSIVE COMPONENTS
Resistors
Capacitors
Relay
MISCELLANIOUS
Battery 12V, 1.2A and 9V
Camera video and audio
DC Motor
Buzzer
Connectors
Switches SPDT, NO switch
Coil
CHAPTER 4
HARDWARE DESCRIPTION
DIAGRAM 89S52
4.1.1 Features of AT 89S52
• Compatible with MCS®-51 Products
• 8K Bytes of In-System Programmable (ISP) Flash Memory
– Endurance: 10,000 Write/Erase Cycles
• 4.0V to 5.5V Operating Range
• Fully Static Operation: 0 Hz to 33 MHz
• Three-level Program Memory Lock
• 256 x 8-bit Internal RAM
• 32 Programmable I/O Lines
• Three 16-bit Timer/Counters
• Eight Interrupt Sources
• Full Duplex UART Serial Channel
• Low-power Idle and Power-down Modes
• Interrupt Recovery from Power-down Mode
• Watchdog Timer
• Dual Data Pointer
• Power-off Flag
• Fast Programming Time
• Flexible ISP Programming (Byte and Page Mode)
• Green (Pb/Halide-free) Packaging Option
4.1.2 Description
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller
with 8K bytes of in-system programmable Flash memory. The device is manufactured
using Atmel’s high-density nonvolatile memory technology and is compatible with the
industry-standard 80C51 instruction set and pin out. The on-chip Flash allows the
program memory to be reprogrammed in-system or by a conventional nonvolatile
memory programmer. By combining a versatile 8-bit CPU with in-system programmable
Flash on a monolithic chip, the Atmel AT89S52 is a powerful microcontroller which
provides a highly-flexible and cost-effective solution to many embedded control
applications. The AT89S52 provides the following standard features: 8K bytes of Flash,
256 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit
Timer/counters, a six-vector two-level interrupt architecture, a full duplex serial port, on-
chip oscillator, and clock circuitry. 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. The Power-down mode saves the
RAM contents but freezes the oscillator, disabling all other chip functions until the next
interrupt or hardware reset.
Vcc
Supply voltage.
Gnd
Ground.
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin can
sink eight TTL Inputs. When 1s are written to port 0 pins, the pins can be used as high-
impedance inputs. Port 0 can also be configured to be the multiplexed low-order
address/data bus during accesses to external program and data memory. In this mode, P0
has internal pull-ups. Port 0 also receives the code bytes during Flash programming and
outputs the code bytes during program verification. External pull-ups are required during
program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1 output
buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins, they are
pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins that
are externally being pulled low will source current (IIL) because of the internal pull-ups.
In addition, P1.0 and P1.1 can be configured to be the timer/counter 2 external count
input (P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX), respectively, as shown
in the following table. Port 1 also receives the low-order address bytes during Flash
programming and verification.
Table 4.1
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2 output
buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they are
pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 2 pins that
are externally being pulled low will source current (IIL) because of the internal pull-ups.
Port 2 emits the high-order address byte during fetches from external program memory
and during accesses to external data memories that use 16-bit addresses (MOVX @
DPTR). In this application, Port 2 uses strong internal pull-ups when emitting 1s. During
accesses to external data memories that use 8-bit addresses (MOVX @ RI), Port 2 emits
the contents of the P2 Special Function Register. Port 2 also receives the high-order
address bits and some control signals during Flash programming and verification.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3 output
buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are
pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that
are externally being pulled low will source current (IIL) because of the pull-ups. Port 3
receives some control signals for Flash programming and verification. Port 3 also serves
the functions of various special features of the AT89S52, as shown in the following table.
Table 4.2
RST
Reset input. A high on this pin for two machine cycles while the oscillator is
running resets the device. This pin drives high for 98 oscillator periods after the
Watchdog times out. The DISRTO bit in SFR AUXR (address 8EH) can be used to
disable this feature. In the default state of bit DISRTO, the RESET HIGH out feature is
enabled.
ALE/PROG
Address Latch Enable (ALE) is an output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the program pulse input
(PROG) during Flash programming. In normal operation, ALE is emitted at a constant
rate of 1/6 the oscillator frequency and may be used for external timing or clocking
purposes. Note, however, that one ALE pulse is skipped during each access to external
data memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location
8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction.
Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the
microcontroller is in external execution mode.
PSEN
Program Store Enable (PSEN) is the read strobe to external program memory.
When the AT89S52 is executing code from external program memory, PSEN is activated
twice each machine cycle, except that two PSEN activations are skipped during each
access to external data memory.
EA/VPP
External Access Enable. EA must be strapped to GND in order to enable the
device to fetch code from external program memory locations starting at 0000H up to
FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on
reset. EA should be strapped to VCC for internal program executions. This pin also
receives the 12-volt programming enable voltage (VPP) during Flash programming.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
XTAL2
Output from the inverting oscillator amplifier.
4.2 UNIPOLAR MOTOR DRIVER ULN 2803
The device feature open-collector outputs with integral clamp diodes. Have series
input resistors selected for operation directly with 5 V TTL or CMOS. This device will
handle numerous interface needs particularly those beyond the capabilities of standard
logic buffers.
The ULN2803A are the standard Darlington arrays. The outputs are capable of
sinking 500 mA and will withstand at least 50 V in the off state. Outputs may be
paralleled for higher load current capability.
These Darlington arrays are furnished in 18-pin dual in-line plastic packages
(suffix ‘A’) or 18-lead small-outline plastic packages (suffix ‘LW’). All devices are
pinned with outputs opposite inputs to facilitate ease of circuit board layout. Prefix ‘ULN’
devices are rated for operation over the temperature range of -20o C to +85o C
4.2.1 Features
The main part of a relay is the coil at the centre. A small current flowing through the coil
in the relay creates a magnetic field that pulls one switch contact against or away from
another. Putting it simply, when current is applied to the contacts at one side of the relay
the coil allows the contacts at the other side to work. Usually relays are used to turn on a
second circuit. The first circuit activates the relay which then ‘turns on’ the second
circuit.
There are few advantages The contacts can be either Normally Open (NO),
Normally Close (NC) or change-over (CO) contacts. In my project I used the normally-
open contacts as it will rotate DC motor when the relay is activated; the circuit is
disconnected when the relay is inactive. It is also called Form A contact or “make”
contact. Form A contact is ideal for applications that require to switch a high current
power source from a remote device. Relays have a lot of useful applications and among
the usage are to control a high-current circuit with a low-current signal, as in the starter
solenoid of an automobile and also to detect and isolate faults on transmission and
distribution lines by opening and closing circuit breakers.
There are few advantages of relays such as the complete electrical isolation safety
by ensuring that high voltages and currents cannot appear where they should not be. Also,
relays come in all shapes and sizes for different applications and they have various switch
contact configurations. Lastly it is easy to tell when a relay is operating as we can hear a
click as the relay switches on and off and we can sometimes see the contacts moving. The
disadvantages of relays are at their parts as it can wear out as the switch contacts become
dirty due to high voltages and currents sparks between the contacts. Also they cannot be
switched on and off at high speed because they have a slow response and the switch
contacts will rapidly wear out due to the sparking.
4.4 RF TRANSMITTER AND RECEIVER MODULE
4.4.1 Transmitter
1 2 3 4
A transmitter is a circuit with an output sent through the air by light, sound or
electromagnetic waves at a specific frequency. Radio frequency (RF) transmitters are
widely used in radio frequency communication systems. The function of a radio
frequency (RF) transmitter is to modulate, up convert and amplify signals for
transmission into free space. The radio frequency transceiver modules can use a wide
range of input voltages; as a result, transmitter voltage varies by module specification.
Higher radio frequency module voltages usually result in greater transmission distances.
In this case, a wireless transmitter module shown above is used, where the launch
frequency for it is at 433MHz. This transmitter module is stable and reliable, high quality
and low cost features.
Features
Working voltage: 3v-12v
Working current: 10-15ma
Frequency:433mhz
Range: 100 mts
Transport speed:4800kbps
Encoder IC: HT 640
4.4.2 Receiver
Fig.4.5 RF RECEIVER
PIN Connections
1- ANT 5-VCC
2- GND 6-DATA
3- GND 7-DATA
4- VCC 8-GND
incoming data extracted from the signal. The extracted data is then sent out in serial
format to the decoder board. Above is the receiver module that is used in this project.
This low cost RF receiver module can be used to receive RF signal from any 433MHz
transmitter. Super regeneration design ensures the sensitivity to week signal. The key
benefits of this device are the low power consumption easy to integrate (V+, GND and
DATA) and also it is so small in dimension.
Fig. 4.6 RF
RECEIVER MODULE
Features
Working voltage: 5v
Working current: 0.5-0.8ma
Frequency:433mhz
Range: 100 mts
Transport speed:4800kbps
Decoder IC:HT 648
Applications
Burglar alarm system
Smoke and fire alarm system
Garage door controllers
Car door controllers
Car alarm system
Security system
Cordless telephones
Other remote control systems
4.5 ENCODER HT 640
An encoder is a device used to change a signal or data into a code. The code may
serve any of a number of purposes such as compressing information for transmission or
storage, encrypting or adding redundancies to the input code, or translating from one code
to another. An encoder also a circuit in which a code or signal presented in one format
can be changed to a format compatible with circuitry it interfaces with. As for my project,
the encoder HT 640 is the Holtek 318 encoders which are series of CMOS LSIs for remote
control system applications. They are capable of encoding 18 bits of information which
consists of N address bits and 18N data bits. Each address or data input is externally
trinary programmable if bonded out. It is otherwise set floating internally. Various
packages of 318 encoders offer flexible combinations of programmable address or data to
meet various application needs. The programmable address or data is transmitted together
with the header bits via an RF or an infrared transmission. The capability to select a TE
trigger type or a DATA trigger type further enhances the application flexibility of the 3 18
series of encoders.
The best features of using this encoder are because its operating voltage is in the
range of 2.4V to 12V. Besides that, it has a low power and high noise immunity CMOS
technology. Other features that includes for this encoder are the low standby current,
built-in oscillator which needs only 5% resistor, easy interface with an RF or infrared
transmission media and also minimal external components. Below figure shows the pin
assignment for the encoder HT 640.
Fig.4.7 PIN DIAGRAM HT
640
A decoder is a device which does the reverse of an encoder, undoing the encoding
so that the original information can be retrieved. In digital electronics this would mean
that a decoder is a multiple-input, multiple-output logic circuit that converts coded inputs
into coded outputs, where the input and output codes are different. E.g. n-to-2n, BCD
decoders. Enable inputs must be on for the decoder to function, otherwise its outputs
assume a single "disabled" output code word. A decoder is a circuit in which a coded
signal of a specific format (usually that of its compatible encoder) is received and
changed to a format compatible with the circuitry interfaces with (usually the format
originally presented to the encoder is the same format used for the output of the decoder
when used in wireless systems, but not always). Again for this project, Holtek 318 decoder
is used in which it is a series of CMOS LSIs for remote control system applications. They
are paired with the 318 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 318 series
of decoders receives serial address and data from that series of encoders that are
transmitted by a carrier using and RF or and IR transmission medium. It then compares
the serial input data twice continuously with its local address. If there is no error 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.
The 318 decodes are capable of decoding 18 bits of information that consists of N
bits of address and 18-N bits of data. To meet various applications, they are arranged to
provide a number of data pins whose range is from 0 to 8 and an address pin whose range
is from 8 to 18. In addition, the 318 decoders provide various of address/data number in
different packages. Like the encoder, the decoder also has its own best features. A part
from its operating voltage which is in range from 2.4V to 12V and a low power and high
noise immunity of CMOS technology, this decoder has its trinary address setting. Besides
that, it has two times of receiving check, built-in oscillator which only needs a 5% resistor
and valid transmission indicator. It is so easy to interface with an RF or an infrared
transmission medium and also it needs minimal external components. Below figure shows
the pin assignment for the encoder HT 648.
Table 4.4 PIN DESCRIPTION FOR HT 648
4.6.1 Features
4.7.1 IR LED
This is used as a transmitter. The IR LED or Infra Red Light Emitting Diode is an
electronic device which gives off or emits light when current is passed through it. Like
general diode, this IR LED passes current only in one direction and requires forward
operation voltage of about 2V and forward operation current in 10 to 20 mA range.
Maximum reverse voltage that the IR LED can withstand is typically 3 to 5V, more than
this could damage the component. It does not have any current control function, so, when
the IR LED is used in a circuit, a resistor must be used in series to limit the current flow
through it. If greater range is required, this resistor may be reduced to a minimum value
with a consequent adverse effect on current consumption. Do not reduce the value of
resistor unless you do require the greater range.
The TSOP1738 series are miniaturized receivers for infrared remote control
systems. PIN and preamplifier are assembled on lead frame, the epoxy package is
designed as IR filter. The demodulated output signal can directly be decoded by a
microprocessor. TSOP1738 is the standard IR remote control receiver series, supporting
all major transmission codes. It is design to sense 38 KHz square wave. There are other
frequencies available, but 38 KHz is the most widespread one. As TSOP sense 38 KHz
modulated light, it turns output low. It is because of the output stage, which is transistor
switch. It will keep output low for some time and then again rise high- it not just sense 38
KHz but also determine if it constant 38 KHz signal, or a burst of finite number of square
waves, i.e. it rejects continuous 38 KHz just like ambient light.
Block Diagram of TSOP 1738
Features
Photo detector and preamplifier in one package
Internal filter for PCM frequency
Improved shielding against electrical field disturbance
TTL and CMOS compatibility
Output active low
Low power consumption
High immunity against ambient light
Continuous data transmission possible (up to 2400 bps) Suitable burst length 10
cycles/burst
4.8 555 TIMER
4.8.1 Features
• High Current Drive Capability (200mA)
• Adjustable Duty Cycle
• Temperature Stability of 0.005%/°C
• Timing from μSec to Hours
• Turn off Time Less than 2μSec
Figure illustrates a monostable circuit. In this mode, the timer generates a fixed pulse
whenever the trigger voltage falls below Vcc/3. When the trigger pulse voltage applied to
the #2 pin falls below Vcc/3 while the timer output is low, the timer's internal flip-flop
turns the discharging Tr. off and causes the timer output to become high by charging the
external capacitor C1and setting the flip-flop output at the same time. The voltage across
the external capacitor C1, VC1 increases exponentially with the time constant t=RA*C
and reaches 2Vcc/3 at td=1.1RA*C. Hence, capacitor C1 is charged through resistor RA.
The greater the time constant RAC, the longer it takes for the VC1 to reach 2Vcc/3. In
Other words, the time constant RAC controls the output pulse width. When the applied
voltage to the capacitor C1 reaches 2Vcc/3, the comparator on the trigger terminal resets
the flip-flop, turning the discharging Tr. on. At this time, C1 begins to discharge and the
timer output converts to low. In this way, the timer operating in monostable repeats the
above process. Figure 2 shows the general waveforms during monostable operation.
It must be noted that, for normal operation, the trigger pulse voltage needs to maintain a
minimum of Vcc/3 before the timer output turns low. That is, although the output remains
unaffected even if a different trigger pulse is applied while the output is high, it may be
affected and the waveform not operate properly if the trigger pulse voltage at the end of
the output pulse remains at below Vcc/3.
Whenever a robotics hobbyist talk about making a robot, the first thing comes to
his mind is making the robot move on the ground. And there are always two options in
front of the designer whether to use a DC motor or a stepper motor. When it comes to
speed, weight, size, cost. DC motors are always preferred over stepper motors. There are
many things which you can do with your DC motor when interfaced with a
microcontroller. For example you can control the speed of motor, you can control the
direction of rotation, you can also do encoding of the rotation made by DC motor i.e.
keeping track of how many turns are made by your motors etc. So you can see DC motors
are no less than a stepper motor.
In this part we are using geared DC motor with combination of gear to get a
specific RPM. The shaft is connected to gear box which in turn connected to shaft of the
DC motor. Below figure shows simple gear combination.
4.10.1 Camera
Batteries are an excellent emergency power source, but require some basic
information to use properly. They are electrochemical devices. They have plates, usually
metallic, and either a solution or a moist compound between the plates. A chemical
reaction takes place in the battery when it is discharged that produces a flow of electrons
out one plate on the negative side and into another plate on the positive side.
Here we are using dry lead/acid battery. It has plates of lead in sulphuric acid
solution in water. One of the sets of lead plates is coated with lead dioxide. As such a
battery discharges it creates two chemical reactions, one at the anode that ends up with an
excess of electrons, and one at the cathode that ends up short electrons. If a wire is
connected between the two, the excess electrons from the anode will travel through the
wire as a current to the cathode where they are needed to complete the electron deficient
reaction there.
Dry lead acid battery of 12V/1.3A is used as source of power for the whole robot
unit. For digital circuitry 5 volts needed is derived from 12v battery using regulator
IC7805.
SYSTEM IMPLEMENTATION
The important properties that have to be considered for selecting the PCB
substrate are the dielectric strength, insulation resistance, water absorption property,
coefficient of thermal expansion, shear strength, hardness, dimensional stability etc.
Pattern designing is the primary step in fabricating a PCB. In this step, all
interconnection between the components in the given circuit are converted into PCB
tracks. Several factors such as positioning the diameter of holes, the area that each
component would occupy, the type of end terminal should be considered.
The copper side of the PCB should be thoroughly cleaned with the help of alcoholic
spirit or petrol. It must be completely free from dust and other contaminants.
The mirror image of the pattern must be carbon copied and to the laminate the
complete pattern may now be made each resistant with the help of paint and thin brush.
5.2.3 Developing
In this developing all excessive copper is removed from the board and only the
printed pattern is left behind. About 100ml of tap water should be heated to 75 ° C and
30.5 grams of FeCl3 added to it, the mixture should be thoroughly stirred and a few drops
of HCl may be added to speed up the process.
The board with its copper side facing upward should be placed in a flat bottomed
plastic tray and the aqueous solution of FeCl2 poured in the etching process would take
40 to 60 min to complete.
After the etching is completed, hole of suitable diameter should be drilled, then
the PCB may be tin plated using an ordinary 35 Watts soldering rod along with the solder
core, the copper side may be given a coat of varnish to prevent oxidation.
5.2.5 Drilling
Drills for PCB use usually come with either a set of collects of various sizes or a
3-Jaw chuck. For accuracy however 3-jaw chunks aren’t brilliant and small drill below 1
mm from grooves in the jaws preventing good grips.
5.2.6 Soldering
Begin the construction by soldering the resistors followed by the capacitors and
the LEDs diodes and IC sockets. Don’t try soldering an IC directly unless you trust your
skill in soldering. All components should be soldered as shown in the figure. Now
connect the switch and then solder/screw if on the PCB using multiple washers or spaces.
Soldering it directly will only reduce its height above other components and hamper in its
easy fixation in the cabinet. Now connect the battery lead.
5.2.7 Assembling
The circuit can be enclosed in any kind of cabinet. Before fitting the PCB suitable
holes must be drilled in the cabinet for the switch, LED and buzzer. Note that a rotary
switch can be used instead of a slide type.
Switch on the circuit to be desired range. It will automatically start its timing
cycles. To be sure that it is working properly watch the LED flash. The components are
selected to trigger the alarm a few minutes before the set limit.
CHAPTER 6
SOFTWARE DESCRIPTION
START
INITIALIZE
PORTS
B
CHECK
STOP KEY STOP
IS PRESSED YES
NO
CHECK
FWD KEY IS FORWARD
PRESSED YES
NO
CHECK REV
KEY IS REVERSE
PRESSED YES
NO
CHECK
RIGHT KEY TURN LEFT
IS PRESSED YES
NO
CHECK
LEFT KEY TURN RIGHT
IS PRESSED YES
NO
A
A
If IR MODE
B KEY IS
YES PRESSED
NO
CHECK
FRONT TURN RIGHT
OBSTACLES YES
NO
CHECK
RIGHT TURN LEFT
OBSTACLES YES
NO
CHECK
LEFT TURN RIGHT
OBSTACLES YES
NO
IF REMOTE
MODE KEY B
IS PRESSED YES
STOP
7.1 APPLICATIONS
i. Military surveillance
ii. Space Exploration.
iii. Hazardous Area Maintenance like Nuclear Power Reactors.
iv. Mining.
v. Hospitals - To Maintain Sterile Environment.
vi. Industrial Automated Equipment Carriers.
vii. Tour Guides in Museums and Other Similar Applications.
7.2 ADVANTAGES
i. Circuit is very simple.
ii. Components used are economical.
iii. Compact, Power Efficient.
iv. No Manual Interpretation Required.
v. Accuracy Is Very High.
vi. Can Be Used In All Kinds Of Environment.
vii. Robots never get sick or need to rest, so they can work 24 hours a day, 7 days a
week.
viii. When the task required would be dangerous for a person, they can do the work
instead.
ix. Robots don't get bored, so work that is repetitive and unrewarding is no
problem for a robot.
CHAPTER 8
FUTURE ENHANCEMENTS
A defence surveillance robot was designed in the project. Using the RF remote
control and sensors to sense the path and obstacles, controller program was designed so as
to enable the microcontroller to control robot, using RF remote and movement of the
robot and move when there is no obstacle in the following path. The program could also
read data from sensors and produce the controlling actions respectively. The motor
drivers are used to drive the motor. Obstacle sensors are used to change the movement of
robot when the robot faces an obstacle on the path.
The project has been accomplished with the help of KEIL C compiler and
ATMEL programmer. The project has been tested successfully and has been approved by
the concerned project guides.