




已阅读5页,还剩29页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
vehicular source localizationbyjason chingclayton chanmichael marsenior design projectuniversity of illinois at urbana champaigndepartment of electrical and computer engineeringfall 2004ta: mark wiegertapril 29th, 2004project no. 35abstractthis following paper describes the complete system with documentation, graphs and charts of the design and implementation of a vehicular sound localization system. the system will be able to distinguish where the sound is coming from and move accordingly towards the sound signal. it was also implemented with an object detection system to enhance its robustness. the sound localization system consisted of a two 3.5mm stereo jack microphones that were fed into the ti-54x dsp board that would determine the location of the sound signal by calculating the delay in the fourier domain in real time by implementing ffts. the obstacle detection system was made up of several ir sensors placed around the perimeter of the car. all systems were fed into the basicx microcontroller which than directed the car. in the end we were successful in our project, it was able to determine and move towards a sound signal with a maximum success rate at around 6 feet.table of contents1.introduction11.1 purpose and motivation11.2 block diagram11.3 specifications22.design procedure32.1 microphones signal amplification32.2 sound-source localization32.3 obstacle detection system32.4 stepper motor32.5 basicx microcontroller33.design details43.1 microphones43.2 sound-source localization53.3 interface between dsp board and basicx microcontroller73.4 obstacle detection with infrared sensors73.5 basicx microcontroller83.6 stepper motor94.design verification124.1 tdoa algorithm simulation in matlab124.2 tdoa algorithm testing and verification124.3 microphone response134.4 basicx testing154.5 car testing154.6 total system testing165. cost175.1 parts175.2 labor176. conclusions186.1 accomplishments186.2 challenges186.3 future work/alternatives18appendixappendix a: tdoa.m19appendix b: tdoa.c20appendix c: basic code for obstacle detection system23appendix d: basic code for proper control of car25appendix e: wiring diagram of car27appendix f: basic code for stepper motors29references31301. introduction1.1 purpose and motivationour team consisted of engineers that were very familiar in a wide range of electrical engineering sub-disciplines. we found that it would be most beneficial to undertake a project that would utilize each group members engineering focus. backgrounds consisted of digital signal processing (dsp), hardware design, sensors, power and control systems. we developed a project that was able to expose the group to their respective fields of interest: viz. vehicular sound localization.our main goal would be to design and implement a system that would be able to distinguish where a sound source was originating from and progress towards that sound accordingly. this would involve a strong knowledge of algorithmic implementation using a digital signal processor. also, hardware and circuit design were needed to construct microphones and implement control.with that said, there are many possible “real world” applications behind source-localization. for example, steering antennas in the direction of an incoming signal to maximize snr and minimize interference. source localization has many applications for noise and interference cancellation within audio systems as well. our project is unique in that source localization is being extended to vehicular control. this has a plethora of possibilities in terms of marketing; any where from an automated security systems to a childs toy.1.2 block diagramfigure 1.1 shows a very general layout of our proposed design.sound-source localization (t1-54x dsp)stepper motorir sensorsbasicxmicrocontrollerbridge rectifiercapacitor filteramplifierdemodulatorfigure 1.1. finalized block diagram of system1. microphones / amplifier - a mechanical vibrating source, preferably from a speaker that will generate the signal the car should follow.2. sound detection system a texas instruments (ti) 54x digital signal processor will digitize the signals from two highly sensitive microphones and perform the necessary processing in order to determine where the sound originated from. this information is then relayed to the microprocessor.3. obstacle detection system we plan to use a series of ir sensors placed on the perimeter of the car to alert it of any obstacles in its way.4. stepper motor will be used to implement the actuation of the vehicle towards the sound source.5. demodulator the demodulator converts the ac signal output from the dsp to a dc component proportional to the amplitude of that ac signal.6. microcontroller the processing unit that is central to all other sub systems. the car is controlled based on information sent from each of these “so-called” sub systems.1.3 specifications the sound-localizing vehicle should be able to distinguish the direction of the sound source in room with minimal interference (from either ambient noise introduced from the environment or thermal noise introduced in the system) and progress toward that signal in a controlled manner. computations to resolve direction will be done real-time in order to make the car responsive as possible. we also specify that the direction finding mechanism within our vehicle to have 360 of resolution. that is, the vehicle will be able to arrive at its destination regardless of what angle the sound signal is arriving from.the distance to which the car will be able to respond will depend on the sensitivity of the microphones. we want to ensure that the vehicle will perform over a range of distances, initially this range was within a radius of 1m. the distance to which the car will respond to obstacles will also depend on the placement and focusing of the ir sensors. most of the time spent on these two parts of the project will consist mostly of optimization and will be discussed in later sections. summary of specifications performs over an adequate range (initial proposition: 1m radius) digital signal processing done in real time 360 of direction finding resolution able to avoid obstacles within a radial range of 10cm2. design procedure2.1 microphone signal amplificationthe purpose behind the amplification of the microphones will be to boost the sensitivity and increase the robustness of the system. ideally, the signals the microphones output should have little noise as to not to interfere with the actual signal and thus a compromise between contrast and the actual signal must be decided upon in order to maximize robustness of the system. 2.2 sound-source localizationthe purpose of the sound source localization component is to determine the direction from which a single acoustic source originated from. there are several methods of implementing such a system. two specific methods were considered for our design. the first method considered was high-resolution direction finding as described in 1. the second method considered (the method used in our final design) utilized the time delay of arrival (tdoa) algorithm as discussed in 1. in general, the algorithm estimates the delay between two digitized sources.2.3 obstacle detection systemthis system would consist of a series of ir sensors placed around the perimeter of the car. the basic principle behind the ir sensors uses the property of energy reflection of ir waves off of certain surfaces. the sensors consists will consist of an emitter that will emit ir energy and a detector that will receive any ir energy reflected back. the detector is modeled after a transistor except the gate voltage increases only when ir energy is detected, that is the transistor turns “on” when ir energy is detected and lets current flow through it. 2.4 stepper motorin order to move the car to the sound source, at least two stepper motors would be required in order to turn the two rear wheels of a car. stepper motors provide accurate positional control for systems and are simple to control. in addition, stepper motors can be used for speed control. the parts shop actually made us a car that encompassed two stepper motors for the rear wheels. the parts shop also made us a ball pivot for the front of the car. all the logic to operate the motors effectively was already completed for the project, and the operation of the stepper motors was through a 6-pin pinout connection for each motor.2.5 basicx microcontrollerthe basicx microcontroller is a 24 pin programmable microcontroller that consists of 16 general logic i/o pins, 8 of which can be used as a 10-bit analog to digital converter. the basicx is able to communicate with the computer through a serial port which also uses it to download programs. it is capable of multi-tasking and floating point math. it is powered by a 5 v power supply across pins 21 (+) and 4 (-) and has a combined maximum current of 80 ma.3. design details3.1 microphonesthe microphones were one of the key components of the sound localization system due to the fact that the sensitivity of the microphones would determine the robustness and responsiveness of the sound detection. this was because the input into the ti-54x had to be large enough for the dsp to be able to detect process the data accordingly without much interference.the microphones used in the system were standard 3.5mm jack microphones, similar to the ones used for computers. they are an electret type microphone-that is the microphone element senses mechanical vibrations as it hits it by inducing a change in voltage across two capacitative plates. this would mean that the plates had to be powered (charged) in order for them to work properly. the 3.5mm jacks consist of three bands corresponding to three different leads. the top conductive band (the tip) was the signal from the microphone. the middle conductive band was for the power and the last band located at the base of the jack was designated to be ground. the schematic diagram of the mount used for the pcb board is shown below in figure 3.1 along with a picture of a 3.5mm jack and of the actual mount. initial testing of the microphones showed that the microphones themselves were not able to give enough of a signal into the dsp as expected. signal5vgroundfigure 3.1. microphone setupit was decided upon that national semiconductors lm386 amplifier chip would be ideal for our system. the lm386 is a low-voltage power audio amplifier that uses only 5v so a battery can be used for power and is able to perform gains of 20 to 200. this corresponds to a db gain of 26 db and 46 db respectively. below in figure 3.2 is the circuit diagram used in our circuit given by national semiconductors for a gain of 200.figure 3.2. circuit diagram of audio amplifierreference /ds/lm/lm386.pdfa printed circuit board was also made in order to maintain modularity of the microphones as well as to isolate the power source from each of them (see testing and verification 4.1.2 for the reason). the picture of the final amplification circuit is shown below in figure 3.3.figure 3.3. final amplification circuit on pcb 3.2 sound-source localizationas mentioned previously, the sound source localization component of our design utilizes the tdoa algorithm which is thoroughly discussed in 1. two analog audio inputs are first converted into two digital signals by the ti54x dsp board. essentially, we want to estimate the delay (which can be positive or negative as we will later discuss) between each digital signal. from this delay, we can determine if the audio source is either to the left or right of the car. we define the microphone signals in equations 1 and 2 respectively. (1) (2)here and are the attenuation factors experienced from sound propagation, while x(n) is the sound signal as seen from the source. also and are the delays experienced from the source to microphones i and k respectively. furthermore, we define the delay between the digitized inputs themselves in equation 3. (3)from the estimated delay d, we can determine which microphone received the signal first and therefore which side (right or left) the source originated from. more specifically, if d is positive, microphone i received the signal before microphone k meaning the source is closer to microphone i. likewise, if d is negative, microphone k is closer to the source. speakerrlfrontfigure 3.4. example of sound path from a given sound sourcethe tdoa algorithm, as mentioned earlier, essentially computes the estimated delay d. for the algorithm we will assume that the source is approximately wss. with this assumption, the peak cross-correlation function will be maximized at n = d. to determine the cross-correlation function, we will process our data in 1024 sample-blocks. as seen in equation 4, is a simple fourier based method of determining the cross-correlation of two signals (see appendix a for a complete proof). as we will later discuss, our estimated delay d can be calculated using , the value of n that maximizes our cross-correlation function. (4) (5)since the computation of the cross correlation utilizes ffts, it will essentially be “circular” (analogous to circular convolution). in other words, the delay d is equal to for samples in the range 1,512, otherwise (for the range 513, 1024) d is equal to - 1024. with the computed value we can essentially decide on which direction to turn. one of the specifications for the sound localization component of this project was 360 of resolution. that is, the vehicle will be able to maneuver toward the source regardless of the angle it originated from. for that reason, we adjusted the car either left or right based on the value of : left if , right if ). we could have easily estimated an approximate angle that the sound arrived at using . however, this would limit the cars direction resolution to 180. (6) (7)as seen in equation 6, the delay (in seconds) experienced between each microphone is a function of the angle of arrival and the spacing between the microphone x (meters). solving for we get the expression seen in equation 7. the delay can be computed from through normalization of the sampling rate: 44.1 khz. the inherent resolution of 180 can be clearly seen if considering the case where the sound source is directly behind the vehicle. in this case, the angle of arrival would be 180 which yields the same value of for an angle of 0. this clearly yields a conflict since the vehicle would be traveling in the complete opposite direction of the source. of course, this direction ambiguity of 180 can be neatly resolved by adding additional microphone elements at the front and rear of the vehicle. figure 3.5. sound arriving from either left or right gives vehicle 360 of resolutionhowever, due to the limited amount of input channels on the dsp board as well as time constraints, we chose a different approach: viz. rotating either left or right by fixed amounts and adjusting as the car progressed. as seen in figure 1, through multiple acquisition periods and the adjusting the direction of the vehicle (rotating it), the vehicle will ultimately end up at the source location.3.3 interface between dsp board and basicx microcontrollerone of the main concerns in our design was the difficulty of relaying information from the dsp board to the basicx microcontroller. without digital io pins on the dsp board, there were only two possibilities to consider for interfacing: via serial port and via analog output channel. after little success with serial port communication (as digital communication would be preferable), we decided to use one of the 6 ac coupled output channels on the dsp board. each output is ac coupled, meaning that signals, at the a/d converter, are offset such that the signal has no dc component. therefore, we could not simply synthesize a dc signal, namely 0v or 5v dc, to send to a digital io pin on the basicx. instead, we used a modulation technique, when synthesizing an output symbol at the dsp.modulation amplitude shift keying, a simple yet effective digital modulation scheme, was implemented on the dsp end. we basically want to relay three symbols over to the basicx: right, left, or stop. this can be achieved by sending the signal represented in equation 6. (5)the amplitude takes on different values for each message symbol (in this case, three symbols for left, right and stop). like any other digital modulation scheme, symbols can be represented with a constellation as depicted in figure 3.6. figure 3.6. signal constellation of ask schemedemodulation at the basicx end, we want to receive a dc value proportional to the amplitude of the modulated signal synthesized by the dsp board. to
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025技术授权及服务合同
- 2025维修保养服务合同
- 2025湖南医药行业劳动合同
- 天然气净化操作工质量管控考核试卷及答案
- 重庆考安全员试题题库及答案解析
- 社区护理副高考试题库及答案解析
- 脑科护理考题题库及答案解析
- 数控型材专用切割机操作工技能比武考核试卷及答案
- 环境噪声与振动监测员安全规范考核试卷及答案
- 办公室安全培训考核试题及答案解析
- 专项项目贡献证明书与业绩认可函(8篇)
- 2025年广东省广州市中考二模英语试题(含答案)
- 消防员心理测试题库及答案解析
- 2025小升初租房合同模板
- 放射科造影剂过敏反应应急处理预案
- 《大嘴巴纸玩偶》名师课件
- 2025年上海市高考英语热点复习:阅读理解说明文
- 国家管网集团合同范本
- 中医全科学科
- Unit 1 Teenage life单词变形-学生背诵与默写清单-2024-2025学年高中英语人教版(2019)必修第一册
- 铁路技术规章:018铁路军事运输管理办法
评论
0/150
提交评论