Professional Documents
Culture Documents
We cant achieve worthwhile in the field of the technical education without testing
the theoretical knowledge acquired in classroom as it is effectively linked to the
practical approach. We all experienced the same, while working for the project.
We would like to express a deep sense of gratitude and thanks profusely to
. (Head of department, E.C.E.) for allowing us to carry out the project
named Fist controlled wireless robot and for providing us the excellent facilities
and atmosphere under his leadership, during the entire duration of work.
Our very special thanks to .. for being our project guide, whose
excellent guidance, constant encouragement and motivation has inspired us a
lot at all phases of our work, without whom we would not be able to complete
our project.
We are also extremely thankful to our lab technicians for guiding and helping us
during the entire course of our project.
Finally, we also express our gratitude to other faculty members of E.C.E
department for their intellectual support throughout the course of work.
It has been a wonderful experience and we are deeply indebted to all those who
made it possible.
Block Diagram
Schematic Diagrams
MATERIAL USED
1. Transformer
2. Diodes 1N4007
3. Capacitor (470uF,1000uf,22pf)
4. Voltage Regulator (7805 & 7812)
5. Resistors
6. LED
7. Microcontroller
8. LM358
9. LM324
10.IC bases
11.Crystal
12.Switches
13.Accelerometer
14.DC Motors
15.Opto coupler
16.Wheels
17.Casted Wheel
18.Ht12D
19.Ht12E
20.RF modules
21.IC bases
22.Ribbon wire
23.Jumper wire
24.Soldering Iron
25.Soldering Wire
26.Multimeter
27.PCB
28.Cutter
29.Screw & Nuts
WORKING
In this .wireless robot, we use the RF band to control our robot. To perform this
action first of all we set up a wireless link between our robot and remote by the use
of 433MHz modules, which consist of a RF TX along with encoder and RF RX
along with the decoder circuit. Encoder and decoder circuit are used to encode and
decode the data because many signal are being communicating on RF bands. By
using these encoder and decoder we confirm our security First and fore most task
of this project is to read the axis of fist. It is accomplished by the accelerometer.
Accelerometer is a device, which gives a change in the output voltage as the axis
of the object changes. It has three axis X, Y and Z. Accelerometer works on +5V
DC. Output of accelerometer is fed to the op-amp comparator circuits. We need 6
op-amp comparators so that we can figure out all the 6 axis of fist. We tune the opamp to provide the output only if accelerometer moves beyond the particular limit.
Output of these op-amps drives the decimal to binary converter IC. Now the digital
data is ready for transmission but is advice able to raise the power of signal so that
communication distance can be increased. To achieve this we are using opto
couplers. After the opto coupler we are using HT12E to encode the signal and
finally this encoded signal is fed to the RF module, which transmit the data with
address line so that receiver could avoid the noise, because we using 433MHz
radio frequency, which is a general purpose frequency band.
At the receiver end RF rx receives the RF signal then it sends it to the decoder
circuit, which confirms the only transmitted data at the output. Output of RF rx are
fed to the microcontroller at the P1.0, P1.1, P1.2 and P1.3 and according to the
these inputs we control three motors.
Components Description
RESISTORS
The flow of charge (or current) through any material, encounters an opposing force
similar in many respect to mechanical friction. This opposing force is called
resistance of the material. It is measured in ohms.
values from 1ohm to 100k ohms. Thus wire wound resistors are used for high
currents.
Carbon Resistors:
Carbon resistors are divided into three types:
a.
c.
solid
ceramic substrate. The main purpose is to have more precise resistance values
and greater stability with heat. They are made in a small square with leads.
They are also called thin film resistors. They are made of a thin metal
coating
deposited on a cylindrical insulating support. The high resistance values are not
precise in value; however, such resistors are free of inductance effect that is
common in wire wound resistors at high frequency.
Variable Resistors:
Potentiometer is a resistor where values can be set depending on the requirement.
Potentiometer is widely used in electronics systems. Examples are volume control,
tons control, brightness and contrast control of radio or T.V. sets.
2nd
3rd
band 4th
band (multiplier)
band Temp.
(tolerance)
Coefficient
Black 0
100
Brown 1
101
1% (F)
100 ppm
Red
102
2% (G)
50 ppm
Orang
103
15 ppm
Yellow 4
104
25 ppm
Green 5
105
0.5% (D)
Blue
106
0.25% (C)
Violet 7
107
0.1% (B)
Gray
108
0.05% (A)
White 9
109
Gold
101
5% (J)
Silver
102
10% (K)
None
20% (M)
Band1
Band 2
Band 3
Band 4
CAPACITORS
A capacitor can store charge, and its capacity to store charge is called capacitance.
Capacitors consist of two conducting plates, separated by an insulating material
(known as dielectric). The two plates are joined with two leads. The dielectric
could be air, mica, paper, ceramic, polyester, polystyrene, etc. This dielectric gives
name to the capacitor. Like paper capacitor, mica capacitor etc.
Types of Capacitors:- Capacitors are of two Types Fixed and variable capacitor.
Fixed types of capacitor are further of two types:Polar Capacitor:- Those capacitor have polarity are known as polar capacitor.
Electrolytic capacitor are the example of polar capacitors.
Non Polar Capacitor:- Those capacitor have no polarity are known as NON- polar
capacitor. Ceramic capacitor are the example of non polar capacitors
Ceramic Capacitor: Such capacitors have disc or hollow tabular shaped dielectric
made of ceramic material such as titanium dioxide and barium titanate. Thin
coating of silver compounds is deposited on both sides of dielectric disc, which
acts as capacitor plates. Leads are attached to each sides of the dielectric disc and
whole unit is encapsulated in a moisture proof coating. Disc type capacitors have
very high value up to 0.001uf. Their working voltages range from 3V to 60000V.
These capacitors have very low leakage current. Breakdown voltage is very high.
this denotes the "cathode" while the "a" denotes anode. Current can only flow from
anode to cathode and not in the reverse direction, hence the "arrow" appearance.
This is one very important property of diodes.
The principal early application of diodes was in rectifying 50 / 60 Hz AC mains to
raw DC which was later smoothed by choke transformers and / or capacitors. This
procedure is still carried out today and a number of rectifying schemes for diodes
have evolved, half wave, full wave and bridge, full wave and bridge rectifiers.
As examples in these applications the half wave rectifier passes only the positive
half of successive cycles to the output filter through D1. During the negative part
of the cycle D1 does not conduct and no current flows to the load. In the full wave
application it essentially is two half wave rectifiers combined and because the
transformer secondary is centre tapped, D1 conducts on the positive half of the
cycle while D2 conducts on the negative part of the cycle. Both add together. This
is more efficient. The full wave bridge rectifier operates essentially the same as the
full wave rectifier but does not require a cetre tapped transformer. Further
discussion may be seen on the topic power supplies
IC
IC (Integrated Circuit) means that all the components of the circuit are fabricated
on same chip. Digital ICs are a collection of resistors, diodes, and transistors
fabricated on a single piece of semiconductor, usually silicon called a substrate,
: UA, UAF
: MC, MFC.
Sprague
Signetic
Burr-Brown
: BB.
Texas Instruments
: SN.
The middle portion i.e. the IC type number tells about the IC function and also the
family, which the particular IC belongs to.ICs that belongs to standard TTL series
have an identification number that starts with 74; for e.g. 7402, 74LS04, 74S04 etc.
ICs that belongs to standard CMOS family their number starts with 4, like 4000,
451B, 4724B, 1400. The 74C, 74HC, 74AC & 74ACT series are newer CMOS
series.
Various series with TTL logic family are:Standard TTL 74.
Schottky TTL 74s.
Low power Schottky 74LS.
Advance Schottky 74AS.
Advanced Low Power Schottky 74ALs.
Also there are various series with CMOS logic family as metal state CMOS 40 or
140.
Transistor:The schematic representation of a transistor is shown. Note the arrow pointing
down towards the emitter. This signifies it's an NPN transistor A transistor is
basically a current amplifier. Say we let 1mA flow into the base. We may get
100mA flowing into the collector. Note: The currents flowing into the base and
collector exit through the emitter (sum off all currents entering or leaving a node
must equal zero). The gain of the transistor will be listed in the datasheet as either
DC or Hfe. The gain won't be identical even in transistors with the same part
number. The gain also varies with the collector current and temperature.
action. What do you need to get the switch to generate a voltage signal? . . . You
need a voltage divider. The circuit can be built in either of two ways:
The pull down resistor in the first circuit forces Vout to become LOW except when
the push button switch is operated. This circuit delivers a HIGH voltage when the
switch is pressed. A resistor value of 10
is often used.
In the second circuit, the pull up resistor forces Vout to become HIGH except when
the switch is operated. Pressing the switch connects Vout directly to 0 V. In other
words, this circuit delivers a LOW voltage when the switch is pressed.
In circuits which process logic signals, a LOW voltage is called 'logic 0' or just '0',
while a HIGH voltage is called 'logic1' or '1'. These voltage divider circuits are
perfect for providing input signals for logic systems.
What kinds of switches could you use. One variety of push button switch is called
a miniature tactile switch. These are small switches which work well with
prototype board:
LED:- LED means light emitting diode. Its function is similar to the diode. But
these are not made up from silicon or germanium. These are generally used as a
indicating device. There are variety of LEDs are available in market depending
upon their size and colour.
Polarity of LED:- LED have polarity. We can judge its polarity by watching
flags in its structure. Bigger flag is known as cathode and smaller flag is known as
anode as shown below.
Features
Output current up to 1 A
Output voltages of 5; 6; 8; 9; 12; 15; 18; 24 V
Thermal overload protection
Short circuit protection
Crystal: - Its a 2 terminal component. This component has no polarity. Its basic
function to generate a Square Wave of some fixes frequency. Its value is measure
in MHz.
Accelerometer
An accelerometer Sensor is an electromechanical device that measures acceleration
forces. These forces may be static or dynamic which is caused by moving or
vibrating the accelerometer. 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.
We are using ADXL335 accelerometer. The ADXL335 is a small, thin, low power,
complete 3-axis accelerometer with signal conditioned voltage outputs. The
product measures acceleration with a minimum full-scale range of 3 g. It can
measure the static acceleration of gravity in tilt-sensing applications, as well as
dynamic acceleration resulting from motion, shock, or vibration.
Pinout:1.
2.
3.
4.
5.
Vcc
X-out
Y-out
Z-out
GND
used as an alternative. Comparator diagrams and op-amp diagrams use the same
symbols.
Figure 4 shows a comparator circuit. Note first that the circuit does not use
feedback. The circuit amplifies the voltage difference between Vin and VREF, and
outputs the result at Vout. If Vin is greater than VREF, then voltage at Vout will rise
to its positive saturation level; that is, to the voltage at the positive side. If Vin is
lower than VREF, then Vout, will fall to its negative saturation level, equal to the
voltage at the negative side.
In practice, this circuit can be improved by incorporating a hysteresis voltage range
to reduce its sensitivity to noise. The circuit shown in Fig. 5, for example, will
provide stable operation even when the Vin signal is somewhat noisy.
ISOLATORS
Opto coupler (PC-817)
An isolator device to electrically insulate and isolate a separate component in a
circuit board arrangement to allow for relatively fast and convenient diagnostic
inspection of a circuit to locate failed components
RF MODULE
RF module comes in the transmitter and receiver pair. Varity of RF modules are
available in the market. These RF modules operate at some particular frequency
like 433 MHz and 315 MHz. HT 12 D and HT 12 E ICs are used with the RF
modules to encode and decode the data and channels. RF modules send data
serially by air as shown below:-
situation
we
find
ourselves
today
in
the
field
of
thousands
of
transistors
into
one
chip,
which
was
This is how
later
known
the
microcontroller
was
developed.
INTRODUCTION
The PIC16F887 is a well known product by Microchip. It features
all the components which modern microcontrollers normally have.
For its low price, wide range of application, high quality and easy
in
figure
above.
For
example,
designator
Such
pin
functionality
is
very
useful
as
it
makes
the
These
various
pin
functions
cannot
be
used
RESET SIGNAL
In order that the microcontroller can operate properly, a logic one
(VCC) must be applied on the reset pin. The push button
connecting the reset pin MCLR to GND is not necessary.
However, it is almost always provided because it enables the
microcontroller to return safely to normal operating conditions if
something goes wrong. By pushing this button, 0V is brought
to the pin, the microcontroller is reset and the program execution
starts from the beginning. A10K resistor is used to allow 0V to be
applied to the MCLR pin, via the push button, without shorting the
5VDCrail to earth.
CLOCK SIGNAL
Even though the microcontroller has a built-in oscillator, it cannot
operate without external components which stabilize its operation
and determine its frequency (operating speed of the
microcontroller). Depending on elements in use as well as their
frequencies, the oscillator can be run in four different modes:
LP - Low Power Crystal;
XT - Crystal / Resonator;
Quartz Crystal
When the quartz crystal is used for frequency stabilization, a builtin oscillator operates at a precise frequency which is not affected
by changes in temperature and power supply voltage.
This frequency is usually labeled on the crysal casing.
Apart from the crystal, capacitors C1 and C2 must also be
connected as per schematic below. Their capacitance is not of
great importance. Therefore, the values provided in the
table
Ceramic Resonator
CERAMIC resonator is cheaper, but very similar to quartz by its
function and the way of operation. This is why schematics
illustrating their connection to the microcontroller are identical.
However, the capacitor value is slightly different due to different
electric features. Refer to the table below
(SFR)
whose
function
is
predetermined
by
the
depends
on
the
size
of
this
memory.
Todays
practically
microcontrollers
with
an
Flash
unlimited
ROM
are
number
ideal
of
for
timer
learning,
enter the password, but its useless if lost every time the power
supply goes off. The ideal solution is a microcontroller with an
embedded EEPROM.
INTERRUPT
Most programs use interrupts in their regular execution. The
purpose of the microcontroller is mainly to respond to changes in
its surrounding. In other words, when an event takes place, the
microcontroller does something... For example, when you push a
button on a remote controller, the microcontroller will register it
and respond by changing a channel, turn the volume up or down
etc. If the microcontroller spent most of its time endlessly
checking a few buttons for hours or days, it would not be practical
at all.
This is why the microcontroller has learnt a trick during its
evolution. Instead of checking each pin or bit constantly,
the microcontroller delegates the wait issue to a specialist
which will respond only when something attention worthy
happens. The signal which informs the central processor unit
about such an event is called an INTERRUPT BUS A bus consists of
8, 16 or more wires. There are two types of buses: the address
bus and the data bus. The address bus consists of as many lines
as necessary for memory addressing. It is used to transmit
address from the CPU to the memory. The data bus is as wide as
the data, in our case it is 8 bits or wires wide. It is used to connect
all the circuits within the microcontroller
SERIAL COMMUNICATION
Parallel connection between the microcontroller and peripherals
via input/output ports is the ideal solution on shorter distances up
to several meters. However, in other cases when it is necessary to
establish communication
WATCHDOG TIMER
A watchdog timer is a timer connected to a completely separate
RC oscillator within the microcontroller. If the watchdog timer is
enabled, every time it counts up to the maximum value, the
microcontroller reset occurs and the program execution starts
from the first instruction. The point is to prevent this from
happening by using a specific command. Anyway, the whole idea
is based on the fact that every program is executed in several
longer or shorter loops. If instructions which reset the watchdog
timer are set at the appropriate program locations, besides
commands being regularly executed, then the operation of the
watchdog timer will not affect the program execution. If for any
reason, usually electrical noise in industry, the program counter
gets stuck at some memory location from which there is no
return, the watchdog timer will not be cleared, so the registers
value being constantly incremented will reach the maximum et
voila! Reset occurs!
INSTRUCTION SET
All instructions understandable to the microcontroller are called
together the Instruction Set. When you write a program in
assembly language, you actually specify instructions in such an
order they should be executed. The main restriction here is a
DC MOTOR
PRINCIPLE OF OPERATION
In any electric motor, operation is based on simple electromagnetism. A currentcarrying conductor generates a magnetic field; when this is then placed in an
external magnetic field, it will experience a force proportional to the current in the
conductor, and to the strength of the external magnetic field. As you are well aware
of from playing with magnets as a kid, opposite (North and South) polarities
attract, while like polarities (North and North, South and South) repel. The internal
configuration of a DC motor is designed to harness the magnetic interaction
between a current-carrying conductor and an external magnetic field to generate
rotational motion.
ISOLATORS
Opto coupler (PC-817)
An isolator device to electrically insulate and isolate a separate component in a
circuit board arrangement to allow for relatively fast and convenient diagnostic
inspection of a circuit to locate failed components
In electronics, an opto-isolator, also called an optocoupler, photocoupler, or optical
isolator, is "an electronic device designed to transfer electrical signals by utilizing
light waves to provide coupling with electrical isolation between its input and
output. The main purpose of an opto-isolator is "to prevent high voltages or rapidly
changing voltages on one side of the circuit from damaging components or
distorting transmissions on the other side
An opto-isolator contains a source (emitter) of light, almost always a near infrared
light-emitting diode (LED), that converts electrical input signal into light, a closed
optical channel (also called dielectrical channel[5]), and a photosensor, which
detects incoming light and either generates electric energy directly, or modulates
electric current flowing from an external power supply. The sensor can be a
photoresistor, a photodiode, a phototransistor. Pin diagram of PC 817 is shown
below.
connected to the first pin of IC, which is the anode pin diode. 2nd pin is connected
to the port of microcontroller. When the second pin is low then we get low output,
when the input to 2nd pin high we get high voltage the output. Thus we isolate the
voltage having the same logic level.
H-BRIDGE CIRCUIT
When the switches S1 and S4 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.
PORTB.F0 = 0; //LED ON
PORTB.F1 = 0; //LED OFF
PORTB.F2 = 0; //LED ON
PORTB.F3 = 0; //LED OFF
}
else if(PORTD.F1 == 0) //reverse
{
PORTB.F0 = 0; //LED ON
PORTB.F1 = 1; //LED OFF
PORTB.F2 = 0; //LED ON
PORTB.F3 = 1; //LED OFF
}
else if(PORTD.F2 == 0) //left
{
PORTB.F0 = 1; //LED ON
PORTB.F1 = 0; //LED OFF
PORTB.F2 = 0; //LED ON
PORTB.F3 = 0; //LED OFF
}
else if(PORTD.F3 == 0) //right
{
PORTB.F0 = 0; //LED ON
PORTB.F1 = 0; //LED OFF
PORTB.F2 = 1; //LED ON
PORTB.F3 = 0; //LED OFF
}
PORTB.F0 = 1; //LED ON
PORTB.F1 = 0; //LED OFF
PORTB.F2 = 1; //LED ON
PORTB.F3 = 0; //LED OFF
}
else
{
PORTB.F0 = 0; //LED ON
PORTB.F1 = 0; //LED OFF
PORTB.F2 = 0; //LED ON
PORTB.F3 = 0; //LED OFF
}
} while(1);
}