Pages

Wednesday, January 21, 2015

Real Time Sound Source Localization


Introduction

Humans usually are capable of perception theoretically the position of sound source in front of him using only two ears with an accuracy of ± 10 degree accuracy, and ± 15 degree accuracy in case the source is behind him. And that the time difference or phase difference of the sound source that each microphone detects are analyzed and the direction of sound source are obtained.

In core correlation methods the microphone outputs are cross-core related and consider the time that corresponds to the maximum peak in the output as estimated time delay between the microphones. Most popular method technique for Time Delay Estimation (TDE) is to add a weighing function to increase the accuracy by making the peaks sharper. In generalized cross correlation has an advantage of peak distinct at low SNR.

There for I used generalized cross correlation method to estimate time delay. The sound source localization system is accrued sound signal in real time.The overall system is composed of hardware part and software part. The hardware  part is consists of two USB microphones which capture the sound signal. Due to use of USB microphones, sound signal directly send PC. Software part is done by Matlab and which filter the sound signals and give sound source direction as output.

                                   In this project, the sound source localization system consists of three parts called front-end processing, time delay estimation, and direction calculation.



Front-end processing
            Front end processing which consists of data reading, filtering and voice detection is the first process of the overall system. USB microphones capture the sound signals and then sound signals are directly sent to PC. Signals are filtered using Butterworth filter which is implemented in Matlab. Only 100 Hz – 3500 Hz range sound signals are filtered because only human voice should be detected. Normally the whole human voice output ranges up to 20 kHz but the voice output range of only the words that humans speak is in between 100Hz to 3500Hz. Voice detection is used to eliminate the DC noises in the environment. 
Data reading

I used USB microphones ,therefore easily can read data in matlab. Following matlab code can be used to read sound signals using USB MICs.

ai = analoginput('winsound','3');
addchannel(ai, 1);
bi = analoginput('winsound','1');
addchannel(bi, 1);
set([ai bi],'SampleRate',48000);
set([ai bi],'TriggerType','Manual')
set([ai bi],'SamplesPerTrigger',Inf);

Where sample rate is set 48kHz and Trigger type is set to Manual to reduced time delay between starting of two MICs.

start([ai bi]);
trigger([ai bi]);

using this manual triggering you can reduced starting time delay up to ten to the minus six second.

Time Delay Estimation

Due to real time system and lower complexity, Generalized cross correlation method is used to estimate the time delay. In addition to that generalized cross correlation has an advantage of making the peak distinct at low signal to noise ratio. Following diagram shows the algorithm of generalized cross correlation method. 




Wednesday, February 6, 2013

Prototype of PIC Based Automatic Solar Tracking System

Introduction

One of the most important problem facing the world today is the energy problem.Therefore, demand of electrical energy and cost of fuel is increasing. The solution is to using more  renewable energy sources such as solar energy, wind energy etc. Nowadays , solar energy has been widely used in our life.

Concepts related to the solar energy constantly been  under heavy research and development. The basic objective related to the energy produced from photovoltic cells and by making the overall systems more efficient and cost effective. There are several factors that affect that affect the efficiency of the collection process. Major  influences on overall efficiency include solar cell efficiency, intensity of solar radiation and storage Technics.

The materials used in solar cell manufacturing limit the efficiency of a solar cell. Therefore this restricts the efficiency of the overall collection process. Therefore most attainable method of improving the performance of solar power collection is to increase the mean intensity of radiation received from source.  Most solar panels statistically aligned , they have a fixed position at a certain angle towards the sky.The time and intensity of direct sunlight falling upon the solar panel is greatly reduced, resulting in low output power from the panel.

The major approach for maximizing power extraction is sun tracking.solar tracking system is used sun tracking for maximize the power output.