Académique Documents
Professionnel Documents
Culture Documents
1
CHEPTER 1
INTRODUCTION
Microcontroller is the heart of the device which handles all the sub
devices connected across it. We have used PIC microcontroller. It has flash
type reprogrammable memory. It has some peripheral devices to play this
project perform. It also provides sufficient power to inbuilt peripheral devices.
We need not give individually to all devices. The peripheral devices also
activates as low power operation mode. These are the advantages are appear
here.
2
data at various locations and generating a gas distribution map of the given
environment.
However, a difficulty lies in the fluctuating nature of the gas distribution
In general environments, adjective flow dominates gas dispersal compare to
slow molecular diffusion. Since the airflow we encounter is almost always
turbulent, the gas distribution becomes patchy and meandering [9]. One way to
work around is to measure the gas concentration for at least several minutes at
each location to obtain a statistically significant measure, e.g. time average. To
obtain a map of good quality in shorter time, model equations representing
turbulent diffusion process and/or resultant gas distributions can be used to
estimate the gas dispersal in the whole area from a limited number of
measurement points. However, a uniform airflow field has to be assumed in
those methods, and the experimental validations were mostly done in small
controlled areas in which this assumption could reasonably be made. On the
other hand, we used kernel based extrapolation for gas distribution mapping.
As a model-free method, this approach does not assume a pre-defined
functional form of the gas distribution and is therefore not restricted to specific
situations but yet provides a way to integrate the measurements performed over
time and extrapolate on the sparse measurement points. Autonomous search for
the location of a gas source is another important subject for mobile robots
equipped with “electronic noses”. Various hardware and software setups are
proposed so far, and their details can be found in the review [11]. Most of the
robots use gas concentration gradient and airflow direction to track gas plumes
to their source. However, the experimental demonstrations were mostly given
again in small controlled environments. In most of the cases, uniform strong
airflow fields were artificially created. Otherwise, small areas in larger rooms
were carefully chosen to have constant airflow. Consequently, the next
challenge is to achieve successful gas source localization in larger and
uncontrolled environments, e.g. under outdoor conditions. The data we are
collecting will serve as the basis for devising and evaluating the appropriate gas
source localization algorithms and the hardware setups.
3
CHAPTER 2
LITERATURE SURVEY
Features
n Calibrated directly in ° Celsius (Centigrade)
n Linear + 10.0 mV/°C scale factor
4
n 0.5°C accuracy guaranteeable (at +25°C)
n Rated for full −55° to +150°C range
n Suitable for remote applications
n Low cost due to wafer-level trimming
n Operates from 4 to 30 volts
n Less than 60 μA current drain
n Low self-heating, 0.08°C in still air
n Nonlinearity only ±1⁄4°C typical
n Low impedance output, 0.1 ohm for 1 mA load
5
✓ ESD Susceptibility (Note 11) 2500V
Specified Operating Temperature Range: TMIN to T MAX
✓ LM35, LM35A −55°C to +150°C
✓ LM35C, LM35CA −40°C to +110°C
✓ LM35D 0°C to +100°C
Piezoelectric sensor
Dynamic pressure sensors are designed to measure pressure changes in
liquids and gasses such as in shock tube studies, in-cylinder pressure
measurements, field blast tests, pressure pump perturbations, and in other
pneumatic and hydraulic processes. Their high rigidity and small size give
them excellent high frequency response with accompanying rapid rise time
capability. Acceleration compensation makes them virtually unresponsive to
mechanical motion, i.e., shock and vibration. This series is characterized by
very high frequency response and fast rise time. These instruments contain
integral impedance converting IC amplifiers which reduce the output
impedance by many orders of magnitude allowing the driving of long cables
with negligible attenuation. Series 2300V utilizes thin synthetic quartz crystals
stacked together to produce an analogous voltage signal when stressed in
compression by pressure acting on the diaphragm. This pressure, by virtue of
diaphragm area, is converted to compressive force which strains the crystals
linearly with applied pressure producing an analog voltage signal.
Principle of operation
Transverse effect
A force is applied along a neutral axis (y) and the charges are
generated along the (x) direction, perpendicular to the line of force. The
6
amount of charge depends on the geometrical dimensions of the
respective piezoelectric element. When dimensions a,b,c apply,
Cx = dxyFyb / a,
where a is the dimension in line with the neutral axis, b is in line with
the charge generating axis and d is the corresponding piezoelectric
coefficient.
Longitudinal effect
The amount of charge produced is strictly proportional to the
applied force and is independent of size and shape of the piezoelectric
element. Using several elements that are mechanically in series and
electrically in parallel is the only way to increase the charge output. The
resulting charge is
Cx = dxxFxn,
Where dxx is the piezoelectric coefficient for a charge in x-direction
released by forces applied along x-direction (in pC/N). Fx is the applied
Force in x-direction [N] and n corresponds to the number of stacked
elements.
Shear effect
Again, the charges produced are strictly proportional to the
applied forces and are independent of the element’s size and shape. For
n elements mechanically in series and electrically in parallel the charge
is
Cx = 2dxxFxn.
In contrast to the longitudinal and shear effects, the transverse effect opens the
possibility to fine-tune sensitivity on the force applied and the element
dimension.
7
Humidity Sensor
Dallas Semiconductor, in conjunction with Texas Weather Instruments,
Inc., previously developed a basic weather station that used 1-Wire technology
to measure wind speed wind direction, and temperature [1]. The station’s
capability was next expanded to include a rain gauge that was connected to the
1-Wire net by simply plugging it into the expansion connector on the weather
station board [2]. Because 1-Wire technology transmits both power and
bidirectional data over a single twisted-pair cable [3,4], no extra wiring or
power was required. A PC or microcontroller executing Touch Memory
Executive (TMEX) software controls the 1-Wire net. Data transfers are half
duplex and bit sequential over a single twisted-pair cable using short and long
time slots to encode the binary ones and zeros, while power is transmitted
during communication idle times. Because every 1-Wire device has a unique
ID address that identifies it to the bus master, multiple sensors can share the
same net and the software can automatically recognize and display data.
Environmental Sensing
Trimmed capacitive sensing element with onchip signal conditioning. It
develops a linear voltage vs. RH output that is ratiometric to the supply
voltage. That is, when the supply voltage varies, the sensor output voltage
follows in the same proportion. The part is calibrated at 5 VDC, but it will
operate over a 4–5.8 VDC range. At the calibration voltage and room
temperature, the output voltage ranges from 0.8 to 3.9 VDC as the humidity
varies from 0% to 100% (noncondensing). At 200 A, its operating current is
well suited for use on a 1-Wire net. Since the part is light sensitive, it should be
shielded from bright lights when in operation measuring RH
8
2.2 OTHER MONITORING SYSTEMS (REGIONAL AND GLOBAL
SURVEYS)
Source Monitoring
Information on substances emitted to the environment is important to
any global monitoring system and is especially needed for global budgeting.
Data are readily available for some of these substances, e.g., the amount of oil
transported over the oceans, but in generalwe need to develop new methods for
data gathering for critical substances. Substances which have been selected for
global monitoring (mercury, lead, cadmium, DDT, PCB and combustion
products of fossil fuels) should have first priority. These data must be based on
national production statistics in industry, mining, etc. but there should be
9
international agreement to transmit certain types of data to one central
coordination body.
To assess present and future environmental risks it is important to have a
continuous record of critical chemical substances emitted to the environment.
At the same time these substances should be evaluated in regard to possible
health risks to human beings and to ecosystems. To assess these environmental
emissions it is necessary to have a detailed knowledge of the techniques of
industrial processes. Special attention has to be given to impurities in crude
chemicals and to organic chemicals which have high biological activity even in
extremely small amounts, e.g., hormones and antibiotics. An ultimate aim of
such an international registry will be to record the amounts of all old and new
potentially dangerous substances added to the environment every year. It has to
be stressed that a very large number of new substances are added to the
environment each year but only a few of these may be of potential risk in the
future. A registry may thus not only give information on the dangerous
substances but also information on substances which are harmless to the
environment.
10
All these variables need a very special kind of organization to be
monitored effectively, and it seems proper that each of these variables should
be treated as a special subsystem. The registration of gross vegetation changes
by satellites is a high priority variable. The newly emerging system using Earth
Resource Technology Satellites seems to be the appropriate way to register
these changes. It is essential that an international framework be created to
handle this type of information. In the future it is likely that satellite
registration of biological variables in the oceans may be of great importance to
global monitoring.
Short-lived Phenomena
The present system used by the Smithsonian Institution for registering
short-lived phenomena may, if extended, be a very valuable tool to record
events which are indicators of environmental change. The biological aspects
have been previously stressed, but other records such as oil spills and volcanic
activities are also important for the global environmental situation. We
recommend that this system should be enlarged and internationally supported.
11
CHAPTER 3
EXISTING WORK
3.1. INTRODUCTION
As the contamination of groundwater by heavy-metal ions is critically
harmful to many organisms, including humans, there have been various
researches and reports on in-site and on-site detection of heavy-metal
contaminants using electrochemical detection methods. Electrochemical
detection can be easily realized in a simple and cheap implementation platform
with high sensitivity and its implementation is quite compatible with
conventional semiconductor processing technologies. The previous approaches
have used electrochemical sensor integrated with a custom designed
potentiostat for simple on-site analysis system. However, they have used a
12
laptop computer for data acquisition, signal processing, and system control, and
this makes it difficult to achieve periodic on-site environmental monitoring in
broad field areas.
This environmental monitoring system includes sensing electrodes,
potentiostat, and radio frequency (RF) communication module with an antenna
and can be located in broad open fields such as river, coast, etc. When the
analysis is requested by the base station, heavy-metal ions in the water are
analyzed by the electrochemical sensor with potentiostat and the detected
signals are transferred to the base station through the RF module. There are
some requirements for the proposed wireless monitoring system. In order to
realize a miniaturized system, all the important components for the proposed
sensor system should be integrated in a small form factor. Also, as a distributed
portable system, the entire components must be optimally designed to reduce
the power consumption. In order to fulfill these requirements, the proposed
sensor system has been implemented using electrochemical sensor fabricated
on silicon substrate by microelectromechanical system (MEMS) technology
and a custom RF communication device optimally designed for low-power
consumption.
13
block diagram of the proposed distributed sensor. In this work, we have
fabricated the mercury working electrodes (WEs) and solid-state Ag/AgCl
reference electrode (RE) on the same silicon substrate using MEMS technology
and assembled the rest of modules in a hybrid platform by integrating the
custom potentiostat and the custom RF module chip fabricated using 0.18 _m
CMOS technology.
BASE STATION
ANTENNA
MCU RF
USER
MODULE
INTERFACE
14
Instruction signals will be wirelessly transmitted from the base station at
a close distance and received at the sensor system through an antenna. The
targeted minimum communication distance is about 50 m. In the RF module,
the received RF signals are demodulated and converted into digital signals
which will be the series of input control signals to the MCU. The MCU
generates sensor driving signals which will be applied to the sensing electrodes
through digital-to-analog converter (DAC) and amplifiers. Electrochemical
analysis is performed at the sensing electrodes according to the received
control signals. Next, the detection signal from the sensor module is transferred
into the MCU and finally transmitted to the base station after modulation in the
RF module.
For the low-power operation, the proposed distributed sensor network
has been designed to have two operation modes—sleep mode and wake-up
mode. During the sleep mode, only the MCU operates in non-active state
consuming very small fraction of power, while the rest of the other modules are
turned off. During the wake-up mode, the MCU takes an active state and scans
the RF input signal. If the instruction signals are detected during the wake-up
mode, the MCU activates the system and starts to supply power to the other
modules. To minimize the power consumption in this wake-up mode, the MCU
gradually enables the system as needed and properly disables the unnecessary
parts of the system. For example, during the receiving-mode, the sensor module
and drive amplifier (DA) in RF module are not activated. On the other hand,
during the transmitting-mode, the sensor module and LNA, mixer, and
baseband circuits are not activated. The sensing module is only activated
during the sensing-mode according to power scheduling by the MCU.
15
CHAPTER 4
PROPOSED WORK
Microcontroller is the heart of the device which handles all the sub
devices connected across it. We have used PIC microcontroller. It has flash
type reprogrammable memory. It has some peripheral devices to play this
project perform. It also provides sufficient power to inbuilt peripheral devices.
We need not give individually to all devices. The peripheral devices also
activates as low power operation mode. These are the advantages are appear
here.
16
4.1 BLOCK DIAGRAM
17
creating an acute education need for imparting the knowledge of
microcontroller based system design and development. It identifies the vital
features responsible for their tremendous impact; the acute educational need
created by them and provides a glimpse of the major application area.
Introduction
18
term to describe a microcontroller is embedded controller, because the
microcontroller and its support circuits are often built into, or embedded in, the
devices they control.
4 Bit MC
8 bit MC
19
Memory 8K
16 Bit MC
32 Bit MC
20
4.2.2 Concepts of Microcontroller
Microcontroller is a general purpose device, which integrates a number
of the components of a microprocessor system on to single chip. It has inbuilt
CPU, memory and peripherals to make it as a mini computer. A
microcontroller combines on to the same microchip:
21
In the recent years, microcontrollers have been developed around
specifically designed CPU cores, for example the microchip PIC range of
microcontrollers.
PIC (16F877)
Various microcontrollers offer different kinds of memories. EEPROM,
EPROM, FLASH etc. are some of the memories of which FLASH is the most
recently developed. Technology that is used in pic16F877 is flash technology,
so that data is retained even when the power is switched off. Easy
Programming and Erasing are other features of PIC 16F877.
22
CHAPTER 5
SYSTEM IMPLEMENTATION
Transformer
The transformer will step down the power supply voltage (0-230V) to
(0-6V) level. Then the secondary of the potential transformer will be connected
to the precision rectifier, which is constructed with the help of op–amp. The
advantages of using precision rectifier are it will give peak voltage output as
DC; rest of the circuits will give only RMS output.
23
Rectifier
The rectifier is device which converts Alternating current into some DC
form. The output of the rectifier is in pulsated DC form. There is some
semiconductor devices used to convert AC to pulsated DC named diodes.
Normally we are using PN junction diodes in rectifiers. These diodes allow the
current flow to it when the incoming voltage is higher than or equal to 0.7 V.
otherwise it will act as an open circuit.
Filter
The next section of the power supply is filter section. That is nothing but
capacitor. The capacitor is used as a filter to convert Pulsated DC to pure DC.
We can utilize the capacitor’s charging discharging characteristics and convert
the pulsated DC to pure DC.
Voltage Regulator
Circuit Description
24
This typically involves converting 240 volt AC supplied by a utility
company to a well-regulated lower voltage (+/-12V) DC for electronic devices.
25
The potential transformer will step down the power supply voltage (0-
230V) to (0-6V) level. Then the secondary of the potential transformer will be
connected to the precision rectifier, which is constructed with the help of op–
amp. The advantages of using precision rectifier are it will give peak voltage
output as DC, rest of the circuits will give only RMS output.
Bridge rectifier
When four diodes are connected as shown in figure, the circuit is called
as bridge rectifier. The input to the circuit is applied to the diagonally opposite
corners of the network, and the output is taken from the remaining two corners.
Let us assume that the transformer is working properly and there is a positive
potential, at point A and a negative potential at point B. the positive potential at
point A will forward bias D3 and reverse bias D4.
The negative potential at point B will forward bias D1 and reverse D2.
At this time D3 and D1 are forward biased and will allow current flow to pass
through them; D4 and D2 are reverse biased and will block current flow.
The path for current flow is from point B through D1, up through RL,
through D3, through the secondary of the transformer back to point B. this path
is indicated by the solid arrows. Waveforms (1) and (2) can be observed across
D1 and D3. One-half cycle later the polarity across the secondary of the
transformer reverse, forward biasing D2 and D4 and reverse biasing D1 and
D3. Current flow will now be from point A through D4, up through RL,
through D2, through the secondary of T1, and back to point A. This path is
indicated by the broken arrows. Waveforms (3) and (4) can be observed across
D2 and D4. The current flow through RL is always in the same direction. In
flowing through RL this current develops a voltage corresponding to that
shown waveform (5). Since current flows through the load (RL) during both
half cycles of the applied voltage, this bridge rectifier is a full-wave rectifier.
26
One advantage of a bridge rectifier over a conventional full-wave
rectifier is that with a given transformer the bridge rectifier produces a voltage
output that is nearly twice that of the conventional full-wave circuit.
The maximum voltage that appears across the load resistor is nearly-but
never exceeds-500 v0lts, as result of the small voltage drop across the diode. In
the bridge rectifier shown in view B, the maximum voltage that can be rectified
is the full secondary voltage, which is 1000 volts. Therefore, the peak output
voltage across the load resistor is nearly 1000 volts. With both circuits using
the same transformer, the bridge rectifier circuit produces a higher output
voltage than the conventional full-wave rectifier circuit.
IC voltage regulators
Voltage regulators comprise a class of widely used ICs. Regulator IC
units contain the circuitry for reference source, comparator amplifier, control
device, and overload protection all in a single IC. IC units provide regulation of
either a fixed positive voltage, a fixed negative voltage, or an adjustably set
voltage. The regulators can be selected for operation with load currents from
hundreds of milli amperes to tens of amperes, corresponding to power ratings
from milli watts to tens of watts.
27
A fixed three-terminal voltage regulator has an unregulated dc input
voltage, Vi, applied to one input terminal, a regulated dc output voltage, Vo,
from a second terminal, with the third terminal connected to ground.
The series 78 regulators provide fixed positive regulated voltages from 5 to 24
volts. Similarly, the series 79 regulators provide fixed negative regulated
voltages from 5 to 24 volts.
For ICs, microcontroller, LCD --------- 5 volts
For alarm circuit, op-amp, relay circuits ---------- 12 volts
Serial Clock (SCL) - The SCL input is used to clock all data into and out of
the device. In the WRITE mode, data must remain stable when SCL is HIGH.
In the READ mode, data is clocked out on the falling edge of SCL.
Serial Data (SDA) - The SDA pin is a bidirectional pin used to transfer data
into and out of the device. Data may change only when SCL is LOW. It is an
open-drain output, and may be wire-ORed with any number of open-drain or
28
open-collector outputs. Address (A0) - The A0 pin is not electrically connected
to the IS24C04.
A1, and A2 - The address inputs are used to set the least significant three bits
of the slave address. These inputs may be tied HIGH or LOW, or they may be
actively driven. These inputs allow up to four IS24C04 devices to be connected
together on the bus. An optional device will have these pins “don’t care.”
Write Control (WC) - The Write Control input is used to disable any attempt
to write to the memory. When HIGH, the memory is protected; when LOW, the
write function is normal. The part can be read independent of the state of WC
pin. When not connected this pin will be pulled LOW.
5.2.2 Applications
The IS24C04 is ideal for high volume applications requiring low power
and low density storage. This device uses a low-cost, space-saving 8-pin plastic
package. Candidate applications include robotics, alarm devices, electronic
locks, meters and instrumentation.
29
bus. The two-wire bus was defined as a serial data line (SDA), and a serial
clock line (SCL). (Refer to Figure 1. Typical System Bus Configuration.)
The protocol defines any device that sends data onto the SDA bus as a
transmitter, and the receiving device as a receiver. The device controlling the
data transmission is named MASTER device, and the controlled device is
named SLAVE device. In all cases, the IS24C04 will be a slave device, since it
never initiates any data transfers. Up to four IS24C04 can be connected to the
bus. Device's physical address inputs A0-A2 must be connected to either Vcc
or GND.
30
by reducing the evaporation of perspiration from the skin. This effect is
calculated in a heat index table.
Absolute humidity
If all the water in one cubic meter of air were condensed into a
container, the container could be weighed to determine absolute humidity. The
amount of vapor in that cube of air is the absolute humidity of that cubic meter
of air. More technically, absolute humidity is the mass of water vapor, mw, per
cubic meter of air, Va:
AH = mw / Va
Absolute humidity ranges from 0 grams per cubic meter in dry air to 30
grams per cubic meter (0.03 ounce per cubic foot) when the vapour is saturated
at 30 °C. (See also Absolute Humidity table)
31
suggests avoiding the term "absolute humidity". Units should always be
carefully checked. Most humidity charts are given in g/kg or kg/kg, but any
mass units may be used.
MRi = mw / md
Mixing ratio can also be expressed with the partial pressure of water vapor:
Where
δ = 0.62197 is the ratio of molecular weights of water vapor and dry air
pw = partial pressure of water vapor in moist air
pa = atmospheric pressure of moist air
32
Relative humidity
Where
Specific humidity
SH = mw / mt
33
Specific humidity is related to mixing ratio (and vice versa) by:
SH = MR / (1+ MR)
Real-Time Clock
A real-time clock (RTC) is a computer clock (most often in the form of
an integrated circuit) that keeps track of the current time. Although the term
often refers to the devices in personal computers, servers and embedded
systems, RTCs are present in almost any electronic device which needs to keep
accurate time.
Terminology
The term is used to avoid confusion with ordinary hardware clocks
which are only signals that govern digital electronics, and do not count time in
human units. RTC should not be confused with real-time computing, which
shares its three-letter acronym, but does not directly relate to time of day.
34
Purpose
Although keeping time can be done without an RTC, using one has
benefits:
• Low power consumption (important when running from alternate
power)
• Frees the main system for time-critical tasks
• Sometimes more accurate than other methods
• A GPS receiver can shorten its startup time by comparing the current
time, according to its RTC, with the time at which it last had a valid
signal. If it has been less than a few hours then the previous ephemeris is
still usable.
Power source
RTCs often have an alternate source of power, so they can continue to
keep time while the primary source of power is off or unavailable. This
alternate source of power is normally a lithium battery in older systems, but
some newer systems use a super capacitor, because they are rechargeable and
can be soldered. The alternate power source can also supply power to battery
backed RAM.
Timing
Most RTCs use a crystal oscillator, but some use the power line
frequency. In many cases the oscillator's frequency is 32.768 kHz. This is the
same frequency used in quartz clocks and watches, and for the same reasons,
namely that the frequency is exactly 215 cycles per second, which is a
convenient rate to use with simple binary counter circuits
35
5.4 THE ELECTROMAGNETIC RELAY
36
The spring sets (contacts) can be a mixture of n.o n.c and c.o. Look at
the page on switches to see how they can be used in circuits. Various coil
operating voltages (ac and dc) are available. The actual contact points on the
spring sets are available for high current and low current operation. The REED
RELAY has a much faster operation than the relays described above.
The circuit above is a motor control circuit using a low voltage relay
to control a high power motor. When the "start" button is pushed, the 12 volt
circuit is completed and the relay is energised. The three sets of contacts close
and 240 volts is applied to the motor. Since there is now a closed relay contact
across the "start” switch, when the button is released the relay continues to be
energised and the motor continues to run. The relay has "latched on". When
the "stop" button is pushed the 12 volt circuit is broken. The relay is de-
energized and the motor stops.
37
5.5 DC MOTOR
38
Because of induction of the windings, power requirements, and
temperature management some glue circuitry is necessary between digital
controller and motor.BLDC motors offer several advantages over brushed DC-
motors, including higher efficiency and reliability, reduced noise, longer
lifetime (no brush erosion), elimination of ionizing sparks from the
commutator, and overall reduction of electromagnetic interference (EMI.) The
maximum power that can be applied to a BLDC motor is exceptionally high,
limited almost exclusively by heat, which can damage the magnets. BLDC's
main disadvantage is higher cost, which arises from two issues. First, BLDC
motors require complex electronic speed control to run. Brushed DC-motors
can be regulated by a comparatively trivial variable-resistor (potentiometer or
rheostat), which is inefficient but also satisfactory for cost-sensitive
applications. Second, many practical uses have not been well developed in the
commercial sector. For example, in the RC hobby scene, even commercial
brushless motors are often hand-wound while brushed motors use armature
coils which can be inexpensively machine-wound.
BLDC motors are considered more efficient than brushed DC-motors. This
means for the same input power, a BLDC motor will convert more electrical
power into mechanical power than a brushed motor, mostly due to absence of
friction of brushes. The enhanced efficiency is greatest in the no-load and low-
load region of the motor's performance curve. Under high mechanical loads,
BLDC motors and high-quality brushed motors are comparable in efficiency.
Controller Implementations:
Because the controller must direct the rotor rotation, the controller needs
some means of determining the rotor's orientation/position (relative to the
stator coils.) Some designs use Hall effect sensors or a rotary encoder to
directly measure the rotor's position. Others measure the back EMF in the
undriven coils to infer the rotor position, eliminating the need for separate Hall
effect sensors, and therefore are often called "sensorless" controllers. Like an
AC motor, the voltage on the undriven coils is sinusoidal, but over an entire
39
commutation the output appears trapezoidal because of the DC output of the
controller.
The controller contains 3 bi-directional drivers to drive high-current DC
power, which are controlled by a logic circuit. Simple controllers employ
comparators to determine when the output phase should be advanced, while
more advanced controllers employ a microcontroller to manage acceleration,
control speed and fine-tune efficiency. Controllers that sense rotor position
based on back-EMF have extra challenges in initiating motion because no
back-EMF is produced when the rotor is stationary. This is usually
accomplished by beginning rotation from an arbitrary phase, and then skipping
to the correct phase if it is found to be wrong. This can cause the motor to run
briefly backwards, adding even more complexity to the startup sequence.
Variations on Construction
The poles on the stator of a two-phase BLDC motor. This is part of a computer
Cooling fan; the rotor has been removed. Schematic for delta and wye winding
styles. (This image does not illustrate a BLDC motor's inductive and generator-
like properties)
40
the permanent magnets are mounted on the spinning armature (rotor.) Three
stator windings surround the rotor. In the 'outrunner' configuration, the radial-
relationship between the coils and magnets are reversed; the stator coils form
the center (core) of the motor, while the permanent magnets spin on an
overhanging rotor which surrounds the core. The flat type, used where there are
space or shape limitations, uses stator and rotor plates, mounted face to face.
Outrunners typically have more poles, set up in triplets to maintain the 3 groups
of windings, and have a higher torque at low RPMs. In all BLDC motors, the
stator-coils are stationary.
There are also two electrical configurations having to do with how the
wires from the windings are connected to each other (not their physical shape
or location). The delta winding connects the 3 groups of windings to each other
in a triangle-like circuit, and power is applied at each of the connections. This
pattern is typical to low-speed, low-torque motors. The wye ("Y"-shaped)
winding, sometimes called a star winding, connects all of the windings to a
central point and power is applied to the remaining end of each winding.
Although efficiency is greatly affected by the motor's construction, the
wye winding is normally more efficient. At any given time, two-thirds of the
windings in a delta configuration are running at half the voltage of the other,
which is an impact on efficiency. The wye winding always powers only two
windings in series, so higher voltages (or lower-resistance windings) can be
used.
From a controller standpoint, the two styles of windings are treated exactly
the same, although some less expensive controllers need to read voltage from
the common center of the wye winding.
41
separate bus for instruction and data allowing simultaneous access of program
and data memory.
PIC (16F877)
Various microcontrollers offer different kinds of memories.
EEPROM, EPROM, FLASH etc. are some of the memories of which FLASH
is the most recently developed. Technology that is used in pic16F877 is flash
technology, so that data is retained even when the power is switched off.
Easy Programming and Erasing are other features of PIC 16F877.
42
• Only single 5V source needed for programming capability
• In-Circuit Debugging via two pins
• Processor read/write access to program memory
• Wide operating voltage range: 2.5V to 5.5V
• High Sink/Source Current: 25 mA
• Commercial and Industrial temperature ranges
• Low-power consumption:
< 2mA typical @ 5V, 4 MHz
.
Operation
The power supply is given to the controller is +5v ,it will operated
in +5v only. Here we are interfacing LCD display with the controller. It is 40
pin controllers. It consists of 5ports namely port A, port B, port C, port D and
port E.
Each port has different number of pins.
Port A have 6pins (RA0-RA5)
Ports B have 8pins (RB0-RB7)
43
Ports C have 8pins (RC0-RC7)
Ports D have 8pins (RD0-RD7)
Ports E have 3pins (RE0-RE2)
VDD is for power supply
For clock input and output for 2pin is used (CLK IN/OUT).
For LCD interfacing, LCD data line is taken from the port B (0-7), for data line
given to LCD. Here we are using trim pot variable resistor. This resistor is used
for adjustment of LCD brightness.
Crystal oscillator is used for producing clock pulse. There are
different type of oscillators like RC,LC etc,. Some of the oscillator produce
clock pulse which is vary with voltage, temperature fluctuations. Only crystal
oscillator produce stable clock pulse, it does not vary with the voltage
fluctuations. We never get accurate operation of controller if clock pulse is not
stable.
Then the port A, port C is used for input/output purpose.
Input/output is taken from the this port. Data are given to the controller through
input ports. Port RE(0-1) is for read and write. RD(0-7)is also for input.
44
Figure5.7 circuit diagram of thermistor
45
Circuit Description
Thermistor
46
are widely used as inrush current limiters, temperature sensors, self-resetting
over current protectors, and self-regulating heating elements.
For example, for the common PT100 sensor, α = 0.00385 or 0.385 %/°C. This
αT coefficient should not be confused with the α parameter below.
Applications
large currents from flowing at turn-on, and then heat up and become
47
operation. These thermistors are usually much larger than measuring
temperature inside the engine and provide data to the ECU and,
48
The next stage is the comparator. The non inverting input of the
comparator connected to variable resistance pot for adjustment of accuracy.
The amplified signal from the piezoelectric crystal fed into another input to the
comparator.
The comparator outputs the +12 or -12 voltages according to its greater
input. From the output of comparator connected to the Q1 transistor’s base.
Where
p is the pressure
F is the normal force
49
Pressure is a scalar, and has SI units of pascals, 1 Pa = 1 N/m2.
Circuit description
This circuit is designed to measure the varying pressure. The
pressure is measured by diaphragm which is one type of transducer. When
pressure is applied, the diaphragm is moving in the forward side. The
diaphragm moving is depends on the pressure. So it generates the voltage pulse
depends on the movement of diaphragm. The voltage pulses are in the range of
milli voltage. Hence the voltage pulse is given to Instrumentation amplifier
section in order to amplify the signals.
The important features of instrumentation amplifier are high gain
accuracy, high CMRR, low output impedance. Here the instrumentation
amplifier is constructed by TL 082 operational amplifier. The TL 082 is the
dual operational amplifier that is two operational amplifiers is fabricated in
50
single chip. Here the instrumentation amplifier acts as differential
instrumentation amplifier. The diaphragm transducer terminals are connected
to A1 and A2 amplifier of the differential instrumentation amplifier.
The difference of the varying voltage signals from the transducer is
amplified by the instrumentation amplifier. The A4 amplifier is used for zero
adjustment. When there is no pressure the diaphragm may be sliding in the
forward or reverse side. Due to that instrumentation amplifier delivered some
voltage at the output. To avoid this problem A4 amplifier is used for zero
adjustment. Hence when there is no pressure the output is zero.
The A5 amplifier acts as gain amplifier in which variable resistors is
connected as feedback resistor. By adjusting the feedback resistor we can vary
the gain of the output signal. Then the final gain adjusted signal is amplified by
the A6 amplifier.
Relays
I= V/R = 12/185
51
= 0.065A
= 65mA
Relay driver circuit is used for on / off control of relay, it acts as a switch,
normally open relay is used. Relay function is derived by controller unit. Relay
working current is 40 mA.
When the controller unit output is low relay should be in off
condition. When the controller unit output is high, relay should be ready for
doing specified function.
DPDT
Circuit description
This circuit is designed to control the load. The load may be motor or
any other load. The load is turned ON and OFF through relay. The relay ON
and OFF is controlled by the pair of switching transistors (BC 547). The DPDT
relay is connected in the Q2 transistor collector terminal. A Relay is nothing
but electromagnetic switching device which consists of six pins. They are two
set of Common, Normally close (NC) and normally open (NO) pins.
`The relay common pin is connected to supply voltage. The normally
open (NO) pin connected to load. When high pulse signal is given to base of
the Q1 transistors, the transistor is conducting and shorts the collector and
emitter terminal and zero signals is given to base of the Q2 transistor. So the
relay is turned OFF state.
When low pulse is given to base of transistor Q1 transistor,
the transistor is turned OFF. Now 12v is given to base of T2 transistor so the
transistor is conducting and relay is energized. Hence the common terminal and
52
NO terminal of relay are shorted. Now load gets the supply voltage through
relay.
53
Darlington transistor
Here we are compound two transistors to get more current gain, this
compound structure is called darlington pair, the Darlington transistor (often
called a Darlington pair) is a compound structure consisting of two bipolar
transistors (either integrated or separated devices) connected in such a way that
the current amplified by the first transistor is amplified further by the second
one.
54
So for example if you had two transistors with a current gain (hFE) = 100:
(hFE total) = 100 x 100
(hFE total) = 10,000
You can see that this gives a vastly increased current gain when compared to a
single transistor.
Therefore this will allow a very low input current to switch a much bigger load
current
Normally to turn on a transistor the base input voltage of the
transistor will need to be greater that0.7V. As two transistors are used in a
Darlington Pair this value is doubled. Therefore the base voltage will need to
be greater than 0.7V x 2 = 1.4V. It is also worth noting that the voltage drop
across collector and emitter pins of the Darlington Pair when the turn on will be
around 0.9V Therefore if the supply voltage is 5V (as above) the voltage across
the load will be will be around 4.1V (5V – 0.9V).
Introduction
Printed circuit boards, or PCBs, form the core of electronic equipment
domestic and industrial. Some of the areas where PCBs are intensively used are
computers, process control, telecommunications and instrumentation.
Manufacturing
The manufacturing process consists of two methods; print and etch, and
print, plate and etch. The single sided PCBs are usually made using the print
and etch method. The double sided plate through – hole (PTH) boards are made
by the print plate and etch method.
• The production of multi layer boards uses both the methods. The
inner layers are printed and etch while the outer layers are
produced by print, plate and etch after pressing the inner layers.
55
Software
The software used in our project to obtain the schematic layout is
MICROSIM.
Panelisation
Here the schematic transformed in to the working positive/negative
films. The circuit is repeated conveniently to accommodate economically as
many circuits as possible in a panel, which can be operated in every sequence
of subsequent steps in the PCB process. This is called penalization. For the
PTH boards, the next operation is drilling.
Drilling
PCB drilling is a state of the art operation. Very small holes are drilled
with high speed CNC drilling machines, giving a wall finish with less or no
smear or epoxy, required for void free through hole plating.
Plating
The heart of the PCB manufacturing process. The holes drilled in the
board are treated both mechanically and chemically before depositing the
copper by the electro less copper platting process.
Etching
Once a multiplayer board is drilled and electro less copper deposited, the
image available in the form of a film is transferred on to the out side by photo
printing using a dry film printing process. The boards are then electrolytic
plated on to the circuit pattern with copper and tin. The tin-plated deposit
serves an etch resist when copper in the unwanted area is removed by the
conveyor’s spray etching machines with chemical etch ants. The etching
56
machines are attached to an automatic dosing equipment, which analyses and
controls etch ants concentrations
Solder Mask
Since a PCB design may call for very close spacing between conductors,
a solder mask has to be applied on the both sides of the circuitry to avoid the
bridging of conductors. The solder mask ink is applied by screening. The ink is
dried, exposed to UV, developed in a mild alkaline solution and finally cured
by both UV and thermal energy.
After applying the solder mask, the circuit pads are soldered using the
hot air leveling process. The bare bodies fluxed and dipped in to a molten
solder bath. While removing the board from the solder bath, hot air is blown on
both sides of the board through air knives in the machines, leaving the board
soldered and leveled. This is one of the common finishes given to the boards.
Thus the double sided plated through whole printed circuit board is
manufactured and is now ready for the components to be soldered.
Mplab
57
Assemble, compile and link source code using various language tools.
An assembler, linker and librarian come with MPLAB IDE. C compilers are
available from Microchip and other third party vendors.
Debug the executable logic by watching program flow with a simulator, such
as MPLAB SIM, or in real time with an emulator, such as MPLAB ICE. Third
party emulators that work with MPLAB IDE are also available.
Make timing measurements.
View variables in Watch windows.
Program firmware into devices with programmers such as PICSTART Plus or
PRO MATE II.
Find quick answers to questions from the MPLAB IDE on-line Help.
Mplab Simulator
58
PIC Start Plus Programmer:
59
CHAPTER 6
CONCLUSION
60
REFERENCES
WEBSITES:
1. http://www.atmel.com/
2. http://www.microchip.com/
3. http://www.8052.com
4. http://www.beyondlogic.org
61