Documentos de Académico
Documentos de Profesional
Documentos de Cultura
A Project submitted
to
CHHATTISGARH SWAMI VIVEKANANDA TECHNICAL UNIVERSITY
BHILAI(C.G), INDIA
Signature of candidates
ABHISHEK DUBEY
AMIT KUMAR
(3332810122)
(3332810125)
(3332810129)
(3332810122)
(3332810125)
(3332810129)
ABHISHEK DUBEY
AMIT KUMAR
(3332810122)
(3332810125)
(3332810129)
has been examined by the undersigned as a part of the examination and hereby recommended for the
award of the degree of Bachelor of Engineering in the faculty of Electronics and Telecommunication
of Chhattisgarh Swami Vivekananda Technical University , Bhilai (C.G), India
Name :
Name :
Designation:
Designation:
Department:
Department:
AKNOWLEDGEMENT
ABHISHEK DUBEY
AMIT KUMAR
(3332810122)
(3332810125)
(3332810129)
ABSTRACT
Now a days robots are controlled by remote or cellphones or by direct wired connection. If
we thinking about cost and required hardwares all this things increases the complexity,
especially for low level application. Now the robot that we have designed is different from
above one. It doesnt required any type of remote or any communication module. it is self
activated robot, which drive itself according to position of user who stands in front of it. It
does what user desires to do. it makes copy of its all movement of the user standing in front
of it. Hardware required is very small, and hence low cost and small in size.
LIST OF CONTENTS
Chapter No.
1.
Name of Topic
Page No.
INTRODUCTION
4 - 6.
2.
LITERATURE REVIEW
3.
PROBLEM IDENTIFICATION
4.
5.
6.
METHODOLOGY
7.
8.
10 - 11.
19 48.
49 61.
62 - 64.
9.
7 - 9.
REFERENCE
65 66.
67 68.
LIST OF FIGURE
Serial No.
Name of Figure
Page No.
1.
21
2.
22
3.
23
4.
RF TRANSMITTER MODULE
25
5.
RF RECEIVER MODULE
25
6.
31
7.
PIN CONFIGURATION OF
COMPARATOR LM339
8.
BLOCK DIAGRAM OF
ACCELEROMETER
9.
38
PIN COFIGURATION OF
ACCELEROMETER
10.
35
38
11.
56
12.
56
COMPONENT ROUTING OF
TRANMITTER
13.
57
COMPONENT ROUTING OF
RECEIVER
58
8
LIST OF TABLES
Serial no.
1.
Name of Table
ELECTRICAL CHARACTERISTICS OF
Page No.
25
TRANSMITTER
2.
ELECTRICAL CHARACTERISTICS OF
26
RECEIVER
3.
PARAMETER OF HT12E
29
4.
29
5.
31
6.
PIN DESCRIPTION
32
7.
ELECTRICAL CHARACTERISTICS OF
33
HT12D
8.
ELECTRICAL CHARECTERISTICS OF
35
COMPARATOR
9.
39
10.
44
11.
45
12.
50
Chapter 1
INTRODUCTION
10
1. INTRODUCTION
Overview
1.1
During the last few decades we have seen the emergence of robots capable of
performing complex tasks in the human environment. This project makes us advance in the
path of making robots in such a way that makes them according to the gestures of the
instructor.
The goal of this project is to implement a robot able to act according to the hand
gestures of the instructor and to sketch the main challenges and future directions. Designing
such kind of robot one needs to consider the following aspects
This robot shall be capable to work on receiving instructions wirelessly. Developing such
kind of robots needs:
Power supply.
11
1.2
1.3
About ExpressPCB
ExpressPCB is a very easy to use Windows application for laying out printed circuit
boards.TheCAD software includes ExpressSCH for drawing schematics and ExpressPCB for
designing circuit boards. ExpressPCB can be used to design double-sided boards (with two
copper layers) and four-layer boards (with four copper layers).
1.4
About Keil
Keil development tools for the 8051 microcontroller family support every level of
developer from the professional applications engineer to the student just learning about
embedded software development. The industry-standard Keil C Compilers, Macro
Assemblers, Debuggers, Real-time Kernels, and Single-board Computers support ALL 8051compatible derivatives.
It supports programming in assembly language as well as C language. In this project
C language is being used for coding the algorithm.
1.5
1. Introduction.
2. Literature Review.
3. Problem Identification.
4. Design and Control System.
5. Methodology.
6. Result and Discussion.
7. Conclusion and Scope of Further Work.
12
Chapter 2
LITERATURE REVIEW
13
2.LITERATURE REVIEW
Boehme etal. [1] , Boehme developed a system in which the robot reliably detects gestural
cues given by the user. His work focuses on improving the robustness of the interface by rst
identifying potential users through a multiple queue approach.
Hasan [17] applied multivariate Gaussian distribution to recognize hand gestures using
nongeometric features. The input hand image is segmented using two different methods [18];
skin color based segmentation by applying HSV color model and clustering based
thresholding techniques [18]. Some operations are performed to capture the shape of the hand
to extract hand feature; the modified Direction Analysis Algorithm are adopted to find a
relationship between statistical parameters (variance and covariance) [17] from the data, and
used to compute object (hand) slope and trend [17] by finding the direction of the hand
gesture [17].
The robots have an inherently unstable structure and whose modeling and control can be
carried out by different techniques. The aim of this study is to present a critical literature
review of the main types of biped robots developed until the present date, including Brazil.
According to their particular features presented in the literature, robots will be treated
concerning dimensions, degrees of freedom or system of control. Advantages and
disadvantages of moving robots when compared to leg robots will be presented. This
comparison will also be done taking into account other types of robots. The evolution of
biped robots also will be presented including those ones for entertainment purposes.
Mathematical modeling for determination of equation of motion, Zero Moment Point, and
application of control theory in order to allow a response for a standard input is also showed.
Kulkarni [31] recognize static posture of American Sign Language using neural
networks algorithm. The input image are converted into HSV color model,
resized into 80x64 and some image preprocessing operations are applied to
segment the hand [31]from a uniform background [31], features are extracted
using histogram technique and Hough algorithm. Feed forward Neural
Networks with three layers are used for gesture classification. 5 samples are
used for training and 3samples for testing, the system achieved 92.78%
recognition rate using MATLAB language.[31].
14
Chapter 3
PROBLEM IDENTIFICATION
15
3. PROBLEM IDENTIFICATION
Developing a robot with motion according to the hand gestures needs a systematic approach
to be followed. The design of the body or the framework on which the actuators and the electronic
control circuit can be mounted must be done properly.
The next factor is the selection of actuators. Actuators are nothing but motors which provide motion to
the robot body as per the signal given to them. In this project normal 100 rpm dc motors are used as
their rotation is highly accurate.
Another challenge is designing control circuit with minimum power consumption. The control
circuit must be able to receive instructions from the transmitter held by the instructor so that the robot
can be controlled. To do so microcontroller is required. Hence microcontroller is to be used for
controlling the robot. In this project 8051 microcontroller is being used.
After completing the hardware programming the robot for its motion in such a way that the
actuators work simultaneously and the robots balance is maintained.
16
Chapter 4
DESIGN AND CONTROL SYSTEM
17
19
8051
Microcontroller
20
Chapter 5
HARDWARE AND DESCRIPTION
21
22
FIGURE 5.1(b) RF
RECEIVER MODULE
23
24
25
5.1.2.FEATURES
Miniature Module.
5V operation.
IF Frequency: 1MHz.
Low Cost.
1.5-12V operation.
34 Channels Available.
Single Supply Voltage.
26
27
28
29
30
31
32
5.4.COMPARATOR
5.4.1GENERAL DESCRIPTION
Comparators are designed for use in level detection, lowlevel sensing and memory
applications in consumer, automotive, and industrial electronic applications.
5.4.2.Features
Single or Split Supply Operation.
Low Input Bias Current: 25 nA (Typ).
Low Input Offset Current.
Low Input Offset Voltage.
Input Common Mode Voltage Range to GND.
Low Output Saturation Voltage: 130 mV (Typ) at 4.0 mA.
TTL and CMOS Compatible.
ESD Clamps on the Inputs Increase Reliability without affecting device operation.
NCV Prefix for Automotive and Other Applications Requiring Site and control Changes.
33
34
5.5.ACCELEROMETER
5.5.1GENERAL DESCRIPTION
We have applied sensor, accelerometer module, which sense the axis of direction of the
motion of the hand, hence the robot starts moving with respect to the motion of the hand.
By measuring the amount of static acceleration due to gravity, you can find out the angle the
device is tilted at with respect to the earth. By sensing the amount of dynamic acceleration,
you can analyse the way the device is moving. At first, measuring tilt and acceleration doesn't
seem all that exciting. However, engineers have come up with many ways to make really
useful products with them.
An accelerometer can help your project understand its surroundings better. Is it
driving uphill? Is it going to fall over when it takes another step? Is it flying horizontally? A
good programmer can write code to answer all of these questions using the data provided by
an accelerometer.
There are several different principles upon which an analog accelerometer can be built. Two
very common types utilize capacitive sensing and the piezoelectric effect to sense the
displacement of the proof mass proportional to the applied acceleration.
Capacitive Accelerometer
Accelerometers that implement capacitive sensing output a voltage dependent on
the distance between two planar surfaces. One or both of these plates are charged with an
electrical current. Changing the gap between the plates changes the electrical capacity of the
system, which can be measured as a voltage output. This method of sensing is known for its
high accuracy and stability. Capacitive accelerometers are also less prone to noise and
variation with temperature, typically dissipate less power, and can have larger bandwidths
due to internal feedback circuitry. (Elwenspoek 1993).
Piezoelectric Accelerometer
Piezoelectric sensing of acceleration is natural, as acceleration is directly
proportional to force. When certain types of crystal are compressed, charges of opposite
35
polarity accumulate on opposite sides of the crystal. This is known as the piezoelectric effect.
In a piezoelectric accelerometer, charge accumulates on the crystal and is translated and
amplified into either an output current or voltage.
Piezoelectric accelerometers only respond to AC phenomenon such as vibration or
shock. They have a wide dynamic range, but can be expensive depending on their quality
(Doscher 2005).
5.5.2ADXL335
The ADXL335 is a small, thin, low power, complete 3-axis accelerometer with signal
conditioned voltage outputs. The product measures acceleration with a minimum fullscale range of 3 g. It can measure the static acceleration of gravity in tiltsensing applications, as well as dynamic Acceleration resulting from motion, shock, or
vibration.
They are typically used in one of three modes:
As a vibration or impact (shock) sensor. Most accelerometers are Micro-ElectroMechanical Sensors (MEMS). They are typically used in one of three modes:
As a vibration or impact (shock) sensor. Most accelerometers are Micro-ElectroMechanical Sensors (MEMS).
36
5.4.3.PIN CONFIGURATION
37
a poly-silicon surface-micro
38
If you have two microstructures next to each other, they have a certain capacitance between
them. If an accelerative force moves one of the structures, then the capacitance will change.
Add some circuitry to convert from capacitance to voltage, and you will get an accelerometer.
There are even more methods, including use of the piezoresistive effect, hot air bubbles, and
light.
The fixed plates are driven By 180 out-of-phase square waves. Acceleration
deflects the moving mass and unbalances the differential capacitor resulting in a sensor
output whose amplitude is proportional to acceleration. Phase-sensitive demodulation
techniques are then used to determine the magnitude and direction of the acceleration.
The demodulator output is amplified and brought off-chip through a 32 k resistor.
The user then sets the signal bandwidth of the device by adding a capacitor. This filtering
improves measurement resolution and helps prevent aliasing.
The ADXL335 uses a single structure for sensing the X, Y, and Z axes. As a result,
the three axes sense directions are highly orthogonal and have little cross-axis sensitivity.
Mechanical misalignment of the sensor die to the package is the chief source of cross-axis
sensitivity. Mechanical misalignment can, of course, be calibrated out at the system level.
The user selects the bandwidth of the accelerometer using the C X, CY, and CZ capacitors at
the XOUT, YOUT, and ZOUT pins. Bandwidths can be selected to suit the application, with a
range of 0.5 Hz to 1600 Hz for the X and Y axes, and a range of 0.5 Hz to 550 Hz for the Z
axis.
The ADXL335 has provisions for band limiting the XOUT, YOUT, and ZOUT pins.
Capacitors must be added at these pins to implement low-pass filtering for antialiasing and
noise reduction. The equation for the 3 dB bandwidth is
F3 dB = 1/(2(32 k) C(X, Y, Z)).
The tolerance of the internal resistor (RFILT) typically varies as much as 15% of its nominal
value (32 k), and the bandwidth varies accordingly. A minimum capacitance of 0.0047 F
for CX, CY, and CZ is recommended in all cases.
39
5.6.MICROCONTROLLER
5.6.1.GENERAL 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 Atmels highdensity non-volatile memory technology and is compatible with the industry-standard 80C51
instruction set and pinout. The on-chip Flash allows the program memory to be
reprogrammed in-system or by a conventional non-volatile 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 highlyflexible 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.
5.6.2.FEATURES
Compatible with MCS-51 Products.
8K Bytes of In-System Programmable (ISP) Flash Memory
Endurance: 1000 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.
40
41
1.VCC
Supply voltage.
2.GND
Ground.
3.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 highimpedance
inputs.
Port 0 can also be configured to be the multiplexed loworder
address/data bus during accesses to external program and data memory.
In this mode, P0 has internal pullups.
Port 0 also receives the code bytes during Flash programming
and outputs the code bytes during program verification.
External pullups are required during program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pullups. The Port 1 output buffers can
sink/source four TTL inputs.
When 1s are written to Port 1 pins, they are pulled high bythe internal pullups 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 pullups.
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.
42
43
Port 3 also serves the functions of various special features of the AT89S52, as shown in the
following table. Port 3 also receives some control signals for Flash programming and
verification.
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
44
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 isweakly 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.
5.5.4.Special Function Registers :A map of the on-chip memory area called the Special Function Register (SFR) space
is shown in Table 5-1.
45
Note that not all of the addresses are occupied, and unoccupied addresses may not be
imple-mented on the chip. Read accesses to these addresses will in general return random
data, and write accesses will have an indeterminate effect.
User software should not write 1s to these unlisted locations, since they may be used in future
products to invoke new features. In that case, the reset or inactive values of the new bits will
always be 0.
Timer 2 Registers: Control and status bits are contained in registers T2CON (shown in Table
5- 2) and T2MOD (shown in Table 10-2) for Timer 2. The register pair (RCAP2H, RCAP2L)
are the Capture/Reload registers for Timer 2 in 16-bit capture mode or 16-bit auto-reload
mode
5.5.5.Memory Organization
MCS-51 devices have a separate address space for Program
and Data Memory. Up to 64K bytes each of external
Program and Data Memory can be addressed.
Program Memory
If the EA pin is connected to GND, all program fetches are directed to external memory.
On the AT89S52, if EA is connected to VCC, program fetches to addresses 0000H through
1FFFH are directed to internal memory and fetches to addresses 2000H through FFFFH are
to external memory.
Data Memory
The AT89S52 implements 256 bytes of on-chip RAM. The upper 128 bytes occupy a parallel
address space to the Special Function Registers. This means that the upper 128 bytes have the
same addresses as the SFR space but are
physically separate from SFR space. When an instruction accesses an internal location above
address 7FH, the address mode used in the instruction specifies whether the CPU accesses the
upper 128 bytes of RAM or the SFR space. Instructions which use direct addressing access of
the SFR space.
46
47
This is an LCD Display designed for E-blocks. It is a 16 character, 2line alphanumeric LCD display connected to a single 9-way D-type connector. This allows
the device to be connected to most E-Block I/O ports.
The LCD display requires data in a serial format, which is detailed in the user guide
below. The display also requires a 5V power supply. Please take care not to exceed 5V, as this
will
cause
damage
to
the
device.
The
5V
is
best
generated
from
the E-
5 x 7 dot matrix format for 2.96 x 5.56 mm character, plus cursor line Can display 224
different symbols.
Powerful command set and user produced characters TTL and CMOS compiler.
1/16 duty cycle and B/L to be driven by pin 1, pin 2 or pin 15, pin 16 or A.K (LED).
48
49
5.8.MOTOR DRIVER
5.8.1. GENERAL DESCRIPTION
L293D is a dual HBridge motor driver, so with one IC we can interface two DC motors
which can be controlled in both clockwise and counter clockwise direction and if you have
motor with fix direction of motion. You can make use of all the four I/Os to connect up to
four DC motors. L293D has output current of 600mA and peak output current of 1.2A per
channel. Moreover for protection of circuit from back EMF output diodes are included within
the IC. The output supply (VCC2) has a wide range from 4.5V to 36V, which has made
L293D a best choice for DC motor driver.
Each channel is controlled by a TTL compatible logic input and each pair of driver is
equipped with an inhibit input which turns off all four transistor. A separate supply voltage is
provided for logic so that it may be run off a lower voltage to reduce dissipation. Additionally
the L293D includes the output clamping diodes within the IC for complete interfacing with
inductive loads
5.8.2. FEATURES
Inhibit facility.
50
5.9.BATTERY
5.8.1.GENERAL DESCRIPTION
We use 9 volt 3 amp rechargeable battery
A battery is a device that converts stored chemical energy to electrical energy. Batteries are
commonly used as energy sources in many household and industrial applications.
There are two types of batteries: primary batteries (disposable batteries), which are designed
to be used once and discarded, and secondary batteries (rechargeable batteries), which are
designed to be recharged and used multiple times. Batteries come in many sizes, from
miniature cells used in hearing aids and wristwatches toroom-size battery banks that serve as
backup power supplies in telephone exchanges and computer data centers.
51
Chapter 6
METHODOLOGY
52
6.METHODOLOGY
6.1 Body design
The first important thing needed to make any robot is to make its chassis or its body
which carries the battery, control circuit, and actuators (servo motors). There are different
factors which must be kept in mind before starting the work, like :
Material selection.
PCB design.
Availability of clamps.
well as it must also be strong and rigid. In such condition aluminum sheet is the best material
since it can be drilled, cut and twisted with ease and it is strong also.
6.2 Electronic Control Circuit
The control circuit is to be designed such that it can receive serial data from a standard IBM
pc and then generate PWM signals to operate the motors according to the data received.
Considering the above points the most suitable 8-bit microcontroller is 8051 microcontroller
which is manufactured by multiple number of manufacturers.
54
Receiver
55
56
Copper plate is kept over the mask printed on trace paper and exposed to ultraviolet radiation.
57
58
59
60
61
62
Chapter7
RESULT AND DISCUSSION
63
64
65
Discussion:
In this project all the factors related to the mechanical design of the robot and the electronic
design of the transmitter and receiver along with the programming of the accelerometer and
microcontroller etc have been discussed. Discussion about proper power distribution in regulator
circuit, proper current distribution in motors.
Discussion on the microcontroller AT89S51 used in the parallel communication and its proper
connection in the circuitry, Accelerometer pin configuration, Encoder and decoder IC specification
and Pin configuration, connection of regulator for efficient use as power dissipation in the regulator is
high. Connection of motors in the circuitry according to the requirement of current for providing the
maximum torque to the motors so that the robot can efficiently move.
Most important this project is programming and locomotion of the robot that is motion of the
motors with hand gestures. The software used for programming is Keil IDE.
66
Chapter 8
CONCLUSION AND SCOPE OF FUTURE
WORK
67
8.1 CONCLUSION
In our project we have added special features by which our robot can overcome so many problems in
industry. If it is further developed then it can be used for military application.
An Accelerometer is a kind of sensor which gives an analog data while moving in X,Y,Z direction or
may be X,Y direction only depends on the type of the sensor.Here is a small image of an
Accelerometer shown. We can see in the image that their are some arrow showing if we tilt these
sensor's in that direction then the data at that corresponding pin will change in the analog form.
A Gesture Controlled robot is a kind of robot which can be controlled by your hand gestures not by
old buttons.You just need to wear a small transmitting device in your hand which included
an acceleration meter.This will transmit an appropriate command to the robot so that it can do
whatever we want. The transmitting device included a comparator IC for analog to digital conversion
and an encoder which is use to encode the four bit data and then it will transmit by an RF Transmitter
module.
8.2FUTURE SCOPE
This project can be enhanced using voice circuit in this for deaf and dumb people. Voice circuit
converts gestures into voice. With voice circuit implemented this will be useful for Animal Planet,
Discovery people for their studies on animals by playing different sounds & for their exploration.
Further we can add GPRS and GPS modules for place location. We can add video camera for live
streaming. We can add bomb and metal detectors and can send to place, harmful for a person to go.
This type of hand gesture system can be developed for whole body and can be used in military
operations.
68
Chapter 9
REFFERENCES
69
9.REFERENCES
70