




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































The device is what we are making is small scale of automatic tracking system to find out the position of an object. Automatic object tracking is an important tool that will reduce the cost of producing mass media. Mass media technology has been continuously evolving in the past dew decades, but production expenses have been increasing. For example, consider how many cameramen work in a single sports game and how much each cameraman has to be paid. If we could shoot good video with fewer cameramen, we could reduce the cost. Imagine only one cameraman in a baseball stadium, and at the push of a button this cameraman can select which player he wants to focus on. An automatic moving object tracking camera has many other possible applications, such as baby monitors, security systems, and motion pictures. Our project will discuss the design and implementation of an object tracking camera.
1. Introduction Our project title is Automatic tracking system. We came up with this idea because of its applicability to our daily lives. A broadcasting system puts a lot of money and effort into providing high quality views. For example, there are more than ten cameras operating in a field to catch dynamic scenes in a sports game. In spite of these efforts and costs, viewers might feel that they miss exciting scenes because of improper camera angles. Moreover, when someone wants to record a special event, such as a wedding, birthday party, or children’s soccer game, he or she may have difficulty covering the event and following people with one camera. We want to solve these problems with our engineering knowledge. We also found that we can fully use each group members’ academic backgrounds, which consists of a wide range of electrical engineering fields, such as digital signal processing, circuit design, hardware design, and motor control systems, to make our automatic tracking system. 1.1 Purpose Our main goal is to design and implement a system that can track a moving object, which has an ID number generator. 1.2 Benefit Reduce cost: Eliminate the need for cameramen operating extra cameras over the field. Reduce the cost of equipment (using fewer cameras). Quicker response: Respond to moving objects immediately. Provide a better quality view of sports games. Potentials: Great marketability: baby monitor, shooting a dangerous movie scene, etc. 1.3 Project Function We attach a 20 kHz sound generator to a moving object. The sound signal is sent to two receivers around the sound source for elevation and azimuth detection. The received signal from the microphone is amplified and input to a DSP TI54X. The DSP TI54X filters out all signals except for the 20 kHz wave and, thus, it finds where the 20 kHz signal comes from. As soon as the signal is detected, the camera, which is connected to the DSP TI54X and stepper motor, is able to pinpoint and follow the moving object. If we have more than one moving object, we can set each moving object with different frequencies. Then, we can simply change the receiver frequency to match what we are aiming for.
1.3.3 Block Diagram Microphone # 20 kHz Sound signal Microphone # Signal Signal D S P # (TI 54x) Left or Right
(TI 54x) Up or Down Digital Camcorder Stepper Motor Control Box (PWM, Two Stepper Motors)
2. Design Procedure 2.1. 20 kHz Frequency Generator Basically, we can put any frequency on the moving object as long as it is above hearing range and below 22.5 kHz, which is the maximum acceptable frequency of the DSP TI-54X. We decide to use a MAX038CPP to generate a 20 kHz sine wave because it is very important to have a proper sine wave. If it is distorted even a little bit, it will cause an error when the DSP TI-54X tries to determine where the signal comes from after sampling. We will build an amplifier since output of the frequency needs a certain level of voltage to cover a large area. 2.2. Motor Control System 2.2.1 Stepper Motor A stepper motor has a rotor and stator like most other motors. This is how a stepper motor works. The rotating shaft with a permanent magnet attached is called the rotor. The stationary housing containing the coil-wound poles is called the stator. With a unipolar motor, the current only flows in one direction in the windings of the coils. In a stepper motor, the permanent magnet lies North - South along the shaft. It is encased in two "stacks," each with many teeth around the rim. The teeth on the South stack are out of phase with the teeth on the North stack by half the gap between teeth. This means that at the same time that the teeth on the North stack are being attracted by and thus lining up with the teeth on the currently magnetized pole of the stator, the teeth on the South stack are being repelled and thus lining up with the gaps between the teeth on that pole. 2.2.2 ULN2003 Driver ULN2003 contains high voltage and high current Darlington arrays. Logic circuits use low voltage and low current. ULN2003 boosts low voltage and low current TTL signals to be high enough to control a motor. 2.3. Microphone Scanners In this project, we choose to use an omni-directional carbon microphone. It will be the receiver. 2.4. Localization system (DSP TI-54X) The purpose of the localization system is to determine the location of a frequency source, namely a speaker installs on a moving object. We used a TI-54X DSP board to control the entire system. It works with a 44.1 kHz sampling frequency. It has two input and six output channels with AC coupling. It will also generate pulses to move the stepper motors. There are several methods of implementing such a system. Two specific methods were
Output of 20 kHz sine wave Voltage Amplifier We plan to cover a large area, but 2Vpp was too small to stimulate the microphones. Thus, we need a voltage amplifier. We use a non-inverting amplifier with a gain of 6. Since, Vout is equal
to Vin*(R2/R1), we set R2/R1 to be 6. R The Output after Amplifier 3.2. Motor Control System The signal receiver is designed like radar. A scanner microphone is mounted on a motor and is rotated back and forth. During the rotation, the scanner microphone gathers data at each step. For this process, we use four stepper motors, a microphone, and TTL logic gates. 3.2.1 Stepper Motor We need to control the motors to rotate with exact angles, so we choose stepper motors. In the stepper motor that we use, with 50 teeth round the edge of the rotor and 4 coils excited individually in turn, the stepper motor takes 200 steps per complete revolution. The spacing between the teeth is 360° / 50 = 7.2°. When the teeth on the rotor are aligned with the teeth on the stator pole of the currently excited coil, they are misaligned by a quarter of that angle with
Step Sequence(wire1,2,3,4) 1 (1,0,0,0) 2 (0,1,0,0) 3 (0,0,1,0) 4 (0,0,0,1) Two-coil excitation Step Sequence(wire1,2,3,4) 1 (1,1,0,0) 2 (0,1,1,0)
The stepper motor can also have half step rotation. Step Sequence(wire1,2,3,4) 1 (1,0,0,0) 2 (1,1,0,0) 3 (0,1,0,0) 4 (0,1,1,0)
dc stepper motor, we need to change from +12v dc to +5.1v dc. When input sequence is 1, +5v dc, the output becomes 0. When input sequence is 0, the output becomes 1, the voltage from VDD (pin9). Each driver has this schematic. At the first time, we don’t connect a zener diode between the power supply and V (^) DD (Pin 9) on the chip. But TTL, what generate sequence, suddenly stop. We find the reason to absorb reverse EMF from the magnetic field collapsing when motor coils are switched off. (http://www.cs.uiowa.edu/~jones/step/) 3.2.3 Motor Sequence Controller We make two different type of motor sequence controller. One is moving 108˚, and another is moving172.8˚. Because Azimuth decision needs to cover wide angle, 108˚controller is used for
elevation decision, and 172.8˚ controller is used for azimuth decision. Let’s look at the motor sequence controller schematic in page 29. There are two 4-bit counters, one shift register, and a few logic gates. Clock signal of Counter1 is from the shift register. When the clock is rising edge, Counter1 is increased by 1. When Counter1 counts 1111 2 , 15, Counter1 resets and Counter2 receives a clock signal. The last bit of Counter 2 is changed by every clock signal from Counter1. The last bit of Counter2 is connected to direction decision pin of the shift register. Therefore, during Counter1 counts 15, direction of shift register is not changed. The shift register initially sets 1000. The initial value is shifted by a clock signal from DSP box, and the shift direction is decided by the signal from Counter2. The 4-bit data, 1000, 0100, 0010, or 0001 go to ULN2003, stepper motor driver. When a signal 1 is popped left or right from 4-bit data of the shift register, the clock signal of Counter1 is changed. Therefore, the shift register has 4 steps, Counter1 increases by every 4 steps, and Counter increases by every 15 counts, and change the direction. The stepper motor has 1.8˚/step. Elevation decision scanner rotates 108˚. 4steps × 15counts × 1.8˚ = 108˚ rotation The only difference between Elevation and Azimuth decision is Counter1 and Counter2 parts. In the Azimuth decision, Count1 counts 1100 2 , 12, Counter1 resets and Counter2 receives a clock signal. The last bit of Counter 2 is changed by every clock signal from Counter1. The
Parabola gathers sounds to one point, such as parabola mirror gather light to one point. We attach a parabola to the end of the pipe and put the microphone facing to the parabola. For the result, the scanner microphone can get enough magnitude of sound. The gathered data from scanner microphone go to an amplifier, and then amplified data go to a DSP box, TI-54x. 3.4. Localization system (DSP TI-54X) As previously mentioned, the Sound Localization system of our design utilizes the FFT method discussed in the design procedure. First, two analog audio inputs are amplified by two audio amplifiers. The amplified sound is sampled by the TI54x DSP board. The characteristics of DSP board are listed. Sampling frequency = 44.1 kHz Ts (sampling period) = 1 / 44.1 kHz = 22.68 x 10e-6 sec Two-input & Six-output channels Sampling frequency : 44.1 kHz
AC coupled
+