WIRELESS GESTURE CONTROLLED ROBOT WITH VOICE AND VIDEO CAMERA New
WIRELESS GESTURE CONTROLLED ROBOT WITH VOICE AND VIDEO CAMERA New
WIRELESS GESTURE CONTROLLED ROBOT WITH VOICE AND VIDEO CAMERA New
CAMERA
CHAPTER 1
ABSTRACT
To design and construct gestures controlled device switching system and also a robot
control wirelessly with a video camera on it for physically challenged. The user can wear this
device to any movable part and with the simple gestures he can request the basic needs like
water, food or medicine through robot operated wirelessly using MEMS (Micro Electro-
Mechanical Systems) technology. User can also control the electrical devices like light; fan etc
with the help of gestures. MEMS is a Micro Electro Mechanical Sensor which is a highly
sensitive sensor and capable of detecting the tilt. This sensor finds the tilt and operates the
electrical devices and announces the basic needs depending on tilt. For example, if the tilt is to
the forward then the device will be “ON” for the first time then next time it will be “OFF”.
In the same way, if the tilt is to the left side then another device is going to be controlled.
The tilt is in left side or right side direction the related need will be announced. This device is
very helpful for paralysis and physically challenged persons. This device is portable, and this
system operation is entirely driven by wireless technology. User can wear it to any movable
part and can operate it by tilting the MEMS sensor.
CHAPTER 2
INTRODUCTION
Embedded system:
Gesture-based interfaces for users to interact with the computer commands and provide
an intuitive way to specify. Existing gesture recognition systems can be classified into three
types: motion-based, touch based, and vision-based systems. For motion-based systems, a user
must hold a mobile device or an external controller to make gestures. Touch-based systems can
accurately map the finger/pen positions and moving directions on the touch-screen to different
commands.
However, 3D gestures are not supported because all possible gestures are confined
within the 2D screen surface. Vision-based systems using camera and computer vision
techniques allow users to make intuitive gestures without touching the device. The main aim
of this project was to develop a computerized Indian Sign Language (ISL) recognition system.
The system allows a user to interact with mobile devices using intuitive gestures, without
touching the screen or wearing/holding any additional device. Evaluation results show that the
system is low-power, and able to recognize 3D gestures with over 98% precision in real time.
8051 MICROCONTROLLER:
The microcontroller design uses a much more limited set of single-byte and double-
byte instructions that are used to move data and code from internal memory to the ALU. The
microcontroller is concerned with getting data from and to its own pins; the architecture and
instruction set are optimized to handle data in bit and byte size.
FEATURES OF AT89C51:
Port 0 is an 8-bit open drain bi-directional 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
access to external program and data memory. In this mode, P 0 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 bi-directional I/O port with internal pull-ups. The port 1output buffers
can sink/source four TTL inputs. When 1s are written to port 1 pins, they are pulled high by
the internal pull-ups can be used as inputs. As inputs, Port 1 pins that are externally being
pulled low will source current (1) because of the internal pull-ups.
Port 2
Port 2 is an 8-bit bi-directional 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 can be used as inputs. As inputs, Port 2 pins that are externally being
pulled low will source current because of the internal pull-ups.
Port 2 emits the high-order address byte during fetches from external program memory
and during access to DPTR. In this application Port 2 uses strong internal pull-ups when
emitting 1s. During accesses to external data memory that use 8-bit data address (MOVX@R1),
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 bi-directional 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 can be used as inputs. As inputs, Port 3 pins that are externally being
pulled low will source current because of the internal pull-ups.
Port 3 also receives some control signals for Flash Programming and verification.
RST
Rest input A on this pin for two machine cycles while the oscillator is running resets
the device.
ALE/PROG:
Address Latch Enable is an output pulse for latching the low byte of the address during
access 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/16 the oscillator frequency
and may be used for external timing or clocking purpose. Note, however, that one ALE pulse
is skipped during each access to external Data memory.
PSEN
Program Store Enable is the read strobe to external program memory when the
AT89c51 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 when 12-volt programming is
selected.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating
circuit.
XTAL 2
OPERATING DESCRIPTION
The AT89C51 has separate address spaces for program and data memory. The program
and data memory can be up to 64K bytes long. The lower 4K program memory can reside on-
chip. The AT89C51 has 128 bytes of on-chip RAM.
The lower 128 bytes can be accessed either by direct addressing or by indirect
addressing. The lower 128 bytes of RAM can be divided into 3 segments as listed below
1. Register Banks 0-3:
Locations 00H through 1FH (32 bytes). The device after reset defaults to register bank
0. To use the other register banks, the user must select them in software. Each register
bank contains eight 1-byte registers R0-R7. Reset initializes the stack point to location
07H, and is incremented once to start from 08H, which is the first register of the second
register bank.
2. Bit Addressable Area:
16 bytes have been assigned for this segment 20H-2FH. Each one of the 128 bits of
this segment can be directly addressed (0-7FH). Each of the 16 bytes in this segment
can also be addressed as a byte.
3. Scratch Pad Area:
30H-7FH are available to the user as data RAM. However, if the data pointer has been
initialized to this area, enough bytes should be left aside to prevent SP data destruction.
The Special Function Registers (SFR's) are located in upper 128 Bytes direct addressing
area. The SFR Memory Map in shows that.
Not all of the addresses are occupied. Unoccupied addresses are not implemented on
the chip. Read accesses to these addresses in general return random data, and write accesses
have no effect. User software should not write 1s to these unimplemented locations, since they
may be used in future microcontrollers to invoke new features. In that case, the reset or inactive
values of the new bits will always be 0, and their active values will be 1.
Accumulator (ACC)
B Register (B)
The B register is used during multiply and divide operations. For other
instructions it can be treated as another scratch pad register.
The Stack Pointer Register is eight bits wide. It is incremented before data is stored
during PUSH and CALL executions. While the stack may reside anywhere in on chip RAM,
the Stack Pointer is initialized to 07H after a reset. This causes the stack to begin at location
08H.
The Data Pointer consists of a high byte (DPH) and a low byte (DPL). Its function is to
hold a 16-bit address. It may be manipulated as a 16-bit register or as two independent 8-bit
registers.
The Serial Data Buffer is actually two separate registers, a transmit buffer and a receive
buffer register. When data is moved to SBUF, it goes to the transmit buffer, where it is held for
serial transmission. (Moving a byte to SBUF initiates the transmission.) When data is moved
from SBUF, it comes from the receive buffer.
Timer Registers
Register pairs (TH0, TL0) and (TH1, TL1) are the 16-bit Counter registers for
Timer/Counters 0 and 1, respectively.
Control Registers
Special Function Registers IP, IE, TMOD, TCON, SCON, and PCON contain control
and status bits for the interrupt system, the Timer/Counters, and the serial port.
TIMER/COUNTERS
The IS89C51 has two 16-bit Timer/Counter registers: Timer 0 and Timer 1. All two
can be configured to operate either as Timers or event counters. As a Timer, the register is
incremented every machine cycle. Thus, the register counts machine cycles. Since a machine
cycle consists of 12 oscillator periods, the count rate is 1/12 of the oscillator frequency.
Since two machine cycles (24 oscillator periods) are required to recognize a 1-to-0
transition, the maximum count rate is 1/24 of the oscillator frequency. There are no restrictions
on the duty cycle of the external input signal, but it should be held for at least one full machine
cycle to ensure that a given level is sampled at least once before it changes.
In addition to the Timer or Counter functions, Timer 0 and Timer 1 have four operating
modes: 13-bit timer, 16-bit timer, 8-bit auto-reload, split timer.
TIMERS:
OSCILLATOR
FREQUENCY 12D
TMOD Register
TCON Register
Timer(T0) & timer(T1) Registers
The timer mode SFR is used to configure the mode of operation of each of the two
timers. Using this SFR your program may configure each timer to be a 16-bit timer, or
13 bit timer, 8-bit auto reload timer, or two separate timers. Additionally you may
configure the timers to only count when an external pin is activated or to count “events”
that are indicated on an external pin.
It can consider as two duplicate 4-bit registers, each of which controls the action of one
of the timers.
The timer control SFR is used to configure and modify the way in which the 8051’s
two timers operate. This SFR controls whether each of the two timers is running or
stopped and contains a flag to indicate that each timer has overflowed. Additionally,
some non-timer related bits are located in TCON SFR.
These bits are used to configure the way in which the external interrupt flags are
activated, which are set when an external interrupt occurs.
TH0 TL0
TH1 TL1
The Timer or Counter function is selected by control bits C/T in the Special Function
Register TMOD. These two Timer/Counters have four operating modes, which are selected by
bit pairs (M1, M0) in TMOD. Modes 0, 1, and 2 are the same for both Timer/Counters, but
Mode 3 is different.
Mode 0:
Both Timers in Mode 0 are 8-bit Counters with a divide-by-32 pre-scalar. Figure 8
shows the Mode 0 operation as it applies to Timer 1. In this mode, the Timer register is
configured as a 13-bit register. As the count rolls over from all 1s to all 0s, it sets the Timer
interrupt flag TF1. The counted input is enabled to the Timer when TR1 = 1 and either GATE
= 0 or INT1 = 1. Setting GATE = 1 allows the Timer to be controlled by external input INT1,
to facilitate pulse width measurements. TR1 is a control bit in the Special Function Register
TCON. Gate is in TMOD.
The 13-bit register consists of all eight bits of TH1 and the lower five bits of TL1. The
upper three bits of TL1 are indeterminate and should be ignored. Setting the run flag (TR1)
does not clear the registers.
Mode 0 operation is the same for Timer 0 as for Timer 1, except that TR0, TF0 and
INT0 replace the corresponding Timer 1 signals. There are two different GATE bits, one for
Timer 1 (TMOD.7) and one for Timer 0 (TMOD.3).
Mode 1
Mode 1 is the same as Mode 0, except that the Timer register is run with all 16 bits.
The clock is applied to the combined high and low timer registers (TL1/TH1). As clock pulses
are received, the timer counts up: 0000H, 0001H, 0002H, etc. An overflow occurs on the
FFFFH-to-0000H overflow flag. The timer continues to count. The overflow flag is the TF1
bit in TCON that is read or written by software
Mode 2
Mode 2 configures the Timer register as an 8-bit Counter (TL1) with automatic reload,
as shown in Figure 10. Overflow from TL1 not only sets TF1, but also reloads TL1 with the
contents of TH1, which is preset by software. The reload leaves the TH1 unchanged. Mode 2
operation is the same for Timer/Counter 0.
Mode 3
Timer 1 in Mode 3 simply holds its count. The effect is the same as setting TR1 = 0.
Timer 0 in Mode 3 establishes TL0and TH0 as two separate counters. The logic for Mode 3 on
Timer 0 is shown in Figure 11. TL0 uses the Timer 0 control bits: C/T, GATE, TR0, INT0, and
TF0. TH0 is locked into a timer function (counting machine cycles) and over the use of TR1
and TF1 from Timer 1. Thus, TH0 now controls the Timer 1 interrupt.
Mode 3 is for applications requiring an extra 8-bit timer or counter. With Timer 0 in
Mode 3, the AT89C51 can appear to have three Timer/Counters. When Timer 0 is in Mode 3,
Timer 1 can be turned on and off by switching it out of and into its own Mode 3. In this case,
Timer 1 can still be used by the serial port as a baud rate generator or in any application not
requiring an interrupt.
INTERRUPT SYSTEM
Baud Rate
The baud rate in Mode 0 is fixed as shown in the following equation. Mode 0 Baud
Rate = Oscillator Frequency /12 the baud rate in Mode 2 depends on the value of the SMOD
bit in Special Function Register PCON. If SMOD = 0 the baud rate is 1/64 of the oscillator
frequency. If SMOD = 1, the baud rate is 1/32 of the oscillator frequency.
In the IS89C51, the Timer 1 overflow rate determines the baud rates in Modes 1 and 3.
There are basically five interrupts available to the user. Reset is also considered as an
interrupt. There are two interrupts for timer, two interrupts for external hardware interrupt and
one interrupt for serial communication.
0000H Reset
The Timer 0 and Timer 1 Interrupts are generated by TF0and TF1, which are set by a
rollover in their respective Timer/Counter registers (except for Timer 0 in Mode 3).When a
timer interrupt is generated, the on-chip hardware clears the flag that is generated.
The Serial Port Interrupt is generated by the logical OR of RI and TI. The service
routine normally must determine whether RI or TI generated the interrupt, and the bit must be
cleared in software.
All of the bits that generate interrupts can be set or cleared by software, with the same
result as though they had been set or cleared by hardware. That is, interrupts can be generated
and pending interrupts can be cancelled in software.
Bit D7 of the IE register must be set to high to allow the rest of register to take effect.
If EA=1, interrupts are enabled and will be responded to if their corresponding bits in IE are
high. If EA=0, no interrupt will be responded to even if the associated bit in the IE register is
high.
There is one more SRF to assign priority to the interrupts which is named as interrupt
priority (IP). User has given the provision to assign priority to one interrupt. Writing one to
that particular bit in the IP register fulfils the task of assigning the priority.
D7 bit: Reserved.
D6 bit: Reserved.
Imagine a machine so small that it is imperceptible to the human eye. Imagine working
machines no bigger than a grain of pollen. Imagine thousands of these machines batch
fabricated on a single piece of silicon, for just a few pennies each. Imagine a world where
gravity and inertia are no longer important, but atomic forces and surface science dominate.
Imagine a silicon chip with thousands of microscopic mirrors working in unison, enabling the
all optical network and removing the bottlenecks from the global telecommunications
infrastructure. You are now entering the microdomain, a world occupied by an explosive
technology known as MEMS. A world of challenge and opportunity, where traditional
engineering concepts are turned upside down, and the realm of the "possible" is totally
redefined.
MEMS are quietly changing the way you live, in ways that you might never
imagine. The device that senses your car has been in an accident, and fires the airbag is a
MEMS device. Most new cars have over a dozen MEMS devices, making your car safer, more
energy efficient, and more environmentally friendly. MEMS are finding their way into a variety
of medical devices, and everyday consumer products.
MEMS are quietly changing the way you live, in ways that you might never
imagine. The device that senses your car has been in an accident, and fires the airbag is a
MEMS device. Most new cars have over a dozen MEMS devices, making your car safer, more
energy efficient, and more environmentally friendly. MEMS are finding their way into a variety
of medical devices, and everyday consumer products.
Manufacturability:
Another significant challenge is in the area of MEMS packaging. Many devices that
work properly at the wafer level can not be effectively packaged for use in real applications.
There has been significant strides in overcoming stiction issues, and achieving manufacturable
MEMS devices. The stiction problem has been addressed at both an engineering and a physics
level. Engineering wise, stiction can be minimized by careful consideration during
design. Devices can be designed to minimize stiction by creating devices that a stiff, and have
a minimum area of potential contact. Stiff devices have a larger restoring force to battle against
stiction, and designing devices with dimples to limit contact area reduces the stiction force. On
the Physics front treating the surfaces with Self Assembles Monloyars (SAMs) can lower the
surface energy of the devices and reduce the stiction forces. Combinations of the Engineering
and Physics approaches has led devices with manufacturability approaching that of Integrated
Circuits.
The chart below shows the product yield during the development of a complex MEMS-
based mirror chip. It can be seen that sustained yields in the high 90% were obtained. This
chart represents over 25,000 devices manufactured. For this product, the stiction problem was
overcome through the use of sophisticated design techniques, and development of a proprietary
back-end-of-line release capability. This combination of design and processing results in
stiction free devices suitable for use in real products.
Reliability
The types of MEMS devices that are the most reliable, and the easiest to qualify are devices
that can be packaged in such a way as to protect them from the environment. An excellent
example of this is the case of optical MEMS devices. These devices can be packaged in a
traditional ceramic package, with a glass lid. The glass lid, hermetically attached to the ceramic
package creates a "safe" environment for the sensitive MEMS chip, while still allowing photons
to interact with the MEMS device.
ADXL103/203
GENERAL DESCRIPTION
The ADXL103/ADXL203 are high precision, low power, complete single- and dual-axis
accelerometers with signal conditioned voltage outputs, all on a single, monolithic IC. The
ADXL103/ADXL203 measure acceleration with a full-scale range of ±1.7 g. The
ADXL103/ADXL203 can measure both dynamic acceleration (for example, vibration) and
static acceleration (for example, gravity).
THEORY OF OPERATION
The sensor is a surface-micromachined polysilicon structure built on top of the silicon wafer.
Polysilicon springs suspend the structure over the surface of the wafer and provide a resistance
against acceleration forces. Deflection of the structure is measured using a differential capacitor
that consists of independent fixed plates and plates attached to the moving mass. The fixed
plates are driven by 180° out-of-phase square waves. Acceleration deflects the beam and
unbalances the differential capacitor, resulting in an output square wave whose amplitude is
proportional to acceleration. Phase-sensitive demodulation techniques are then used to rectify
the signal and determine the direction of the acceleration. The output of the demodulator is
amplified and brought off-chip through a 32 kΩ resistor. At this point, the user can set the
signal bandwidth of the device by adding a capacitor. This filtering improves measurement
resolution and helps prevent aliasing.
BLOCK DIAGRAM
Objectives:
Technology is the word coined for the practical application of scientific knowledge in
the industry. The advancement in technology cannot be justified unless it is used for leveraging
the user’s purpose. Technology, is today, imbibed for accomplishment of several tasks of
varied complexity, in almost all walks of life. The society as a whole is exquisitely dependent
on science and technology. Technology has played a very significant role in improving the
quality of life. One way through which this is done is by automating several tasks using
complex logic to simplify the work.
The main aim of this project is video coverage at required places with the help of digital
camera and high power LED. Robot is controlled by depending upon the tilt directions and its
wireless communication. The video will be transmitted to the receiver using AV transmitter.
At receiver end, these can be seen on TV. It is a very low cost survey line system used to
monitor a larger area. We are using RF communication to send commands to robot. RF
Communication ranges in between 30 KHz to 300 GHz. RF communication works by creating
electromagnetic waves at a source and being able to pick up those electromagnetic waves at a
particular destination. These electromagnetic waves travel through the air at near the speed of
light. The wavelength of an electromagnetic signal is inversely proportional to the frequency;
the higher the frequency, the shorter the wavelength.
MEMS is a Micro Electro Mechanical Sensor which is a highly sensitive sensor and
capable of detecting the tilt. The project consists of two micro controller based motherboards.
One motherboard consists of a controller interfaced with MEMS Accelerometer sensor
technology to control the direction of the robot, a RF transmitter to send commands to robot
and it will provide a channel for wireless communication, a LED indicator. This entire board
acts as a remote to control the movement of the robot as well as receive the information from
the robot. The other board is present with the Robot itself. It is interfaced with some DC motors
for moving the robot, a RF receiver for receiving the instructions from the transmitter.
The innovative feature in the system is it automatically detects the light intensity and
switches ON the light source if intensity of light is low which helps in better vision of
surroundings. The Microcontroller is programmed using Embedded C language. This project
finds its major applications while we are monitoring larger areas like political canvassing,
cricket stadiums, international conferences, worship places, banking etc. This project assures
us with more reliable and highly secured system. The microcontroller will act as the mediator
between the input module and output module.
CHAPTER 4
COMPONENTS
The major components which are required for this project are:
8051 microcontroller
Power supply
MEMS Accelerometer
ADC
TRIAC
TRIAC Driver
Relay
Relay Driver
Crystal Oscillator
Encoder
Voice Module
LED
RF Transmitter
1. AT89S52 MICROCONTROLLER
A microcontroller is a general-purpose device, but that is meant to read data, perform limited
calculations on that data and control its environment based on those calculations. The prime
use of a microcontroller is to control the operation of a machine using a fixed program that is
stored in ROM and that does not change over the lifetime of the system.
The microcontroller design uses a much more limited set of single- and double-byte
instructions that are used to move data and code from internal memory to the ALU. The
microcontroller is concerned with getting data from and to its own pins; the architecture and
instruction set are optimized to handle data in bit and byte size.
Features:
Transformer:
A transformer is a device that transfers electrical energy from one circuit to another
through inductively coupled conductors—the transformer's coils. A varying current in the first
or primary winding creates a varying magnetic flux in the transformer's core, and thus a varying
magnetic field through the secondary winding. This varying magnetic field induces a varying
electromotive force (EMF) or "voltage" in the secondary winding. This effect is called mutual
induction.
(or)
Transformer is a device that converts the one form energy to another form of energy
like a transducer.
Figure: Transformer
Basic Principle:
A transformer makes use of Faraday's law and the ferromagnetic properties of an iron
core to efficiently raise or lower AC voltages. It of course cannot increase power so that if the
voltage is raised, the current is proportionally lowered and vice versa.
Figure: Basic Principle
Transformer Working:
A transformer consists of two coils (often called 'windings') linked by an iron core, as
shown in figure below. There is no electrical connection between the coils, instead they are
linked by a magnetic field created in the core.
Figure: Basic Transformer
Transformers are used to convert electricity from one voltage to another with minimal
loss of power. They only work with AC (alternating current) because they require a changing
magnetic field to be created in their core. Transformers can increase voltage (step-up) as well
as reduce voltage (step-down).
Alternating current flowing in the primary (input) coil creates a continually changing
magnetic field in the iron core. This field also passes through the secondary (output) coil and
the changing strength of the magnetic field induces an alternating voltage in the secondary coil.
If the secondary coil is connected to a load the induced voltage will make an induced current
flow. The correct term for the induced voltage is 'induced electromotive force' which is usually
abbreviated to induced e.m.f.
The iron core is laminated to prevent 'eddy currents' flowing in the core. These
are currents produced by the alternating magnetic field inducing a small voltage in the core,
just like that induced in the secondary coil. Eddy currents waste power by needlessly heating
up the core but they are reduced to a negligible amount by laminating the iron because this
increases the electrical resistance of the core without affecting its magnetic properties.
Transformers have two great advantages over other methods of changing voltage:
1. They provide total electrical isolation between the input and output, so they can be
safely used to reduce the high voltage of the mains supply.
2. Almost no power is wasted in a transformer. They have a high efficiency (power out /
power in) of 95% or more.
Classification of Transformer:
Step-Up Transformer
Step-Down Transformer
Step-Down Transformer:
Step down transformers are designed to reduce electrical voltage. Their primary voltage
is greater than their secondary voltage. This kind of transformer "steps down" the voltage
applied to it. For instance, a step down transformer is needed to use a 110v product in a country
with a 220v supply.
Step down transformers convert electrical voltage from one level or phase configuration
usually down to a lower level. They can include features for electrical isolation, power
distribution, and control and instrumentation applications. Step down transformers typically
rely on the principle of magnetic induction between coils to convert voltage and/or current
levels.
Step down transformers are made from two or more coils of insulated wire wound
around a core made of iron. When voltage is applied to one coil (frequently called the primary
or input) it magnetizes the iron core, which induces a voltage in the other coil, (frequently
called the secondary or output). The turn’s ratio of the two sets of windings determines the
amount of voltage transformation.
Figure: Step-Down Transformer
An example of this would be: 100 turns on the primary and 50 turns on the secondary,
a ratio of 2 to 1.
Step down transformers can be considered nothing more than a voltage ratio device.
With step down transformers the voltage ratio between primary and secondary will
mirror the "turn’s ratio" (except for single phase smaller than 1 kva which have compensated
secondary). A practical application of this 2 to 1 turn’s ratio would be a 480 to 240 voltage step
down. Note that if the input were 440 volts then the output would be 220 volts. The ratio
between input and output voltage will stay constant. Transformers should not be operated at
voltages higher than the nameplate rating but may be operated at lower voltages than rated.
Single-phase step-down transformers 1 kva and larger may also be reverse connected
to step-down or step-up voltages. (Note: single phase step up or step down transformers sized
less than 1 KVA should not be reverse connected because the secondary windings have
additional turns to overcome a voltage drop when the load is applied. If reverse connected, the
output voltage will be less than desired.)
Step-Up Transformer:
A step-up transformer has more turns of wire on the secondary coil, which makes a
larger induced voltage in the secondary coil. It is called a step-up transformer because the
voltage output is larger than the voltage input.
Step-up transformer 110v 220v design is one whose secondary voltage is greater than
its primary voltage. This kind of transformer "steps up" the voltage applied to it. For instance,
a step up transformer is needed to use a 220v product in a country with a 110v supply.
A step up transformer 110v 220v converts alternating current (AC) from one voltage to
another voltage. It has no moving parts and works on a magnetic induction principle; it can be
designed to "step-up" or "step-down" voltage. So, a step-up transformer increases the voltage
and a step down transformer decreases the voltage.
The primary components for voltage transformation are the step up transformer core
and coil. The insulation is placed between the turns of wire to prevent shorting to one another
or to ground.
This is typically comprised of Mylar, Nomex, Kraft paper, varnish, or other materials.
As a transformer has no moving parts, it will typically have a life expectancy between 20 and
25 years.
Applications
...where Vp is the primary (input) voltage, Vs is the secondary (output) voltage, Np is the number
of turns on the primary coil, and Ns is the number of turns on the secondary coil.
Diodes:
Diodes allow electricity to flow in only one direction. The arrow of the circuit symbol shows
the direction in which the current can flow. Diodes are the electrical version of a valve and
early diodes were actually called valves.
A diode is a device which only allows current to flow through it in one direction. In
this direction, the diode is said to be 'forward-biased' and the only effect on the signal is that
there will be a voltage loss of around 0.7V. In the opposite direction, the diode is said to be
'reverse-biased' and no current will flow through it.
Rectifier
The half-wave rectifier is the simplest type of rectifier since it only uses one diode, as
shown in figure.
Figure: Half Wave Rectifier
Figure 2 shows the AC input waveform to this circuit and the resulting output. As you
can see, when the AC input is positive, the diode is forward-biased and lets the current
through. When the AC input is negative, the diode is reverse-biased and the diode does not let
any current through, meaning the output is 0V. Because there is a 0.7V voltage loss across the
diode, the peak output voltage will be 0.7V less than Vs.
While the output of the half-wave rectifier is DC (it is all positive), it would not be
suitable as a power supply for a circuit. Firstly, the output voltage continually varies between
0V and Vs-0.7V, and secondly, for half the time there is no output at all.
The Full-wave Rectifier
The circuit in figure 3 addresses the second of these problems since at no time is the
output voltage 0V. This time four diodes are arranged so that both the positive and negative
parts of the AC waveform are converted to DC. The resulting waveform is shown in figure 4.
While the full-wave rectifier is an improvement on the half-wave rectifier, its output
still isn't suitable as a power supply for most circuits since the output voltage still varies
between 0V and Vs-1.4V. So, if you put 12V AC in, you will 10.6V DC out.
Capacitor Filter
The capacitor-input filter, also called "Pi" filter due to its shape that looks like the
Greek letter pi, is a type of electronic filter. Filter circuits are used to remove unwanted or
undesired frequencies from a signal.
A typical capacitor input filter consists of a filter capacitor C1, connected across the
rectifier output, an inductor L, in series and another filter capacitor connected across the load.
1. The capacitor C1 offers low reactance to the AC component of the rectifier output while
it offers infinite reactance to the DC component. As a result the capacitor shunts an
appreciable amount of the AC component while the DC component continues its
journey to the inductor L
2. The inductor L offers high reactance to the AC component but it offers almost zero
reactance to the DC component. As a result the DC component flows through the
inductor while the AC component is blocked.
3. The capacitor C2 bypasses the AC component which the inductor had failed to block.
As a result only the DC component appears across the load RL.
Figure: Centered Tapped Full-Wave Rectifier with a Capacitor Filter
Voltage Regulator:
78xx:’78’ indicate the positive series and ‘xx’indicates the voltage rating. Suppose 7805
produces the maximum 5V.’05’indicates the regulator output is 5V.
79xx:’78’ indicate the negative series and ‘xx’indicates the voltage rating. Suppose 7905
produces the maximum -5V.’05’indicates the regulator output is -5V.
Pin3: It is used for output pin. Through this pin we get the output.
Figure: Regulator
3. MEMS ACCELEROMETER:
Working:
One of the most commonly used MEMS accelerometer is the capacitive type. The
capacitive MEMS accelerometer is famous for its high sensitivity and its accuracy at high
temperatures. The device does not change values depending on the base materials used and
depends only on the capacitive value that occurs due to the change in distance between the
plates.
If two plates are kept parallel to each other and are separated by a distance ‘d’, and if ‘E’ is the
permittivity of the separating material, then capacitance produced can be written as
A typical MEMS accelerometer is shown in the figure below. It can also be called a
simple one-axis accelerometer. If more sets of capacitors are kept in 90 degrees to each other
you can design 2 or 3-axis accelerometer. A simple MEMS transducer mainly consists of a
movable microstructure or a proof mass that is connected to a mechanical suspension system
and thus on to a reference frame.
The movable plates and the fixed outer plates act as the capacitor plates. When
acceleration is applied, the proof mass moves accordingly. This produces a capacitance
between the movable and the fixed outer plates.
When acceleration is applied, the distance between the two plates displace as X1 and
X2, and they turn out to be a function of the capacitance produced.
From the image above it is clear that all sensors have multiple capacitor sets. All upper
capacitors are wired parallel to produce an overall capacitance C1 and the lower ones produce
an overall capacitance of C2.
If Vx is the output voltage of the proof mass, and V0 is the output voltage produced
between the plates, then
(Vx +V0) C1 + (Vx -V0) C2 = 0
We can also write
We must select the device in reference to its noise characteristics. If the acceleration value at
low gravity condition is to be found out, the noise characteristics could easily affect its
accuracy. An MEMS accelerometer is said to have three noise producing parameters – from
the signal conditioning circuit, from the vibrations produced by the springs, and from the output
measuring system.
1. MEMS sensors are being used in latest mobile phones and gaming joysticks as step
counters, user interface control, and also for switching between different modes.
2. Used in mobile cameras as a tilt sensor so as to tag the orientation of photos taken.
3. To provide stability of images in camcorders and also to rotate the image to and fro
when you turn the mobile.
4. A 3D accelerometer is used in Nokia 5500 so as to provide easier tap and change feature
by which you can change mp3’s by tapping on the phone when it is lying inside the pocket.
5. Used to protect hard disk drives in laptops from getting damaged when the PC falls to
the ground. The device senses the free fall and automatically switches off the hard disk.
6. Used in car crash airbag sensors, where it senses the sudden negative acceleration and
determines the correct time to open the airbag.
7. Used in real-time applications like military monitoring, missile launching, projectiles,
and so on.
4. ADC:
(or)
Analog to digital (A/D, ADC) converters are electrical circuit devices that convert continuous
signals, such as voltages or currents, from the analog domain to the digital domain where the
signals are represented by numbers
Most processing equipment today are digital in nature, and they work with signals
which are binary valued. In a digital or binary representation, a signal is represented by a word,
which is composed of a finite number of bits. The processing of signals is preferably carried
out in the digital domain because digital processing is fast, accurate and reliable. Analog to
digital converters are widely used for converting analog signals to corresponding digital signals
for many electronic circuits. Analog to digital converters allow the use of sophisticated digital
signal processing systems to process analog signals, which are common in the real world. Many
modern electronic systems require conversion of signals from analog to digital or from digital
to analog form. Circuits for performing these functions are now required in numerous common
consumer devices such as digital cameras, cellular telephones, wireless data network
equipment, audio devices such as MP3 players, and video equipment such as digital video disk
(DVD) players, high definition digital television (HDTV), and numerous other products.
Analog to digital converters (ADC's) form an essential link in the signal processing pathway
at the interface between the analog and digital domains. Advances in ADC technology have
increased the speed, lowered the cost, and reduced the power requirements of analog to digital
converters, and resulted in a proliferation of ADC applications.
Conversion involves quantizing and encoding. Quantizing means partitioning the
analog signal range into a number of discrete quanta and determining to which quantum the
input signal belongs. Encoding means assigning a unique digital code to each quantum and
determining the code that corresponds to the input signal. The most common system is binary,
in which there are 2n quanta (where n is some whole number), numbered consecutively; the
code is a set of n physical two-valued levels or bits (1 or 0) corresponding to the binary number
associated with the signal quantum.
The illustration shows a typical three-bit binary representation of a range of input signals,
partitioned into eight quanta. For example, a signal in the vicinity of 3/8; full scale (between
5/16 and 7/16) will be coded 011 (binary 3).
Parallel converter
Successive approximation ADC
Voltage-to-Frequency ADC
Integrating ADC
Applications of ADC:
Digital camera or scanner uses A/D converters to transform the variable charges in CCD
and CMOS chips into the binary data that represent pixels.
Cell phone and digital desk phone has an ADC converter that converts the pressure of
sound waves into PCM code Etc.
Control logic. The 8-bit A/D converter uses successive approximation as the conversion
technique. The converter features a high impedance chopper stabilized comparator, a
256R voltage divider with analog switch tree and a successive approximation register. The 8-
channel multiplexer can directly access any of 8-single-ended analog signals.
The device eliminates the need for external zero and full-scale adjustments. Easy interfacing
to microprocessors is provided by the latched and decoded multiplexer address inputs and
latched TTL TRI-STATE outputs.
Features
Key Specifications
The ADC0808 shown in figure can be functionally divided into 2 basic sub circuits.
These two sub circuits are an analog multiplexer and an A/D converter. The multiplexer uses
8 standard CMOS analog switches to provide to up to 8 analog inputs. The switches are
selectively turned on, depending on the data latched into a 3-bit multiplexer address register.
The second functional block, the successive approximation A/D converter, transforms
the analog output of the multiplexer to an 8-bit digital word. The output of the multiplexer goes
to one of two comparator inputs. The other input is derived from a 256R resistor ladder, which
is tapped by a MOSFET transistor switch tree. The converter control logic controls the switch
tree, funneling a particular tap voltage to comparator. Based on the result of this comparison,
the control logic and the successive approximation register (SAR) will decide whether the next
tap to be selected should be higher or lower than the present tap on the resistor ladder. This
algorithm is executed 8 times per conversion, once every 8-clock period, yielding a total
conversion time of clock periods.
When the conversion cycle is complete the resulting data is loaded into the TRI-STATE
output latch. The data in the output latch can be then be read by the host system any time before
the end of the next conversion. The TRI-STATE capability of the latch allows easy interfaces
simple. The controlling device first selects the desired input channel. To do this, a 3-bit channel
address is placed on the A, B, C in and out pins; and the ALE input is pulsed positively,
clocking the address into the multiplexer address register. To begin the conversion, the START
pin is pulsed. On the rising edge of this pulse the internal registers are cleared and on the falling
As mentioned earlier, there are 8 clock periods per approximation. Even though there
is no conversion in progress the ADC0808 is still internally cycling through these 8 clock
periods. A start pulse can occur any time during this cycle but the conversion will not actually
begin until the converter internally cycles to the beginning of the next 8 clock period sequence.
As long as the start pin is held high no conversion begins, but when the start pin is taken low
the conversion will start within 8 clock periods. The EOC output is triggered on the rising edge
of the start pulse. It, too, is controlled by the 8 clock period cycle, so it will go low within 8
clock periods of the rising edge of the start pulse. One can see that it is entirely possible for
EOC to go low before the conversion starts internally, but this is not important, since the
positive transition of EOC, which occurs at the end of a conversion, is what the control logic
is looking for.
Once EOC does go high this signals the interface logic that the data resulting from the
conversion is ready to be read. The output enable(OE) is then raised high. This enables the
TRI-STATE outputs, allowing the data to be read. Figure shows the timing diagram.
CONTROL
SAR
8x1 TRI-
analog STATE
MUX Output
Latch
CONNECTION DIAGRAM:
SC
IN0 ALE
IN1
EOC
IN2 CHA
IN6
IN7
Data(D0-D7)
SC (Chip Selection): By using this selection Bit you can select the Chip. After selecting this bit the
chip is ready to do operation. By using HIGH(1) you can select the this pin as a active high.
ALE is to enable address latch of ADC, so that the selected channel is activated. In normal
operation, ALE is emitted at a constant rate of 1/6 the oscillator frequency, and can be used for
external timing or clocking. Note that one ALE pulse is skipped during each access to external data
memory. This pin is also the Program Pulse input (PROG) during Flash programming.
EOC (End of Conversion): After End of ADC Conversion EOC bit is set to high.
CHANNEL SELECTION:
FLOW CHART:
START
CONFIGURE PINS
IS
COPY THE ADC PORT
EOC=1
DATA INTO MEMORY
STOP
5. TRIAC:
TRIACS are widely used in AC power control applications. They are able to switch
high voltages and high levels of current, and over both parts of an AC waveform. This makes
triac circuits ideal for use in a variety of applications where power switching is needed.
One particular use of triac circuits is in light dimmers for domestic lighting, and they
are also used in many other power control situations including motor control.
Triac basics
The triac is a development of the thyristor. While the thyristor can only control current
over one half of the cycle, the triac controls it over two halves of an AC waveform.
As such the triac can be considered as a pair of parallel but opposite thyristors with the
two gates connected together and the anode of one device connected to the cathode of the other,
etc..
The fact that the triac switching action occurs on both halves of an AC waveform means
that for AC power applications, the complete cycle can be used. For basic thyristor circuits,
only half the waveform is used and this means that basic circuits using thyristors will not utilise
both halves of the cycle. Two devices are required to utilise both halves. However the triac
only requires one device to control both halves of the AC waveform.
Triac symbol
The basic triac symbol used on circuit diagram indicates its bi-directional properties.
The triac symbol can be seen to be a couple of thyristor symbols in opposite senses merged
together.
Like a thyristor, a triac has three terminals. However, the names of these are a little
more difficult to assign, because the main current carrying terminals are connected to what is
effectively a cathode of one thyristor, and the anode of another within the overall device. There
is a gate which acts as a trigger to turn the device on. In addition to this the other terminals are
both called Anodes, or Main Terminals These are usually designated Anode 1 and Anode 2 or
Main Terminal 1 and Main Terminal 2 (MT1 and MT2). When using triacs it is both MT1 and
MT2 have very similar properties.
Before looking at how a triac works, it helps to have an understanding of how a thyristor
works. In this way the basic concepts can be grasped for the simpler device and then applied
to a triac which is more complicated. The operation of the thyristor is covered in the article in
this section and accessible through the "Related Articles" box on the left of the page and below
the main menu.
For the operation of the triac, it can be imagined from the circuit symbol that the triac
consists of two thyristors in parallel but around different ways. The operation of the triac can
be looked on in this fashion, although the actual operation at the semiconductor level is rather
more complicated.
When the voltage on the MT1 is positive with regard to MT2 and a positive gate voltage
is applied, one of the thyristors conducts. When the voltage is reversed and a negative voltage
is applied to the gate, the other thyristor conducts. This is provided that there is sufficient
voltage across the device to enable a minimum holding current to flow.
Triac applications
Triacs are used in many applications. They are often used in low to medium power AC
switching requirements. Where large levels of power need to be switched, two thyristors / SCRs
tend to be used as they can be controlled more easily.
General AC control
There are naturally many other triac applications, but these are some of the most common.
Using triacs
There are a number of points to note when using triacs. Although these devices operate very
well, to get the best performance out of them it is necessary to understand a few hints on tips
on using triacs.
It is found that because of their internal construction and the slight differences between
the two halves, triacs do not fire symmetrically. This results in harmonics being generated: the
less symmetrical the triac fires, the greater the level of harmonics that are produced. It is not
normally desirable to have high levels of harmonics in a power system and as a result triacs are
not favoured for high power systems. Instead for these systems two thyristors may be used as
it is easier to control their firing.
6. TRIAC DRIVER
Features:
Applications:
Motor Control
Motor Starters
Dimmer Circuits (random phase devices)
Solenoid/Valve controls
Lighting controls
Static power switches
Temperature controls
Solid State Relays
7. RELAY
A relay is an electrically operated switch. These are remote control electrical switches that are
controlled by another switch, such as a horn switch or a computer as in a power train control
module, devices in industries, home based applications. Relays allow a small current pin, 4-
pin, 5-pin, and 6-pin, single switch or dual switches. Relays are used throughout the
automobile. Relays which come in assorted sizes, ratings, and applications, are used as remote
control switches. A typical vehicle can have 20 relays or more.
BASICS ON RELAY HANDLING
To maintain initial performance, care should be taken to avoid dropping or hitting the
relay.
Under normal use, the relay is designed so that the case will not detach. To maintain
initial performance, the case should not be removed. Relay characteristics cannot be
guaranteed if the case is removed.
Use of the relay in an atmosphere at standard temperature and humidity with minimal
amounts of dust, SO 2, H 2 S, or organic gases is recommended.
Please avoid the use of silicon-based resins near the relay, because doing so may result
in contact failure. (This applies to plastic sealed type relays, too.)
Care should be taken to observe correct coil polarity (+, –) for polarized relays.
Proper usage requires that the rated voltage be impressed on the coil. Use rectangular
waves for DC coils and sine waves for AC coils.
Be sure the coil impressed voltage does not continuously exceed the maximum
allowable voltage.
Absolutely avoid using switching voltages and currents that exceed the designated
values.
The rated switching power and life are given only as guides. The physical phenomena
at the contacts and contact life greatly vary depending on the type of load and the
operating conditions. Therefore, be sure to carefully check the
type of load and operating conditions before use.
Do not exceed the usable ambient temperature values listed in the catalog.
Use the flux-resistant type or sealed type if automatic soldering is to be used.
Use alcohol based cleaning solvents when cleaning is to be performed using a
sealed type relay.
Avoid ultrasonic cleaning of all types of relays.
Avoid bending terminals, because it may cause malfunction.
As a guide, use a Faston mounting pressure of 40 to 70N {4 to 7kgf}for relays
with tab terminals.
A relay is used to isolate one electrical circuit from another. It allows a low current control
circuit to make or break an electrically isolated high current circuit path. The basic relay
consists of a coil and a set of contacts. The most common relay coil is a length of magnet wire
wrapped around a metal core. When voltage is applied to the coil, current passes through the
wire and creates a magnetic field. This magnetic field pulls the contacts together and holds
them there until the current flow in the coil has stopped. The diagram below shows the parts of
a simple relay.
Figure: Relay
Operation:
When a current flows through the coil, the resulting magnetic field attracts an armature that is
mechanically linked to a moving contact. The movement either makes or breaks a connection
with a fixed contact. When the current is switched off, the armature is usually returned by a
spring to its resting position shown in figure 6.6(b). Latching relays exist that require operation
of a second coil to reset the contact position.
By analogy with the functions of the original electromagnetic device, a solid-state relay
operates a thyristor or other solid-state switching device with a transformer or light-emitting
diode to trigger it.
Since relays are switches the terminology applied to switches is also applied to relays. A relay
will switch one or more poles, each of whose contacts can be thrown by energizing the coil in
one of three ways:
Normally-open (NO) contacts connect the circuit when the relay is activated; the circuit
is disconnected when the relay is inactive. It is also called a Form A contact or "make"
contact.
Normally-closed (NC) contacts disconnect the circuit when the relay is activated; the
circuit is connected when the relay is inactive. It is also called a Form B contact or
"break" contact.
Change-over (CO), or double-throw (DT), contacts control two circuits: one normally-
open contact and one normally-closed contact with a common terminal. It is also called
a Form C contact or "transfer" contact ("break before make"). If this type of contact
utilizes a "make before break" functionality, then it is called a Form D contact.
SPST
SPST relay stands for Single Pole Single Throw relay. Current will only flow through the
contacts when the relay coil is energized.
SPDT Relay stands for Single Pole Double Throw relay. Current will flow between the
movable contact and one fixed contact when the coil is De-energized and between the movable
contact and the alternate fixed contact when the relay coil is energized. The most commonly
used relay in car audio, the Bosch relay, is a SPDT relay.
DPST Relay
DPST relay stands for Double Pole Single Throw relay. When the relay coil is energized, two
separate and electrically isolated sets of contacts are pulled down to make contact with their
stationary counterparts. There is no complete circuit path when the relay is De-energized.
DPDT Relay
DPDT relay stands for Double Pole Double Throw relay. It operates like the SPDT relay but
has twice as many contacts. There are two completely isolated sets of contacts.
Figure: DPDT Relay
This is a 4 Pole Double Throw relay. It operates like the SPDT relay but it has 4 sets of isolated
contacts.
Types of relay:
1. Latching Relay
2. Reed Relay
3. Mercury Wetted Relay
4. Machine Tool Relay
5. Solid State Relay (SSR)
Latching relay
Latching relay, dust cover removed, showing pawl and ratchet mechanism. The ratchet operates
a cam, which raises and lowers the moving contact arm, seen edge-on just below it. The moving
and fixed contacts are visible at the left side of the image.
A latching relay has two relaxed states (bi-stable). These are also called "impulse", "keep", or
"stay" relays. When the current is switched off, the relay remains in its last state. This is
achieved with a solenoid operating a ratchet and cam mechanism, or by having two opposing
coils with an over-center spring or permanent magnet to hold the armature and contacts in
position while the coil is relaxed, or with a remanent core. In the ratchet and cam example, the
first pulse to the coil turns the relay on and the second pulse turns it off. In the two coil example,
a pulse to one coil turns the relay on and a pulse to the opposite coil turns the relay off. This
type of relay has the advantage that it consumes power only for an instant, while it is being
switched, and it retains its last setting across a power outage. A remanent core latching relay
requires a current pulse of opposite polarity to make it change state.
A reed relay has a set of contacts inside a vacuum or inert gas filled glass tube, which protects
the contacts against atmospheric corrosion. The contacts are closed by a magnetic field
generated when current passes through a coil around the glass tube. Reed relays are capable of
faster switching speeds than larger types of relays, but have low switch current and voltage
ratings.
Mercury-wetted relay
A mercury-wetted reed relay is a form of reed relay in which the contacts are wetted with
mercury. Such relays are used to switch low-voltage signals (one volt or less) because of their
low contact resistance, or for high-speed counting and timing applications where the mercury
eliminates contact bounce. Mercury wetted relays are position-sensitive and must be mounted
vertically to work properly. Because of the toxicity and expense of liquid mercury, these relays
are rarely specified for new equipment. See also mercury switch.
A machine tool relay is a type standardized for industrial control of machine tools, transfer
machines, and other sequential control. They are characterized by a large number of contacts
(sometimes extendable in the field) which are easily converted from normally-open to
normally-closed status, easily replaceable coils, and a form factor that allows compactly
installing many relays in a control panel. Although such relays once were the backbone of
automation in such industries as automobile assembly, the programmable logic controller
(PLC) mostly displaced the machine tool relay from sequential control applications.
Solid-state relay
A solid state relay (SSR) is a solid state electronic component that provides a similar function
to an electromechanical relay but does not have any moving components, increasing long-term
reliability. With early SSR's, the tradeoff came from the fact that every transistor has a small
voltage drop across it. This voltage drop limited the amount of current a given SSR could
handle. As transistors improved, higher current SSR's, able to handle 100 to 1,200 Amperes,
have become commercially available. Compared to electromagnetic relays, they may be falsely
triggered by transients.
Specification
Number and type of contacts – normally open, normally closed, (double-throw)
Contact sequence – "Make before Break" or "Break before Make". For example, the
old style telephone exchanges required Make-before-break so that the connection didn't
get dropped while dialing the number.
Rating of contacts – small relays switch a few amperes, large contactors are rated for
up to 3000 amperes, alternating or direct current
Voltage rating of contacts – typical control relays rated 300 VAC or 600 VAC,
automotive types to 50 VDC, special high-voltage relays to about 15 000 V
Coil voltage – machine-tool relays usually 24 VAC, 120 or 250 VAC, relays for
switchgear may have 125 V or 250 VDC coils, "sensitive" relays operate on a few milli-
amperes
Applications:
8. RELAY DRIVER:
The ULN2003A is also similar to the ULN2001A (4 inputs) and the ULN2801A,
ULN2802A, ULN2803A, ULN2804A and ULN2805A, only differing in logic input levels
(TTL, CMOS, PMOS) and number of in/outputs (4/7/8)
Darlington transistor:
A Darlington transistor (also known as Darlington pair) achieves very high current
amplification by connecting two bipolar transistors in direct DC coupling so the current
amplified by the first transistor is amplified further by the second one. The resultant current
gain is the product of those of the two component transistors:
The seven Darlington pairs in ULN2003 can operate independently except the common
cathode diodes that connect to their respective collectors.
Features:
The ULN2003 is known for its high-current, high-voltage capacity. The drivers can be
paralleled for even higher current output. Even further, stacking one chip on top of another,
both electrically and physically, has been done. Generally it can also be used for interfacing
with a stepper motor, where the motor requires high ratings which cannot be provided by other
interfacing devices.
Main specifications:
9. CRYSTAL OSCILLATOR:
There are different types of oscillator electronic circuits such as Linear oscillators –
Hartley oscillator, Phase-shift oscillator, Armstrong oscillator, Clapp oscillator, Colpitts
oscillator, and so on, Relaxation oscillators – Royer oscillator, Ring oscillator, Multivibrator,
and so on, and Voltage Controlled Oscillator (VCO). In this article, let us discuss in detail about
Crystal oscillator like what is crystal oscillator, crystal oscillator circuit, working, and use of
crystal oscillator in electronic circuits
The above diagram represents the electronic symbol for a piezoelectric crystal resonator which
consists of two metalized electrodes and quartz crystal.
Equivalent Circuit Diagram of Quartz Crystal
The above figure shows the equivalent circuit diagram of quartz crystal in an electronic
oscillator that consists of resistor, inductor, and capacitors which are connected as shown in
the figure.
The atoms, molecules, ions are packed in an order in three spatial dimensions with
repeating pattern to form a solid that can be called as a crystal. The crystal can be made by
almost any object that is made of elastic material by using appropriate electrical transducers.
As every object consists of natural resonant frequency of vibration, steel consists of high speed
of sound and is also very elastic.
Thus, steel is frequently used instead of quartz in mechanical filters. This resonant
frequency depends on different parameters such as size, elasticity, speed of sound, and shape
of the crystal. In general, the shape of high frequency crystals is simple rectangular plate and
the shape of low frequency crystals is tuning fork shape as shown in the figure below.
These quartz crystal oscillators are highly stable, consists of good quality factor, they
are small in size, and are very economical. Hence, quartz crystal oscillator circuits are superior
compared to other resonators such as LC circuits, turning forks, and so on. Generally, 8MHz
crystal oscillator is used in microprocessors and microcontrollers.
The equivalent electrical circuit also represents the crystal action of the crystal. The
basic components used in the circuit, inductance L1 represent crystal mass, capacitance C1
represents compliance, resistance R1 represents the crystal’s internal structure friction, and C0
is used to represent the capacitance that is formed because of crystal’s mechanical moulding.
The quartz crystal oscillator circuit diagram consists of series resonance and parallel
resonance, i.e., two resonant frequencies. If the reactance produced by capacitance C1 is equal
and opposite to the reactance produced by inductance L1, then the series resonance occurs. The
series and parallel resonant frequencies are represented by fs and fp respectively, and the values
of fs and fp can be determined by using the following equations shown in the figure below.
Thus, the impedance is approximately equal to the resistance R1 during this condition.
If the series resonant leg reactance is equal to the reactance caused due to capacitance C0, then
parallel resonance occurs. Thus, the external circuit if offered a very high impedance by the
crystal during this condition.
Impedance vs Frequency Graph
The above figure shows the graph between impedance and frequency of the quartz
crystal oscillator circuit. Typically, crystal oscillators are having a frequency range from
32KHz to 200MHz.
In general, we know that, crystal oscillators are used in the microprocessors and
microcontrollers for providing the clock signals. Let us consider 8051 microcontroller for
which an external crystal oscillator circuit of 12MHz is essential, even though (based on model)
8051 microcontroller is capable to run at 40 MHz (max). 8051 requires 12 clock cycles for one
machine cycle, such that to give effective cycle rate at 1MHz (considering 12MHz clock) to
3.33MHz (considering maximum 40MHz clock). This crystal oscillator is used to generate
clock pulses required for the synchronization of all the internal operations.
There are numerous applications for crystal oscillator in various fields and a few crystal
oscillator applications are shown below:
The crystal oscillator is used in research and measurement for celestrial navigation, space
tracking purpose, in the measuring instruments and medical devices, and so on.
There are a huge number of industrial applications of crystal oscillator such as in computers,
digital systems, instrumentation, phase locked loop systems, marine, modems, sensors,
telecommunications, disk drives, and so on.
Crystal oscillator is used for engine controlling, stereo, clock and to trip computer, and in GPS
system.
Crystal oscillators are used in many consumer goods such as cable television systems, personal
computers, video cameras, toys and video games, radio systems, cellular phones, and so on.
10. ENCODER
Media
Software for encoding audio, video, images, or text into standardized formats:
A compressor encodes data (e.g., audio/video/images) into a smaller form (see codec)
An audio encoder converts analog audio to digital audio signals
A video encoder converts analog video to digital video signals
A multiplexer combines multiple inputs into one output
An 8b/10b encoder creates DC balance on a communication transmission line
Transducers
Transducers (such as optical or magnetic encoders) sense position or orientation for use as a
reference or active feedback to control position:
A rotary encoder converts rotary position to an analog (e.g., analog quadrature) or digital
(e.g., digital quadrature, 32-bit parallel, or USB) electronic signal.
A linear encoder similarly converts linear position to an electronic signal.
Such encoders can be either absolute or incremental. The signal from an absolute
encoder gives an unambiguous position within the travel range without requiring knowledge
of any previous position. The signal from an incremental encoder is cyclical, thus ambiguous,
and requires counting of cycles to maintain absolute position within the travel range. Both can
provide the same accuracy; the absolute encoder is more robust to interruptions in transducer
signal, whereas the incremental encoder reports position changes in real time.
Telecommunications
Electronic circuits
a. Voltage: 4.5-5.5V
b. Current: <40mA
c. Digital Interface: 5V TTL level UART interface
d. Analog Interface: 3.5mm mono-channel microphone connector + microphone
pin interface
e. Size: 30mm x 47.5mm
f. This module can store 15 pieces of voice instruction. Those 15 pieces are divided
into 3 groups, with 5 in one group. First we should record the voice instructions
group by group. After that, we should import one group by serial command before it
could recognize the 5 voice instructions within that group. If we need to implement
instructions in other groups, we should import the group first. This module is
speaker independent. If your friend speaks the voice instruction instead of you, it
may not identify the instruction.
12. LED:
Introduction:
Working:
13. RF TRANSMITTER:
sku: WRL-08946
Description: This is only the 434MHz transmitter. This will work with the RF Links at
434MHz at either baud rate. Only one 434MHz transmitter will work within the same location.
This wireless data is the easiest to use, lowest cost RF link we have ever seen! Use these
components to transmit position data, temperature data, even current program register values
wirelessly to the receiver. These modules have up to 500 ft range in open space. The
transmitter operates from 2-12V. The higher the Voltage, the greater the range - see range test
data in the documents section.
We have used these modules extensively and have been very impressed with their ease of use
and direct interface to an MCU. The theory of operation is very simple. What the transmitter
'sees' on its data pin is what the receiver outputs on its data pin. If you can configure the UART
module on a PIC, you have an instant wireless data connection. The typical range is 500ft for
open area.
This is an ASK transmitter module with an output of up to 8mW depending on power supply
voltage. The transmitter is based on SAW resonator and accepts digital inputs, can operate
from 2 to 12 Volts-DC, and makes building RF enabled products very easy.
CHAPTER 5
SOFTWARE USED
Keil development tools for the 8051 Microcontroller Architecture support every level of
software 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, Single-board Computers, and Emulators support
all 8051 derivatives and help you get your projects completed on schedule.
The Keil 8051 Development Tools are designed to solve the complex problems facing
embedded software developers.
When starting a new project, simply select the microcontroller you use from the Device
Database and the µVision IDE sets all compiler, assembler, linker, and memory options
for you.
Numerous example programs are included to help you get started with the most popular
embedded 8051 devices.
The Keil µVision Debugger accurately simulates on-chip peripherals (I²C, CAN,
UART, SPI, Interrupts, I/O Ports, A/D Converter, D/A Converter, and PWM Modules)
of your 8051 device. Simulation helps you understand hardware configurations and
avoids time wasted on setup problems. Additionally, with simulation, you can write and
test applications before target hardware is available.
When you are ready to begin testing your software application with target hardware,
use the MON51, MON390, MONADI, or FlashMON51 Target Monitors, the ISD51
In-System Debugger, or the ULINK USB-JTAG Adapter to download and test program
code on your target system.
The Monitor requires that the program you are debugging is located in RAM space. For setting
breakpoints in your code, the Monitor modifies the user code and inserts ACALL instructions
at all breakpoint locations. Therefore you need to configure your code memory as von-
Neumann memory. Von-Neumann means that you can read physically the same memory bytes
from code and xdata space. This is necessary to download software into code space since the
8051 does not provide CPU instructions to write into code memory. Typically a AND gate is
used to combine the RD/ and PSEN/ signals of the CPU and generate a RD/ signal for the RAM
device as shown in the figure on the left.
Serial Interface:
Monitor-51 works with any standard serial interface and requires only the signals TRANSMIT
DATA, RECEIVE DATA and SIGNAL GROUND from the RS232 or V.24 line. However, in
most cases, some additional connections are required by the PC COM interface, to enable
transmit and receive data. If you are using a 9-PIN standard connector on your application
board you should therefore connect the pin 7 to pin 8, and pin 1 to pin 4 and pin 6.
CHAPTER 6
WORKING
Objectives:
Technology is the word coined for the practical application of scientific knowledge in
the industry. The advancement in technology cannot be justified unless it is used for leveraging
the user’s purpose. Technology, is today, imbibed for accomplishment of several tasks of
varied complexity, in almost all walks of life. The society as a whole is exquisitely dependent
on science and technology. Technology has played a very significant role in improving the
quality of life. One way through which this is done is by automating several tasks using
complex logic to simplify the work.
The main aim of this project is video coverage at required places with the help of digital
camera and high power LED. Robot is controlled by depending upon the tilt directions and its
wireless communication. The video will be transmitted to the receiver using AV transmitter.
At receiver end, these can be seen on TV. It is a very low cost survey line system used to
monitor a larger area. We are using RF communication to send commands to robot. RF
Communication ranges in between 30 KHz to 300 GHz. RF communication works by creating
electromagnetic waves at a source and being able to pick up those electromagnetic waves at a
particular destination. These electromagnetic waves travel through the air at near the speed of
light. The wavelength of an electromagnetic signal is inversely proportional to the frequency;
the higher the frequency, the shorter the wavelength.
MEMS is a Micro Electro Mechanical Sensor which is a highly sensitive sensor and
capable of detecting the tilt. The project consists of two micro controller based motherboards.
One motherboard consists of a controller interfaced with MEMS Accelerometer sensor
technology to control the direction of the robot, a RF transmitter to send commands to robot
and it will provide a channel for wireless communication, a LED indicator. This entire board
acts as a remote to control the movement of the robot as well as receive the information from
the robot. The other board is present with the Robot itself. It is interfaced with some DC motors
for moving the robot, a RF receiver for receiving the instructions from the transmitter.
The innovative feature in the system is it automatically detects the light intensity and
switches ON the light source if intensity of light is low which helps in better vision of
surroundings. The Microcontroller is programmed using Embedded C language. This project
finds its major applications while we are monitoring larger areas like political canvassing,
cricket stadiums, international conferences, worship places, banking etc. This project assures
us with more reliable and highly secured system. The microcontroller will act as the mediator
between the input module and output module.
CHAPTER 7
CONCLUSION
Integrating features of all the hardware components used have been developed in it.
Presence of every module has been reasoned out and placed carefully, thus contributing to the
best working of the unit. Secondly, using highly advanced IC’s with the help of growing
technology implementation done much easier way. “Wireless Gestures controlled Robot with
Voice and Video Camera” is a gestures controlled device switching system and also a robot
control wirelessly with a video camera fixed on it for physically challenged persons.
The system is designed to operate Robot using MEMS accelerometer sensor wirelessly
using RF technology and also displays the audio, video signals in TV by using audio & video
transmitter (Camera). The robot also consists of voice module which announces the basic needs
like food, water etc. The micro controller is programmed in such a way that the robot can be
operated using MEMS accelerometer technology wirelessly using RF communication. We can
be extended this application using Zigbee technology, which increases operating wireless
distance from transmitter section to the receiver section.
CHAPTER 8
REFERENCES
[1]. A low-power 3-axis digital-output MEMS gyroscope with single drive and multiplexed
angular rate readout - STMicroelectronics, Cornaredo, Italy
[2]. Modelling and Simulation of the Fiber Optic Gyroscope (FOG) in Measurement-
WhileDrilling (MWD) Processes - EBRAHIM ASHOURI,ALIREZA KASHANINIA
Electrical Engineering Department Islamic Azad University – Central Tehran Branch