Posts

Showing posts from April, 2019

OAM and OSM.

The aim of this experiment was to perform filtering of long data sequence using overlap add method and overlap save method .The objective of this experiment is to write a function to implement overlap add and overlap save algorithm. The OAM and OSM methods divide the input signal into smaller lengths and filter output (FFT) of such smaller length signal is calculated. The overlapped portion is added in case of OAM and discarded in case of OSM. The resultant output is the output of the whole input signal.  The following are the conclusions drawn: 1) overlap add and overlap save are the two methods to find the output of digital FIR filters . 2) it consist of a long data sequence x(n) and a impulse response h(n) 3) the length of the output sequence is obtained by L=M+N-1 4) in overlap add method we get the convoluted output signal of the input with impulse response

Application of DSP

In this experiment, I reviewed a patent which describes digital signal processing filters to improve loudspeaker transient response.The field of invention relates to loudspeakers , specifically to loudspeaker system including digital signal systems. I learnt that to improve the loudspeaker response, a six step process is used.The process begins with identifying a substantially linear, time-invariant, and spatially-consistent loudspeaker mechanism causing transient response distortion. After characterizing the identified mechanism. Next step is to determine the characterized mechanism's two-port response. It is important to establish a target response for the characterized mechanism. This is followed by calculating an ideal filter to achieve the target response. This leads to designing a cost-reduced filter based on the ideal filter to thereby form a loudspeaker mechanism algorithm (LMA) filter.  Here is the patent link https:// patents .google.com/ pat...

DSP lab experience

DSP lab was a fun learning experience.We had our practicals on every Thursdays a We performed our experiments on DSP board and CCS compiler.Every thrusday we learnt something new. We got to know about the DSP board more as we performed experiments on it. CCS is a compiler which is used to run, debug,build projects, etc.The sensor boards are user friendly. This lab was instrumental in helping me understand the DSP concepts better. I was also the batch representative and I made sure that all chairs were arranged and the lights and fans were swtiched off when we left the lab. This lab taught me about the DSP processor and various sensors we can use with the DSP profproce. The theory of some of the experiments was known to us as we has Signals and systems in the previous semester. We used that knowledge while performing these experiments. The board is user friendly and great for learning.  The overall experience was really very good.

DFT and FFT

DFT is a tool to study the signal in frequency domain.On the day of lab session we understood the logic and wrote the code for DFT. We tested it for some inputs and verified the output by analytical method. DFT assumes input as periodic and gives  periodic output sequence ,energy of the signal in time and frequency domain is equal.If we do zero padding then number of points increases hence resolution and quality of spectrum increases while the approximation error ,frequency spacing decreases. We had to develop a program for FFT. During the lectures sir taught us how to find FFT for a 8 point sequence. So during pracs we had to complete FFT. Now as we knew the concept we were comfortable in building the algorithm. Implenting the flowgrapgh as it is in our code was difficult .The program was done , compiled and we got the results. It was observed that FFT is faster than DFT since it requires less no of real and complex additions and multiplications and also since FFT does the c...

Correlation

We performed correlation in which we had to find the autocorrelation and cross correlation. Correlation is used for checking the similarity between two signals The following conclusion are drawn on the basis of the experimentation and result analysis The autocorrelation of a signal attains maximum value at n=0 and this value is equal to the energy of the signal. The auto correlation of a signal is same as the autocorrelation of the delayed signal, i.e. x[n] o x[n]= x[n-k] o x[n-k]. Cross correlation of a signal with its delayed version (delayed by ‘k’ units) results in an advanced version of the autocorrelation of the signal itself, advanced by ‘k’ units. (i.e x[n] o x[n-k]=y[n+k]). Cross correlation of a signal with its scaled version (scaled by ‘k’ units) results in a scaled version of the autocorrelation of the signal itself, scaled by ‘k’ units. (i.e x[n] o (K)*x[n]=(2)*y[n]).

Convolution

Convolution is used to find out the output of an LTI system.If the response of the system to the impulse signal is known(h(t) or h(n)),then the response to any other input to the system can be found out by convolving the input signal with impulse response. Convolution is a very important process in analog as well as Digital signal,time signal or frequency  signal.it  gives us what will happen if two signals are shifted and mixed together. In this experiment, we found out the linear convolution of two signals and concluded that the output signal has the legth equal to one less than the sum of length of two input signals. Also, if both the input signals are casual then the LC output is also causal. While finding CC, the value of N is selected as the maximum of the two input signals. Zero padding is done in CC to make the signals with length equal. To find LC using CC, we select length of output signal as one less than the sum of length of two input signals. We made the...

Sensor Interface

In this experiment we came across different sensors and we interfaced sensors to the DSP board using the required code. The different sensors we used are LDR  Optocouple DHT11 Sharp sensor Hall sensor temperature sensor.

ADC-DAC

 Here we used ADC-DAC of the DSP processor (TMS320). It has two 8 bit ADCs and one external 12 bit DAC. We generated Saw tooth, Triangular and Sinusoidal waveforms . Also we generated multichannel waveform of Sinusoidal waveform with different phase values. To use code in order to develop various types of waveforms and then display the output on a CRO. Most of the signals directly encountered in science and engineering are continuous, light intensity that changes with distance; voltage that varies over time; chemical reaction rate that depends on temperature, etc. Analog‐to‐Digital Conversion (ADC) and Digital‐to‐Analog Conversion (DAC) are the processes that allow digital computers to interact with these everyday signals. For the DSP board we are using we have 4 channel DAC and a 2 channel ADC.

LED Binary Counter

In this experiment we get a hands on experience on the DSP board of TI, we understood the basics of flash programming and proper use of JTAG. In the given experiment, we utilized the on board LEDs to show the binary counting action happening, from 0-15 in binary. Once the flash programming was done, even after the power was removed and external power source was used, the DSP board still contained and ran the same code, hence we saw that if we want the same code to run on the Board, without interruptions then Flash programming is our go-to choice. For this experiment, you should know binary form. There are    four LEDs on the DSP board. We had to blink it from 0 to 15 in binary. For if it is 0 then, no LED will blink and for 1, it should be 0001 and so on in binary form.

DSP: Simulator

Phase-shift keying (PSK) is a digital modulation process which conveys data by changing (modulating) the phase of a constant frequency reference signal (the carrier wave). The modulation is accomplished by varying the sine and cosine inputs at a precise time. There are three major classes of digital modulation techniques used for transmission of digitally represented data:  Amplitude-shift keying (ASK)  Frequency-shift keying (FSK)  Phase-shift keying (PSK) BPSK is the simplest form of phase shift keying (PSK). It uses two phases which are separated by 180. It does not particularly matter exactly where the constellation points are positioned, at 0° and 180°. Therefore, it handles the highest noise level or distortion before the demodulator reaches an incorrect decision. That makes it the most robust of all the PSKs. It is, however, only able to modulate at 1 bit/symbol and so is unsuitable for high data-rate applications. QPSK uses four points on the constellation diagram...