Beruflich Dokumente
Kultur Dokumente
&
OBSTACLE DETECTOR
robot
has
movable
OBJECTIVE OF PROJECT
The primary design criteria for this robot were as
follows:
2
Minimal cost
Incorporate already owned components
Use cheap and easily worked materials
for
platforms
Minimize weight to make use of cheaper servos
Solid design and construction
Able to be implemented in stages
Modular design
Room for expansion
BRIEF DESCRIPTION
4
2.
3.
4.
5.
6.
DESCRIPTION OF CIRCUIT
In this project we use IC 89C2051 microcontroller as a
main processor. IC 89C2051 is a 20 pin microcontroller.
This IC is a 20 pin version of 40 pin main ATMEL IC
89C51 microcontroller. We program this IC with the help
of computer. Software is written in the assembly
language and then transfer into the blank IC with the
help of programmer kit. The robot is a small three wheel
robot that avoids obstacles which it senses with its
active infrared sensors. Each rear wheel has its own
motor; the single front wheel is not powered. The robot
steers "like a tank" by rotating the rear wheels in
opposite direction.
The
sensors
are
built
with
infrared
LEDs
and
COMPONENT-DESCRIPTION
Details of IC 4049
The MC14049B Hex Inverter/Buffer and MC14050B Non
inverting Hex Buffer are constructed with MOS P
Channel and NChannel enhancement mode devices in
a single monolithic structure. These complementary
MOS devices find primary use where low power
dissipation and/or high noise immunity is desired.
These devices provide logic level conversion using only
one supply voltage, VDD. The inputsignal high level
(VIH) can exceed the VDD supply voltage for logic level
conversions. Two TTL/DTL loads can be driven when
the devices are used as a CMOStoTTL/DTL converter
(VDD = 5.0 V, VOL _ 0.4 V, IOL 3.2 mA). Note that pins 13
and 16 are not connected internally on these devices;
consequently connections to these terminals will not
affect circuit operation.
a)
b)
c)
VDD
INFRARED SENSORS
10
Object Detection
Detecting objects without whiskers doesnt require
anything as sophisticated as machine vision. Some
robots use RADAR or SONAR (sometimes called
SODAR when used in air instead of water). An even
simpler system is to use infrared light to illuminate the
robots path and determine when the light reflects off an
object. The IR illuminators and detectors are readily
available and inexpensive.
Infrared as Headlights
The infrared object detection system well build on the
robot is like a cars headlights in several respects.
When the light from a cars headlights reflects off
11
the
microcontroller
makes
decisions
and
12
Fig: Receiver
Pin 1 is ground: Pin 2 is Vcc: Pin 3 is Data Pin gives
logic 0 when ever it detects IR Pulse
IC SERIES 78XX
13
The LM78xx series of devices is a family of selfcontained fixed linear voltage regulator integrated
circuits. The 78xx family is a very popular choice for
many electronic circuits which require a regulated
power supply, due to their ease of use and relative
cheapness. When specifying individual ICs within this
family, the xx is replaced with a two-digit number, which
indicates the output voltage the particular device is
designed to provide (for example, the 7805 has a 5 volt
output, while the 7812 produces 12 volts). The 78xx line
are positive voltage regulators, meaning that they are
designed to produce a voltage that is positive relative to
a common ground. There is a related line of 79xx
devices which are complementary negative voltage
regulators. 78xx and 79xx ICs can be used in
combination to provide both positive and negative
supply voltages in the same circuit, if necessary.
These devices typically support an input voltage which
can be anywhere from a couple of volts over the
intended output voltage, up to a maximum of 35 or 40
volts, and can typically provide up to around 1 or 1.5
amps of current.
14
Regulation
Voltage
+5V
+12V
+15V
Maximum
Current
0.1A
0.1A
0.1A
Minimum
Input Voltage
+7V
+14.5V
+17.5V
78M05
78M12
+5V
+12V
0.5A
0.5A
+7V
+14.5V
15
78M15
+15V
0.5A
+17.5V
7805
7806
7808
+5V
+6V
+8V
1A
1A
1A
+7V
+8V
+10.5V
Ripple Voltage
If you are using a regulator after the smoothing block of
the power supply, then you shouldn't need to worry
about the ripple voltage, since the whole point of using
a regulator is to get a stable, accurate, known voltage
for your circuits! However, if the ripple voltage is too
large and the input voltage to the regulator falls below
the regulated voltage of the regulator, then of course the
regulator will not be able to produce the correct
regulated voltage. In fact, the input voltage to a
regulator should usually be at least 2V above the
regulated voltage. In our power supply circuit, the input
to the 7805 regulator is around 12V, and the regulation
voltage is 5V, so there is plenty of headroom. The
maximum input voltage to any 78xx regulator is 30V.
78xx Pin-out
The 78xx, 78Mxx, and 78Sxx regulators all have the pinout shown in the left of figure 1 and are normally
supplied in a case style known as TO-220. The 78Lxx
series, shown in the right of figure 1, also has the same
pin-out but has a case style known as TO-92. They are
all connected to the rest of the power supply in the
same way, as shown in figure 2.
16
Optocouplers
We program the microcontroller so that microcontroller
monitor the input signal from the sensors when any
sensor reflect the rays then circuit acknowledge the
signal and due to that microcontroller changes its
output as per the program. In this program we take a
output from the IC.
We use a sinking logic of the circuit. Output from the
microcontroller is further connected to the optocoupler
circuit.
Optocoupler provide an optical isolation between the
microcontroller circuit and motor driver circuit. Here in
17
18
Microcontrollers(AT89C2051)
19
is
the
primary
difference
between
bytes
make
word.
The 8051
ROM, x=7, indicates EPROM and x=9 indicates EEPROM
or Flash. The 8051 developed and launched in the early
80`s, is one of the most popular micro controller in use
today. It has a reasonably large amount of built in ROM
and RAM. In addition it has the ability to access external
memory.
The generic term `8x51` is used to define the device. The
value of x defining the kind of ROM, i.e. x=0, indicates
21
none,
x=3,
indicates
mask.
Block
diagram
of
A Note on ROM
The early 8051, namely the 8031 was designed without
any ROM. This device could run only with external
memory connected to it. Subsequent developments lead
to the development of the PROM or the programmable
ROM. This type had the disadvantage of being highly
unreliable. The next in line, was the EPROM or Erasable
Programmable ROM. These devices used ultraviolet
light erasable memory cells. Thus a program could be
loaded, tested and erased using ultra violet rays. A new
program could then be loaded again. An improved
EPROM was the EEPROM or the electrically erasable
PROM. This does not require ultra violet rays, and
memory can be cleared using circuits within the chip
itself.
Finally there is the FLASH, which is an improvement
over the EEPROM. While the terms EEPROM and flash
are sometimes used interchangeably, the difference lies
in the fact that flash erases the complete memory at one
23
8051
microcontroller.
24
take
place
every
30
seconds,
how
will
the
of
frequency
stability.
Temperature
Crystal
oscillators
are
usually
fixed
frequency
oscillator
for
the
higher
frequencies
without
Oscillator Characteristics
XTAL1 and XTAL2 are the input and output respectively,
of an inverting amplifier which can be configured for
use as an on-chip oscillator, as shown in Figure 1.
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 Figure 2. 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.
26
27
28
Types of Microcontrollers
Low-level
programmable:
Microcontrollers
are
language
is
common
method
for
your
computer
converts
your
program
into
an
30
Key Features
Pin Configuration
31
and
erasable
read
only
memory
with
the
industry
standard
MCS-
following
standard
32
Pin Description
Port 1 is an 8-bit bidirectional I/O port. Port pins P1.2 to
P1.7 provide internal pull ups. P1.0 and P1.1 require
external pull ups. P1.0 and P1.1 also serve as the
positive input (AIN0) and the negative input (AIN1),
respectively,
of
the
on-chip
precision
analog
33
BIT
CLR BIT
CPL BIT
JB BIT,TARGET
JUMP TO
TARGET IF BIT =1
BIT
Working:
It is very simple, the programmer is switched on and the
circuit is connected to and switched on. The program is
executed the Intel Hex file is loaded and the program is
told it to upload it into the IC. This is done within a
35
MOTORS
INTRODUCTION
DC and stepper motors are inherently open feedback
systems you give them juice and they spin. How much
they spin is not always known not even for a stepper
motor which turns by finite degrees based on the
number of pulses it gets. Servo motors on the other
36
DC motor
2.
Stepper motor
3.
Servo motor
37
DC Motors
These are the motors that are commonly found in the
toys and the tape recorders. These motors change the
direction of rotation by changing the polarity. Most
chips can't pass enough current or voltage to spin a
motor. Also, motors tend to be electrically noisy (spikes)
and can slam power back into the control lines when the
motor direction or speed is changed.
Specialized
circuits
(motor
drivers)
have
been
Stepper Motors
Stepper motors are special kind of heavy duty motors
having 2 or 4 coils. The motors will be stepping each time
when it get the pulse. As there are many coils in the
38
Servo Motors
Servo motors unlike the stepper motor it has to be
controlled by the timing signal. This motor has only one
coil. It is mostly used in robots for its lightweight and
low power consumption. The servo motors can also be
accurately rotated by the making the control signal of
the servo motor high for a specific time period. Actually
the servo motor will be having 3 wires where 2 are for
power supply and another one is for the control signal.
39
The
motor
and
potentiometer
are
42
pairs
of
transistors
are
never
enabled
43
44
base Q1/Q4
base Q2/Q3
Motor1 action
0 Volt
0 Volt
STOP
0 Volt
5 Volt
REVERSE
5 Volt
0 Volt
FORWARD
5 Volt
5 Volt
STOP
APPLICATIONS
It can be used for archeological surveys.
This technology can be used in space missions,
like on moon, as it can travel on uneven
surfaces.
It can be used for security purposes ( used by
army in detection of mines ).
It can be a useful toy for children.
46
BIBLIOGRAPHY
Infra Red:
Basic Stamp
Documentation for IR ranging system
www.Electronicsforu.com
-IR sensors and proximity detector
Atmel:
47
www.Atmel.com
Data sheets and avrasm for programming
http://www.avr-asm-tutorial.net
Documentation on various programming models and
interrupts
Components:
http://us.st.com/stonline/books/pdf/docs/2143.pdf
7805 5V Voltage Regulator-TO-220 package
www.Seattleroboticssociety.com
Various circuits
http://home.zonnet.nl/bvandam/voorpag.html
Artificial intelligence and machine learning
Compiler:
www.keil.com
Books Referred:
48
and
applications
with
8085,
Ramakant
A.Gayakward,
integrated
circuits,
Op-Amps
Pearson
and
linear
Education,4th
49
50
51
52
53