Professional Documents
Culture Documents
for
auto
tracking
of
the
speaker
is
needed.
With
1.1
Aim and objectives
The aims of this project is to design and construction a
camera tracking of a speaker automatically
To design and construction a devices which makes use of
sounds source to capture the location of a speaker.
To implement a technical way of easing video camera
shooting of a speaker in a conference room.
Objectives includes:
1.2
passed
different
software
The
second
important
applications
are
source
post
processing
methods
can
enhance
the
results
Large line arrays for low frequencies are towed. The underwater
sound application is described by Urick (1983) [10]. Further
applications are used in radio astronomy.
Most of the current papers on beam forming are on studies for
enhancing wanted sound in the environment of unwanted sound
and for antennas for mobile communication. The development of
the acoustic beam forming method is described in the following
paper. The improvement of the hardware over the years made it
possible to increase the number of microphones, the sampling
frequency, and the dynamic range of the analysis. The geometry
of the microphone distribution was optimized for a large
frequency range and low side lobes. The increase of the
computing power enabled the introduction of new data reduction
methods. Beam forming is based on an averaging of sound
signals from different receivers. The text book on array signal
processing by Johnson & Dudgeon [11] shows the example of a
listening device used by the French forces in World War I to detect
approaching aircraft. The array consisted of two sub arrays with
six acoustic sensors in form of inverted horns that were positioned
on a hexagon. The sensors of each sub array were fed into one
acoustic wave guide.
The two ducts of equal length were then routed to the ears of a
listening person. The signal arriving at the ear was an average of
six sensors comparable to a modern ring array with six
microphones. The two sub arrays were separated by about two
meters, which enhanced the natural directional localization
7
When it is powered the devices waits for signal from either of the
sensors (Condense Mic) for signal inputs [12]. So when it receives
signal form one of the microphone it directs the movement of the
camera to that particular location. This was archived using a
microcontroller (Atmel89s52) [5] to control the drivers which
bidirectional control the movement of the motor.
From the design each microphone detects each position, and this
signals the microcontroller to switch on and off the Mosfet driver
to be able to rotate the image left and right.
3.2 Concept and Analysis of operations
This design was gotten from an already existing system, which
from there we picked some information that we developed it to
suit the present requirements. When the devices is powered, the
condense microphone responds to environmental noises which
when receives it feed to the microcontroller to locate the exact
position of the speaker.
10
bidirectional
3.5 Design Program flow chart
Start
Decision
Process
Compare A & B if equal give C or else end Program
Answer = Rotate
left
Else go right
Stop
12
13
C7
1000u
BRIDGE
TR1
TRSAT2P2S
R13
U1
SPEAKER
LS2
SPEAKER
LS3
SPEAKER
OPAMP
U6
OPAMP
U7
21
22
23
24
25
26
27
28
10
11
12
13
14
15
16
17
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
P3.0/RXD
P3.1/TXD
P3.2/INT0
P3.3/INT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD
XTAL1
XTAL2
1
18
100R
D1
PSEN
ALE
EA
D6
1N4148
7805
3
RST
+12v
1N4148
U4
CRYSTAL
VO
VI
GND
U5
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
X1
19
R9
C1
1k
10u
29
30
31
Q2
R1
10u
10k
D5
C3
R10
1k
R4
IRFZ44N
IRFZ44N
10kD3
10u
1N4148
P1.0/T2
P1.1/T2EX
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
C2
Q1
LS1
39
38
37
36
35
34
33
32
1
2
3
4
5
6
7
8
1N4148
U2
1
R12
AT89C52
R11
Q3
R2
3
K
PC817
U3
Q4
100R
E
10kD2
10k
1N4148
R3
IRFZ44N
IRFZ44N
E
PC817
10kD4
1N4148
OPAMP
R7
Q5
2N3904
10k
D7
LED-RED
R5
1k
Q6
R8
10k
2N3904
R6
1k
The choice of
kind
of
diode
in
modern
circuit
design
is
the
16
Fig 4.2 Diode operation: (a) Current flow is permitted; the diode is
forward biased. (b) Current flow is prohibited; the diode is
reversed biased.
When the polarity of the battery is such that electrons are allowed
to flow through the diode, the diode is said to be forward-biased.
Conversely, when the battery is backward and the diode blocks
current, the diode is said to be reverse-biased. A diode may be
thought of as like a switch: closed when forward-biased and
open when reverse-biased.
Oddly enough, the direction of the diode symbol's arrowhead
points against the direction of electron flow. This is because the
diode symbol was invented by engineers, who predominantly use
conventional flow notation in their schematics, showing current as
17
a flow of charge from the positive (+) side of the voltage source
to
the
negative
(-).
This
convention
holds
true
for
all
Fig 4.3 Hydraulic check valve analogy: (a) Electron current flow
permitted. (b) Current flow prohibited.
Check valves are essentially pressure-operated devices: they
open and allow flow if the pressure across them is of the correct
polarity to open the gate (in the analogy shown, greater fluid
pressure on the right than on the left). If the pressure is of the
opposite polarity, the pressure difference across the check
valve will close and hold the gate so that no flow occurs.
18
19
21
22
The term kT/q describes the voltage produced within the P-N
junction due to the action of temperature, and is called the
thermal voltage, or Vt of the junction. At room temperature, this is
about 26 millivolts. Knowing this, and assuming a nonideality
coefficient of 1, we may simplify the diode equation and re-write it
as such:
Fig 4.7 Diode curve: showing knee at 0.7 V forward biases for Si,
and reverse breakdown.
Typically, the PIV rating of a generic rectifier diode is at least 50
volts at room temperature. Diodes with PIV ratings in the many
thousands of volts are available for modest prices.
Types of diode
There are many different types of diodes that are available for use
in electronics design. Different semiconductor diode types can be
used to perform different functions as a result of the properties of
these different diode types. Semiconductor diodes can be used for
many applications. The basic application is obviously to rectify
waveforms.
Backward diode:
has the standard P type and N-type areas, but between them
there is an area of intrinsic semiconductor which has no doping.
The area of the intrinsic semiconductor has the effect of
increasing the area of the depletion region which can be useful for
switching applications as well as for use in photodiodes, etc.
PN Junction:
27
reverse
breakdown
are
apparent
in
these
diodes:
Zener
domestic
equipment
are
single-phase,
but
three-phase
transformer
without
center
tap),
are
needed. [3]
Single
back-to-back
(cathode-to-cathode
or
anode-to-anode,
Fig 4.11: Full-wave rectifier, with vacuum tube having two anodes.
31
32
Diode Bridge
voltage
supply
to
building
confident
that
output
reaches
35
36
37
38
39
RST
Reset input. A high on this pin for two machine cycles while the
oscillator is running resets the device.
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the
program pulse input (PROG) during Flash programming. In normal
operation ALE is emitted at a constant rate of 1/6 the oscillator
frequency, and may be used for external timing or clocking
purposes. Note, however, that one ALE pulse is skipped during
each access to external Data Memory. If desired, ALE operation
can be disabled by setting bit 0 of SFR location 8EH. With the bit
set, ALE is active only during a MOVX or MOVC instruction.
Otherwise, the pin is weakly pulled high. Setting the ALE-disable
bit has no effect if the microcontroller is in external execution
mode.
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
41
k
1 k = 1000
and
M .
1 M = 1000000 .
can
be
extended
R=
R1 R2
more
resistors:
for
R = R1 + R2 + R3 + R4 + ...
Note that the combined resistance in series will always be greater
than any of the individual resistances.
Combined
resistance
of
43
Fig
4.20
Resistors
connected
in parallel
When
resistors
are
connected
in
parallel
their
combined
Black
0
Brow
n
1
Red
2
Orang
e
3
Yellow
4
Gree
Blu
Viole Gra
White
9
The mnemonic
Bad Boys Ravish Only Young Girls But Violet Gives Willingly
Black is also easy to remember as zero because of the
nothingness common to both.
45
46
47
the
design
of
the
circuit
the
microcontroller
was
process; the keil C51 compiler was used to translate from the
source code into the object code. The SDCC was employed to link
the program while the PACKIHX did the conversion from binary to
hex.
Choice of Programming Language
My implementation programming language for this project is ANSI
C programming language, reason being the fact that it combines
the elements of high level languages with the functionalism of
assembly language. C allows the manipulation of bits, bytes and
addresses. Also C codes are portable which means that it is
possible to adapt software written for one type of computer to
another.
Nevertheless, a special feature of ANSI C is that it allows the
direct manipulation of bits, bytes, words and pointers. This suits it
to
system-level
programming,
where
these
operations
are
common.
49
#define lcd P2
sbit en = P3^6;
sbit rs = P3^7;
unsigned int a,b;
{
unsigned m,n ;
for(m=0;m<time;m++)
for(n=0;n<time;n++);
}
51
move_left(int line){
int c;
for (c = 0; c < line; c++){
lcd = 0x18;
rs = 0;
en = 1;
msdelay(100);
en = 0;
52
return 0;}
move_right(int line){
int c;
for (c = 0; c < line; c++){
lcd = 0x1c;
rs = 0;
en = 1;
msdelay(100);
en = 0;
}
return 0;}
TR1 = 1;
return 0;}
uartreceiver(unsigned line){
int x;
for (x = 0; x < line; x++){
while ( RI==0) ; //wait for transmit
b
= SBUF ;
a = b;
RI=0;
}
}
msdelay(100);
}
return 0;
}
int main(){
uartint() ;
lcd_initial(5,lcdcode);
lcd_data(16,"
Welcome!!
msdelay(80);
move_left(3);
msdelay(80);
move_right(3);
55
");
msdelay(80);
move_left(3);
msdelay(80);
move_right(3);
msdelay(300);
lcd_initial(5,lcdcode);
lcd_data(16,"Scan Your Thumb");
msdelay(300);
while (1){
uartsend(2,FPMint);
msdelay(50);
uartsend(4,FPMaddr);
msdelay(50);
uartsend(4,FPMpid);
msdelay(50);
uartsend(1,FPMlen);
msdelay(50);
uartsend(8,FPMdata);
msdelay(50);
56
uartsend(1,FPMck);
msdelay(50);
while(1){
uartreceiver(1);
if (b == 0x00){
lcd_initial(5,lcdcode);
lcd_data(11,"CE complete");
}
else{ lcd_initial(5,lcdcode);
lcd_data(12,"Error Signal");}}
}
}
4.6.4 Compilation of the source code (Language-assemblyhexadecimal or machine code)
After writing the program in the editors environment, the
software was use to compiler the entire program to generate a
hex file which will be burn into the microcontroller.
4.6.7 Burning of the hex file into the microcontrollers
In burning the hex into the microcontroller, we have to use an in
system programmer known as ISP programmer which will now
57
The final test was undergone for proper function and design
usage.
59
partial
contact
within
the
circuit
board,
between
components and also with the wiring. This was actually one of the
most challenging aspects of the circuit implementation phase.
Due to this fact, there was a lot of soldering and de-soldering to
ensure that the circuit was well implemented.
5.3 Suggestion for further design
It will be more appreciated if the system is designed to a
password in cooperated system so to help reduce stress if the
system finger scan malfunction
5.4 Recommendation
a. Avoid water spillage onto of the design.
b. Supply the necessary voltage to the system by plugin its
power mains to 200v to 230v ac.
c. Ensure proper placement before running the design.
5.5 Conclusion
Going through the planning, flow process, design and software
implementation the system had really been a tough one; but on
61
62
Appendixes
SYSTEM COMPONENTS LIST
1 Vero Board
2 Connection Wire
3 16x2 LCD display
4 Soldering Iron
5 240 / 15v, 2000 mA Transformer
6 Rectifier Diodes
7 2200uf /25V Capacitor
8 10uf 16V Capacitor
9 30pf capacitor
10Resistors
117805 Voltage Regulator
1212 MHz crystal oscillator
13AT89S52 Micro controller
14IRF3205 H-BRIDGE Driver
15IC Base Socket (40 pins)
16IC Base Socket (16 pins)
1. 29. Transistors
List of Tables
List of Figures.
63