CONTENT LSM - Elec
CONTENT LSM - Elec
DECLARATION …ii
CERTIFICATE …iii
ACKNOWLEDGEMENT …iv
PROGRESS REPORT …v
ABSTRACT …ix
1. INTRODUCTION ...01
3. METHODOLOGY …25
6. REFERENCES ...47
7. APPENDICES …48
1
LIST OF FIGURES
Figure 6 LED … 27
Figure 7 Resistor … 34
Figure 14 Smoothing … 41
Figure 15 Regulator … 42
Figure 18 Diode … 44
Figure 19 Diode … 45
Figure 21 Layout … 50
2
1. INTRODUCTION
3
LIBRARY SILENCE MANAGEMENT SYSTEM
INTRODUCTION
As our final year project we are going to present “Library silence manager”. Our project measure
sound pressure level. The project is also connected to Audio announcement circuit. So our project
continuously measure sound pressure, and compare with critical noise level set using
microcontroller programming. If sound noise pressure exceed from set value, voice announcement
circuit start play, giving warning massage. This project can be very useful for the college library
and everywhere where noise level matter.
A basic sound level meter shows the sound pressure level with different frequency weighting and
with different time integration that are used for noise assessment. In almost all countries, the use
of A-frequency-weighting is mandated for protection of workers against noise induced deafness.
The standard sound level meter is more correctly called an ‘exponentially averaging sound level
meter’ as the AC signal from microphone is converted into DC by a root-mean square circuit and
thus I must have a time constant of integration; today, referred to as time weighting. The output of
RMS circuit is linear in voltage and passed through a logarithm circuit to give a linear readout in
decibels. It follow that decibels is not a unit but simply a dimensionless ratio-in case, the ratio of
two pressures. The decibel is a logarithmic unit used to describe a ratio. The ratio may be power,
sound pressure, voltage, intensity, etc. Not at all frequency is equally loud. This is because human
ear does not respond equally to all frequencies. Our ear much sensitive to sound in frequency
range of 1 KHz to 4 KHz. So sound meter are usually fitted with a filter whose response to
frequency is almost like that of the human ear. If the A-weighting filter is used, the sound pressure
level is given in dB unit.
4
2. REVIEW OF LITERATURE
5
Block diagram
Figure 1
6
Working
Condenser mic is used as an input device. The sound is converted into electrical
signal using condenser mic. This signal is than amplified by using LM358.For
sufficient amplification we are using two operational amplifiers. The audio output
is received through pin 2 and feedback is given through VR1. Here VR1 is used to
get an output amplitude level between 0 to 4 volts.
LM 358 is dual operational amplifier consisting of two independent, high gain,
internally frequency compensated operational amplifier that are design specially
to operate from a single power supply over a wide voltage range. Operation from
split supplies also is possible if the difference between the two supplies is 3 V to
32 V and VCC is at least 1.5 V more positive than the input common-mode
voltage. The low supply-current drain is independent of the magnitude of the
supply voltage.
Applications include transducer amplifiers, dc amplification blocks, and all the
conventional operational amplifier circuits that now can be implemented more
easily in single-supply-voltage systems. For example, these devices can be
operated directly from the standard 5-V supply used in digital systems and easily
can provide the required interface electronics without additional +-5-V supplies.
This analog output is fed to the analog input of PIC microcontroller. The AVR
microcontroller is used because it has internal analog to digital converter. Atmega
8 belongs to a class of 8-bit microcontrollers of RISC architecture. It has 8kb flash
memory for storing a written program. Since memory made in FLASH technology
can be programmed and cleared more than once, it makes this microcontroller
suitable for device development. IT has data memory that needs to be saved when
there is no supply. It is usually used for storing important data that must not be
lost if power supply suddenly stops. For instance, one such data is an assigned
temperature in temperature regulators. If during a loss of power supply this data
was lost, we would have to make the adjustment once again upon return of supply.
7
LIST OF COMPONENTS
ATMEGA8
OPAMP LM358
MIC
RESISTORS
CAPACITORS
VOICE PROCESSOR(APR9600)
REGULATED POWER SUPPLY
EMBEDDED SYSTEM
What is a system???
Example: WATCH
It is a time display SYSTEM
Part: Hardware, Needles, Battery, Dial, Chassis and strap
Rules: All needles move clockwise only.
A thin needle rotates every second.
A long needle rotates every minute.
A short needle rotates every hour.
All needles return to the original position after 12 hours.
8
EMBEDDED SYSTEM-
An Embedded System is one that has computer hardware with software embedded
in it as one of its important components.
Its software embeds in ROM (Read Only Memory). It does not need secondary
memories as in a computer HARDWARE
Figure 2
9
History of Embedded Systems:
When computers came into the market in the 1940’s, they were all Embedded
Systems. However, they were never regarded as Embedded Systems because,
firstly, they were regarded as computers; and secondly, because they were too
large and improper to be formally termed as Embedded Systems.
The Apollo Guidance Computer changed history. It became the world’s first
modern Embedded System. The Apollo Guidance Computer was developed by
Charles Stark Draper. The size of the device was reduced considerably from its
monolithic ancestor. However, this increased other risk factors.
Mass production of Embedded Systems began in the year 1961.Ever since; there
has been no stopping the production and increase in the use of Embedded
Systems.
10
Basic components of EMBEDDED SYSTEM
It has Hardware
RTOS defines the way the system work. Which supervise the application
software? It sets the rules during the execution of the application program. A
small scale embedded system may not need an RTOS.
11
3. Sophisticated Embedded System
Sophisticated Embedded System has an enormous level of software and hardware
complexities. Because there is tremendous co-excision between software and
hardware and integration in the final system, they are also used for cutting edge
applications. Certain functions such as encryption TCP/IP protocol stacking
various algorithms and network driver functions are implemented in hardware to
obtain great speeds.
1) Assembly Language.
2) Embedded C
1) Keil π vision
2) Top view
3) Bascom
12
3. METHODOLOGY
13
High level and Low level programming language
Machine Language.
Assembly Language.
Machine Language: It is the lowest and first type of programming language to be
developed. Machine Language is basically the only language which computer can
understand.
Advantages of Machine Language
i) It makes fast and efficient use of the computer.
ii) It requires no translator to translate the code i.e. directly understood
Disadvantages of Machine Language:
i) All operation codes have to be remembered.
ii) All memory addresses have to be remembered.
iii) It is hard to amend or find errors in a program written in the machine
Assembly Language:-
It was developed to overcome some of the many inconveniences of machine
language. This language is also very difficult and needs a lot of practice to master
it because very small English support is given to this language. The language
mainly helps in compiler orientations.
Advantages of Assembly Language
14
Disadvantages of Assembly Language
i) Like machine language it is also machine dependent.
15
ATMEGA8 AVR MICROCONTROLLER
History of AVR
AVR was developed in the year 1996 by Atmel. The architecture of AVR was
developed by Alf-Egil Bogen and Vegard Wollan. AVR derives its name from its
developers and stands for Alf-Egil Bogen Vegard Wollan RISC
microcontroller, also known as Advanced Virtual RISC. The AVR was one of
the first microcontroller families to use on-chip flash memory for program
storage. Till that time microcontroller comes with one-time programmable ROM.
The AVR is a modified Harvard architecture machine where program and data is
stored in separate physical memory systems.
1. TinyAVR – Less memory, small size, suitable only for simpler applications
2. MegaAVR – These are the most popular ones having good amount of memory
(upto 256 KB), higher number of inbuilt peripherals and suitable for moderate to
complex applications.
3. XmegaAVR – Used commercially for complex applications, which require large
program memory and high speed.
16
What’s special about AVR?
They are fast: AVR microcontroller executes most of the instructions in single
execution cycle. AVRs are about 4 times faster than PICs, they consume less
power and can be operated in different power saving modes. Let’s do the
comparison between the three most commonly used families of microcontrollers.
What is 8-bit? This means that the microcontroller is capable of transmitting and
receiving 8-bit data. The input/output registers available are of 8-bits. The AVR
family controllers have register based architecture which means that both the
operands for an operation are stored in a register and the result of the operation is
also stored in a register. Following figure shows a simple example performing
OR operation between two input registers and storing the value in Output
Register.
The CPU takes values from two input registers INPUT-1 and INPUT-2, performs
the logical operation and stores the value into the OUTPUT register. All this
happens in 1 execution cycle.
17
Some of the features of Atmega8 are:
Architecture of AVR
The AVR microcontrollers are based on the advanced RISC architecture. Within
one single clock cycle, AVR can take inputs from two general purpose registers
and put them to ALU for carrying out the requested operation, and transfer back
the result to an arbitrary register. The ALU can perform arithmetic as well as
logical operations over the inputs. We can see that AVR does not have any
register like accumulator as in 8051 family of microcontrollers; the operations can
be performed between any of the registers and can be stored in either of them.
18
AVR follows Harvard Architecture format.
Figure 3
Since AVR can perform single cycle execution, it means that AVR can execute 1
million instructions per second if cycle frequency is 1MHz. The higher is the
operating frequency of the controller, the higher will be its processing speed.
19
Figure 4
20
FEATURES OF ATMEGA8:
I/O Ports: 23 I/ line can be obtained from three ports; namely Port B, Port C and
Port D.
Timer/Counter: Three Internal Timers are available, two 8 bit, one 16 bit,
offering various operating modes and supporting internal or external clocking.
21
Analog Comparator: A comparator module is integrated in the IC that provides
comparison facility between two voltages connected to the two inputs of the
Analog comparator via External pins attached to the micro controller.
Pin Descriptions
GND: Ground.
Port B (PB7..PB0)/XTAL1/XTAL2/TOSC1/TOSC2
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected
for each bit). The Port B output buffers have symmetrical drive characteristics
with both high sink and source capability. As inputs, Port B pins that are
externally pulled low will source current if the pull-up resistors are activated. The
Port B pins are tri-stated when a reset condition becomes active,
even if the clock is not running. Depending on the clock selection fuse settings,
PB6 can be used as input to the inverting Oscillator amplifier and input to the
internal clock operating circuit.
Depending on the clock selection fuse settings, PB7 can be used as output from
the invertingOscillator amplifier.
If the Internal Calibrated RC Oscillator is used as chip clock source, PB7..6 is
used as TOSC2..1 input for the Asynchronous Timer/Counter2 if the AS2 bit in
ASSR is set.
22
Port C (PC5..PC0): Port C is an 7-bit bi-directional I/O port with internal pull-up
resistors (selected for each bit). The Port C output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port C pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port C pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
Port D (PD7..PD0): Port D is an 8-bit bi-directional I/O port with internal pull-up
resistors (selected for each bit). The Port D output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port D pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port D pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
RESET Reset input. A low level on this pin for longer than the minimum pulse
length will generate a reset, even if the clock is not running.
AVCC :AVCC is the supply voltage pin for the A/D Converter, Port C (3..0), and
ADC (7..6). It should be externally connected to VCC, even if the ADC is not
used. If the ADC is used, it should be connected to VCC through a low-pass filter.
Note that Port C (5..4) use digital supply voltage, VCC.
23
Dual Operational Amplifier
General Description
• The LM358 series consists of two independent high gain, internally frequency
compensated operational amplifiers. It can be operated from a single power
supply and also split power supplies.
FEATURES
• Internally frequency compensated for unity gain
• RoHS Compliance
APPLICATION
• Battery Charger
• Cordless Telephone
24
INTERNAL BLOCK DIAGRAM
Figure 5
Table 1
25
Table 2
26
Figure 6
Condition 1:
Anode is connected through a resistor to Vcc & the Cathode is connected to the
Microcontroller pin. So when the Port Pin is HIGH the LED is OFF & when the
Port Pin is LOW the LED is turned ON.
Condition 2:
Anode is connected to the ground & the Cathode is connected through the resistor
to the Microcontroller pin. So when the Port Pin is LOW the LED is OFF &
when the Port Pin is HIGH the LED is turned ON.
27
which indicates the output voltage the particular device is designed to provide (for
example, the 7805 has a 5 volt output, while the 7812 produces 12 volts). The
78xx lines are positive voltage regulators, meaning that they are designed to
produce a voltage that is positive relative to a common ground. There is a related
line of 79xx devices which are complementary negative voltage regulators. 78xx
and 79xx ICs can be used in combination to provide both positive and negative
supply voltages in the same circuit, if necessary.
78xx ICs have three terminals and are most commonly found in the TO220 form
factor, although smaller surface-mount and larger TO3 packages are also available
from some manufacturers. These devices typically support an input voltage which
can be anywhere from a couple of volts over the intended output voltage, up to a
maximum of 35 or 40 volts, and can typically provide up to around 1 or 1.5 amps
of current (though smaller or larger packages may have a lower or higher current
rating).
ARP 9600 IC
Features :
• Single-chip, high-quality voice recording & playback solution
- No external ICs required
- Minimum external components
• Non-volatile Flash memory technology
- No battery backup required
• User-Selectable messaging options
- Random access of multiple fixed-duration messages
- Sequential access of multiple variable-duration messages
• User-friendly, easy-to-use operation
- Programming & development systems not required
- Level-activated recording & edge-activated play back switches
• Low power consumption
28
- Operating current: 25 mA typical
- Standby current: 1 uA typical
- Automatic power-down
• Chip Enable pin for simple message expansion
General Description :
The APR9600 device offers true single-chip voice recording,non-volatile storage,
and playback capability for 40 to 60 seconds.The device supports both random
and sequential access of multiple messages.Sample rates are user-
selectable,allowing designers to customize their design for unique quality and
storage time needs.Integrated output amplifier,microphone amplifier, and AGC
circuits greatly simplify system design. the device is ideal for use in portable
voice recorders, toys, and many other consumer and industrial applications.
APLUS integrated achieves these high levels of storage capability by using its
proprietary analog/multilevel storage technology implemented in an advanced
Flash non-volatile memory process, where each memory cell can store 256
voltage levels.
This technology enables the APR9600 device to reproduce voice signals in their
natural form. It eliminates the need for encoding and compression, which often
introduce distortion.
29
Condenser MIC
BASIC DEFINITIONS
Condenser - Another term used for a capacitor: two plates separated by a fixed
distance capable of storing an electric charge.
Pascal (Pa); bar (1Pa = 10 u bars) - Unit of pressure. For microphone applications,
this unit refers to the pressure of sound on a microphone.
CLASSIFICATION OF MICROPHONES
Piezoceramic Microphone
Carbon Microphone
30
COMMON USAGES OF MICROPHONES
1. Telecommunication
31
COMMON SPECIFICATION TERMINOLOGY
Unit of Measure - There are two different, commonly used units of measure to
define the key parameters of Signal to Noise ratio (S/N Ratio) and Sensitivity.
One is "Pascal" and the other is "IJ bar" (micro bar). We use "Pascal" as the unit
of measure in all of our specifications. "Pascal" is currently the most commonly
accepted, however, "p bar" is still used. To convert from "IJ bar" to "Pascal,"
simply add 20dB. For example:-62dB(0dB=1 V/u bar) = -42dB(0dB= 1 V/pa).
(Careful, you are adding a positive number to a negative number)
3. Uni directional - The directional property that has the rear sensitivity relatively
weaker than the frontal sensitivity.
32
resistance with a corresponding change in sensitivity. To get the maximum output,
the load should be matched to the output resistance.
Signal to Noise Ratio - Signal to noise ratio is the ratio of the straight frontal
sensitivity of the microphone to the proper noise voltage. Proper noise is the noise
in the microphone which is not produced by the action of electromagnetic
induction, vibration or natural wind. It is the noise produced by the microphone
itself. This ratio gives an idea of how well the signal is detected by the
microphone. S (dB) = 20 log (VS/VN)Where: VS = Signal expressed in voltsVN
= Noise expressed in volts
VOLTAGE REDUCTION
This is the reduction in sensitivity with specified load when the supply voltage is
reduced from its nominal value. A lowering of the specified load resistance will
also reduce sensitivity.
INSTALLATION
To obtain the best results, avoid placing near reflective surfaces. If possible,
mount in soft rubber to insulate from vibration. Treat ECMs as static sensitive.
Use specified heat sinking when soldering to ECMs. Use as little heat as possible
for shortest time consistent with good joint. Avoid subjecting ECMs to high
temperature and humidity that can degrade performance.
33
RESISTORS:-
(V) Cost
Figure 7
(1) Fixed
Figure 8
For example, a resistor with bands of yellow, violet, red, and gold will
have first digit 4 (yellow in table below), second digit 7 (violet), followed by 2
(red) zeros: 4,700 ohms. Gold signifies that the tolerance is ±5%, so the real
resistance could lie anywhere between 4,465 and 4,935 ohms.
A useful mnemonic for remembering the first ten color codes matches the
first letter of the color code, by order of increasing magnitude is as follows:-
Example:-
35
Green-Blue-Brown-Black-Brown
o 561 Ω ± 1%
Red-Red-Orange-Gold
o 22,000 Ω ± 5%
Yellow-Violet-Brown-Gold
o 470 Ω ± 5%
Blue-Gray-Black-Silver
o 68 Ω ± 10% (this wide of a tolerance is now seldom seen)
Brown-Black-Brown
o 10 Ω ± 20% (this wide of a tolerance is now seldom seen)
Black
o zero Ω
36
Figure 9
37
Figure 10
Then common full rectifier circuit with four 1N4002 diodes. I think that i do not
need to explain how does this bridge work.
470uF capacitor has been connected between the output terminals of the bridge.
This capacitor is very important. Without this, there is a significant change in
power output. It increases the supply voltage to the rectifier and make smooth the
waveform. If you connect a LED to a microcontroller pin and supply power
without this cap most possibly you will see flickers. Other caps also do the same
work.
39
Finally about the regulator. Regulators are designed to supply required voltage
without fluctuations. That means we do not need to use regulators with DC power
supply. But most of us use these regulators. Why? We use them to reduce the
voltage to a desired value. Here we have used AC supply and the regulator does
both of those things. It supplies a constant voltage and reduces 9V to 5V.
This is a good time to explain how select a regulator from the market for this type
of project. Normally last digits of the regulator indicates the output voltage. Eg:
7805 : 5V, 7806 : 6V, 7809 : 9V. Regulators with wide range of voltages available
in the market. Normally input voltage should be 2V greater than the output
voltage. If you need to regulate negative voltage you can use 79XX series.
5V/12V Regulated DC Power Supply
Figure 12
A simple power supply circuit that includes each of these blocks is given in the
following diagram.
40
Bridge Rectifier
Figure 13
When the input connected to the left corner is negative (Fig. B), and the input
connected to the right corner is positive, current flows from the lower supply
terminal to the right along the red path to the output, and returns to the upper
supply terminal via the blue path.
In each case, the upper right output remains positive and lower right output
negative. Since this is true whether the input is AC or DC, this circuit not only
produces a DC output from an AC input, it can also provide what is sometimes
called "reverse polarity protection". That is, it permits normal functioning of DC-
powered equipment when batteries have been installed backwards, or when the
leads (wires) from a DC power source have been reversed, and protects the
equipment from potential damage caused by reverse polarity.
41
Smoothing
Most circuits will require 'smoothing' of the DC output of a rectifier, and this is a
simple matter since it involves only one capacitor, as shown in figure 1.
The output waveform in shows how smoothing works. During the first half of the
voltage peaks from the rectifier, when the voltage increases, the capacitor charges
up. Then, while the voltage decreases to zero in the second half of the peaks, the
capacitor releases its stored energy to keep the output voltage as constant as
possible. Such a capacitor is called a 'smoothing' or 'reservoir' capacitor when it is
used in this application.
Figure 14
42
Regulator
Voltage regulator ICs are available with fixed (typically 5, 6, 8, 9, 10, 12, 15, 18
and 24V) or variable output voltages. They are also rated by the maximum current
they can pass. Negative voltage regulators are available, mainly for use in dual
supplies. Most regulators include some automatic protection from excessive
current ('overload protection') and overheating ('thermal protection').
Figure 15
Many of the fixed voltage regulator ICs have 3 leads and look like power
transistors, such as the 7805 +5V 1A regulator shown on the right. They include a
hole for attaching a heat sink if necessary.
TRANSFORMER:-
TRANSFORMER
Definition: -
The transformer is a static electro-magnetic device that transforms one
alternating voltage (current) into another voltage (current). However, power
remains the same during the transformation. Transformers play a major role in
the transmission and distribution of ac power.
Principle: -
43
primary coil, a current flows in the primary coil producing magnetic flux in the
transformer core. This flux induces voltage in secondary coil.
Figure 16
Figure 17
Figure Step-Down
-Down Transformer
44
Transformers are classified as: -
1) Step up transformer
2) Step down transformer
a) Core & shell types: Transformer is simplest electrical machine, which consists of
windings on the laminated magnetic core. There are two possibilities of putting up
the windings on the core.
b) Step up and Step down: in these voltages transformation takes place according to
whether the primary is high voltage coil or a low voltage coil.
DIODE:-
DIODE
Figure 18
45
Figure 19
Figure Diode
Real diodes do not display such a perfect on-off directionality but have a more
complex non-linear electrical characteristic, which depends on the particular type
of diode technology. Diodes also have many other functions in which they are not
designed to operate in this on-off manner.
46
4.RESULTS AND
DISCUSSIONS
47
IMPLEMENTATION
1) P.C.B. DESIGNING
P.C.B. LAYOUT
The entire circuit can be easily assembled on a general purpose P.C.B. board
respectively. Layout of desired diagram and preparation is first and most
important operation in any printed circuit board manufacturing process. First of all
layout of component side is to be made in accordance with available components
dimensions. The following points are to be observed while forming the layout of
P.C.B.
3. The most important points are that the components layout is making proper
compromise with copper side circuit layout.
Printed circuit board (P.C.B.s) is used to avoid most of all the disadvantages of
conventional breadboard. These also avoid the use of thin wires for connecting the
components; they are small in size and efficient in performance.
First of all the actual size circuit layout is to be drawn on the copper side of the
copper clad board. Then enamel paint is applied on the tracks of connection with
the help of a shade brush. We have to apply the paints surrounding the point at
which the connection is to be made. It avoids the disconnection between them.
48
DRILLING
ETCHING
The removal of excess of copper on the plate apart from the printed circuit is
known as etching. From this process the copper clad board with printed circuit is
placed in the solution of FeCl with 3-4 drops of HCL in it and is kept so for about
10 to 15 minutes and is taken out when all the excess copper is removed from the
P.C.B. After etching, the P.C.B. is kept in clean water for about half an hour in
order to get P.C.B. away from acidic, field, which may cause poor performance of
the circuit. After the P.C.B. has been thoroughly washed, paint is removed by soft
piece of cloth dipped I thinner or turbine. Then P.C.B. is checked as per the
layout, now the P.C.B. is ready for use.
SOLDERING
Soldering is the process of joining two metallic conductor the joint where two
metal conductors are to be join or fused is heated with a device called soldering
iron and then as allow of tin and lead called solder is applied which melts and
converse the joint. The solder cools and solidifies quickly to ensure is good and
durable connection between the jointed metal converting the joint solder also
present oxidation.
• Mass soldering.
49
CIRCUIT DIAGRAM
Figure 20
50
LAYOUT
Figure 21
51
5. CONCLUSION AND
FUTURE SCOPE
52
CONCLUSION AND FUTURE SCOPE
Chip (to play a pre- recorded message to alert users of the library to increasing
sound level), Power Amplifier (amplifies the output of the play and record chip).
The Sound Level Meter measures sound level in decibels and can be used for
activities such as environmental noise studies, sound level comparisons,
investigating room acoustics, sound isolation modeling, sound propagation
modeling etc. It can be applied in libraries, hospitals, laboratories, lecture rooms,
meditation rooms amongst many others.
53
6. REFRENCES
54
REFERENCES
55